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' }}"