Merge "Support custom config for InfluxDB"
This commit is contained in:
commit
2d4da7093a
@ -30,7 +30,7 @@
|
||||
vars:
|
||||
service: "{{ influxdb_services['influxdb']}}"
|
||||
template:
|
||||
src: "{{ role_path }}/templates/{{ item }}.conf.j2"
|
||||
src: "{{ item }}"
|
||||
dest: "{{ node_config_directory }}/influxdb/influxdb.conf"
|
||||
mode: "0660"
|
||||
become: true
|
||||
@ -38,8 +38,10 @@
|
||||
when:
|
||||
- inventory_hostname in groups[service.group]
|
||||
- service.enabled | bool
|
||||
with_items:
|
||||
- "influxdb"
|
||||
with_first_found:
|
||||
- "{{ node_custom_config }}/influxdb/{{ inventory_hostname }}/influxdb.conf"
|
||||
- "{{ node_custom_config }}/influxdb.conf"
|
||||
- "influxdb.conf.j2"
|
||||
notify:
|
||||
- Restart influxdb container
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user