Load nova_console_port from a nova_console inventory item

Change-Id: I7fcd8f76611db9a4926ae62a1281262d4dc186cf
Closes-Bug: #1720847
This commit is contained in:
Logan V 2017-10-02 12:21:28 -05:00
parent a95896d0d2
commit dd99af88e7
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ haproxy_default_services:
haproxy_service_name: nova_console
haproxy_backend_nodes: "{{ groups['nova_console'] | default([]) }}"
haproxy_ssl: "{{ haproxy_ssl }}"
haproxy_port: "{{ nova_console_port }}"
haproxy_port: "{{ hostvars[groups['nova_console'][0]]['nova_console_port'] }}"
haproxy_balance_type: http
haproxy_timeout_client: 60m
haproxy_timeout_server: 60m
@ -328,4 +328,4 @@ haproxy_default_services:
haproxy_timeout_client: 5000s
haproxy_timeout_server: 5000s
haproxy_whitelist_networks: "{{ haproxy_opendaylight_whitelist_networks }}"
haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}"
haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}"