diff options
author | Aaron Smith <aasmith@redhat.com> | 2018-10-02 15:09:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-02 15:09:34 +0000 |
commit | 328129a1fd4ae54fe012379439464a56d15d4681 (patch) | |
tree | a89e97ab1027cc025bcf7d82ac4eb424d07cb0fb /docker/ansible/roles/run_grafana/vars | |
parent | dda0e18b1dd1a9a2397f43262124d4de3dc424e7 (diff) | |
parent | 24c5124e304b8e2854d98284f6ee4715a75ee735 (diff) |
Merge "WIP: Add role to auto install docker on hosts"
Diffstat (limited to 'docker/ansible/roles/run_grafana/vars')
-rw-r--r-- | docker/ansible/roles/run_grafana/vars/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/ansible/roles/run_grafana/vars/main.yml b/docker/ansible/roles/run_grafana/vars/main.yml index 0975b598..5caf45da 100644 --- a/docker/ansible/roles/run_grafana/vars/main.yml +++ b/docker/ansible/roles/run_grafana/vars/main.yml @@ -13,5 +13,5 @@ # limitations under the License. --- -influxdb_hostname: localhost -influxdb_host_ip: 127.0.0.1 +influxdb_hostname: influxdb_host +influxdb_host_ip: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}" |