Merge "Add role to auto install docker on hosts - missing patch"
authorAaron Smith <aasmith@redhat.com>
Fri, 5 Oct 2018 11:46:31 +0000 (11:46 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Fri, 5 Oct 2018 11:46:31 +0000 (11:46 +0000)
1  2 
docker/ansible/roles/config_files/vars/main.yml
docs/release/userguide/docker.userguide.rst

@@@ -23,11 -23,11 +23,14 @@@ interval_value: 1
  
  #network plugin vars
  network_port: 25826
- network_ip_addr: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}"
+ #get influxdb name as defined in inventory
+ influxdb_hostname: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}"
+ #get hostname as used by ansible
+ network_ip_addr: "{{ hostvars[influxdb_hostname].ansible_hostname }}"
  
 +#prometheus plugin vars
 +prometheus_port: 9103
 +
  #ovs event and stats plugin vars
  ovs_event_interval: 1
  ovs_event_ip_addr: localhost