summaryrefslogtreecommitdiff
path: root/_drafts/looking-at-chronos.md
blob: 9c27259b75eaf92a37c21e07d4023ae309675137 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: post
title: Looking at Chronos
summary: In which I take a look at Chronos
---

# Looking at Chronos

I've decided to look at Chronos, a cron replacement running on Mesos.

Mesos

## Getting an environment

First I need to get an environment to play with it. Let's do that quickly with Vagrant and Ansible:

```ruby
Vagrant.configure("2") do |config|
  config.ssh.forward_agent = true

  config.vm.provision :ansible, :playbook => 'playbook.yml'

  config.vm.provider :virtualbox do |vb, override|
    override.vm.box = "precise64"
    override.vm.box_url = "http://files.vagrantup.com/precise64.box"
  end

end
```

And the playbook for Ansible:

```yaml
  - hosts: all
    sudo: yes
    tasks:
      - name: Install a bunch of packages
        apt: pkg={{ item }} state=installed
        with_items:
          - autoconf
          - make
          - gcc
          - cpp
          - patch
          - python-dev
          - git
          - libtool
          - default-jdk
          - default-jre
          - gzip
          - libghc-zlib-dev
          - libcurl4-openssl-dev

```

Now I can run `vagrant up` and wait to get the VM build with everything I need.