Merge "Support custom config for InfluxDB"

This commit is contained in:
Zuul 2018-04-11 15:45:46 +00:00 committed by Gerrit Code Review
commit 2d4da7093a

View File

@ -30,7 +30,7 @@
vars: vars:
service: "{{ influxdb_services['influxdb']}}" service: "{{ influxdb_services['influxdb']}}"
template: template:
src: "{{ role_path }}/templates/{{ item }}.conf.j2" src: "{{ item }}"
dest: "{{ node_config_directory }}/influxdb/influxdb.conf" dest: "{{ node_config_directory }}/influxdb/influxdb.conf"
mode: "0660" mode: "0660"
become: true become: true
@ -38,8 +38,10 @@
when: when:
- inventory_hostname in groups[service.group] - inventory_hostname in groups[service.group]
- service.enabled | bool - service.enabled | bool
with_items: with_first_found:
- "influxdb" - "{{ node_custom_config }}/influxdb/{{ inventory_hostname }}/influxdb.conf"
- "{{ node_custom_config }}/influxdb.conf"
- "influxdb.conf.j2"
notify: notify:
- Restart influxdb container - Restart influxdb container