Rsync for collectd
[ansible.git] / rrdagg.yaml
1 ---
2 - hosts: princeton-vicci
3   user: root
4
5   tasks:
6     - name: install pip
7       yum: name={{ item }} state=latest
8       with_items:
9         - python-pip
10         - python-requests
11         - PyYAML
12
13     - name: install xmltodict
14       pip: name=xmltodict
15
16     - name: make script dir
17       shell: mkdir -p /etc/rrdaggregate
18
19     - name: copy rrdaggregate.py
20       copy: src=rrdagg/rrdaggregate.py dest=/etc/rrdaggregate/rrdaggregate.py
21       
22     - name: copy aggmgr.py
23       copy: src=rrdagg/aggmgr.py dest=/etc/rrdaggregate/aggmgr.py
24
25     - name: copy mpsubmit.py
26       copy: src=rrdagg/mpsubmit.py dest=/etc/rrdaggregate/mpsubmit.py
27       tags:
28         - mp
29
30     - name: copy mp.yaml
31       copy: src=rrdagg/mp.yaml dest=/etc/rrdaggregate/mp.yaml
32       tags:
33         - mp
34
35     - name: cron job
36       cron: name="run rrdagg" minute=* job=/etc/rrdaggregate/mpsubmit.py
37       tags:
38         - mp