From dd99af88e7fb05063b645baec49ba6ad2a5612ca Mon Sep 17 00:00:00 2001 From: Logan V Date: Mon, 2 Oct 2017 12:21:28 -0500 Subject: [PATCH] Load nova_console_port from a nova_console inventory item Change-Id: I7fcd8f76611db9a4926ae62a1281262d4dc186cf Closes-Bug: #1720847 --- group_vars/haproxy_all/haproxy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group_vars/haproxy_all/haproxy.yml b/group_vars/haproxy_all/haproxy.yml index ee06487675..2d650b1d14 100644 --- a/group_vars/haproxy_all/haproxy.yml +++ b/group_vars/haproxy_all/haproxy.yml @@ -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' }}" \ No newline at end of file + haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}"