Skip to content

Commit

Permalink
Add playbook for Netdata install
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed May 25, 2017
1 parent 3d323ac commit 28124bf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ansible/netdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: ensure netdata is installed
hosts: localhost
connection: local
tasks:
- stat: path=/etc/netdata
register: netdata_etc

- block:
- name: install dependencies
command: curl -Ss 'https://raw.githubusercontent.com/firehol/netdata-demo-site/master/install-required-packages.sh' >/tmp/kickstart.sh && bash /tmp/kickstart.sh -i netdata-all
- name: install netdata
command:
with_items:
- git clone https://github.com/firehol/netdata.git --depth=1 netdata
- cd netdata
- ./netdata-installer.sh -u --dont-wait
when: netdata_etc.stat.exists == False
1 change: 1 addition & 0 deletions startup.d/30-install-requirements.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
/root/.virtualenvs/chaos/bin/pip install -Ur requirements.txt
ansible-playbook ansible/apt.yml
ansible-playbook ansible/netdata.yml

0 comments on commit 28124bf

Please sign in to comment.