kolla-ansible/ansible/roles/influxdb/tasks/config.yml
Mathias Ewald 49f7359b0c Added influxdb role
Added ansible role for influxdb

Introduced host groups for monitoring and influxdb and assign role

Monitoring is deployed on a separate node called monitoring01 by
default

Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>

Change-Id: If2465a14b18c6c3fd657af587a0b85f6b7a0191a
Partially-Implements: Blueprint performance-monitoring
2016-09-02 05:30:08 +00:00

24 lines
666 B
YAML

---
- name: Ensuring config directories exist
file:
path: "{{ node_config_directory }}/influxdb"
state: "directory"
recurse: yes
when: inventory_hostname in groups['influxdb']
- name: Copying over config.json files
template:
src: "{{ item }}.json.j2"
dest: "{{ node_config_directory }}/influxdb/config.json"
when: inventory_hostname in groups['influxdb']
with_items:
- influxdb
- name: Copying over influxdb config file
template:
src: "{{ role_path }}/templates/{{ item }}.conf.j2"
dest: "{{ node_config_directory }}/influxdb/influxdb.conf"
when: inventory_hostname in groups['influxdb']
with_items:
- influxdb