Using cluster_metrics host as default output

InfluxDB is usually already installed at this point
(running playbook-influx-db.yml playbook), so in most cases using
such host as default output avoids to specify additional information.

Change-Id: Iac5e16c3d24a74119ea2179ecc3e5273de20676e
This commit is contained in:
Ramon Orru 2018-03-08 14:05:41 +01:00
parent 3dbc21a0c3
commit 1b1e2853d1
1 changed files with 1 additions and 1 deletions

View File

@ -48,4 +48,4 @@
group: "{{ groups['utility_all'][0] }}"
when_group: "{{ (groups['cinder_volumes'] | default([]) | length) > 0 }}"
telegraf_output_influxdb_targets:
- "{{ influxdb_protocol|default('http') }}://{{ influxdb_host|default(internal_lb_vip_address) }}:{{ influxdb_port }}"
- "{{ influxdb_protocol|default('http') }}://{{ influxdb_host|default(hostvars[groups['cluster-metrics'][0]]['ansible_host']) }}:{{ influxdb_port }}"