library/roles/tick: Bits of an influxdata (influxdb) group of roles.

d4science-ghn-cluster: Fix the playbook for the next update of data.d4science.org.
infrastructure-services/monitoring_and_metrics.yml: Install influxdb and the chronograf dashboard.
This commit is contained in:
Andrea Dell'Amico 2016-02-12 18:18:11 +01:00
parent ccf86d4319
commit e02b0a097a
6 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
chronograf_deb_file: chronograf_0.10.0_amd64.deb
chronograf_deb_url: 'https://s3.amazonaws.com/get.influxdb.org/chronograf/{{ chronograf_deb_file }}'
chronograf_enabled: True

View File

@ -0,0 +1,14 @@
---
- name: Download the chronograf deb file
get_url: url={{ chronograf_deb_url }} dest=/srv/{{ chronograf_deb_file }}
tags: [ 'influxdata', 'chronograf', 'tick' ]
- name: Install the chronograf package
apt: deb=/srv/{{ chronograf_deb_file }}
tags: [ 'influxdata', 'chronograf', 'tick' ]
- name: Ensure that chronograf is enabled and running
service: name=chronograf state=started enabled=yes
when: chronograf_enabled
tags: [ 'influxdata', 'chronograf', 'tick' ]

View File

@ -0,0 +1,7 @@
---
influxdb_repo_key: https://repos.influxdata.com/influxdb.key
influxdb_repo: 'deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable'
influxdb_packages:
- influxdb
influxdb_enabled: True

View File

@ -0,0 +1,19 @@
---
- name: Install the influxdb repo key
apt_key: url={{ influxdb_repo_key }} state=present
tags: [ 'influxdata', 'influxdb', 'tick' ]
- name: Install the influxdb deb repository
apt_repository: repo='{{ influxdb_repo }}' state=present update_cache=yes
tags: [ 'influxdata', 'influxdb', 'tick' ]
- name: Install the influxdb deb packages
apt: name='{{ item }}' state=present
with_items: '{{ influxdb_packages }}'
tags: [ 'influxdata', 'influxdb', 'tick' ]
- name: Ensure that influxdb is enabled and running
service: name=influxdb state=started enabled=yes
when: influxdb_enabled
tags: [ 'influxdata', 'influxdb', 'tick' ]

View File

@ -0,0 +1,5 @@
---
telegraf_deb_file: telegraf_0.10.2-1_amd64.deb
telegraf_deb_url: 'http://get.influxdb.org/telegraf/{{ telegraf_deb_file }}'
telegraf_enabled: True

View File

@ -0,0 +1,14 @@
---
- name: Download the telegraf deb file
get_url: url={{ telegraf_deb_url }} dest=/srv/{{ telegraf_deb_file }}
tags: [ 'influxdata', 'telegraf', 'tick' ]
- name: Install the telegraf package
apt: deb=/srv/{{ telegraf_deb_file }}
tags: [ 'influxdata', 'telegraf', 'tick' ]
- name: Ensure that telegraf is enabled and running
service: name=telegraf state=started enabled=yes
when: telegraf_enabled
tags: [ 'influxdata', 'telegraf', 'tick' ]