49f7359b0c
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
24 lines
666 B
YAML
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
|