nova/haproxy: fix typo in detection of 'serialconsole'

'nova_console_type' is defined in os_nova and elsewhere in
group_vars with a 'serialconsole' value, but 'serial' is currently
used here to determine whether to enable the haproxy config.

Change-Id: Ieef7cd417d8a8f7b81ed41c069aa30e0fae940da
This commit is contained in:
Andrew Bonney 2023-07-25 15:12:49 +01:00
parent 3d19e6fb71
commit d1e30257ae

View File

@ -82,8 +82,8 @@ haproxy_nova_serial_console_service:
haproxy_backend_ssl: "{{ nova_backend_ssl | default(openstack_service_backend_ssl) }}"
haproxy_backend_ca: "{{ nova_haproxy_backend_ca | default(openstack_haproxy_backend_ca) }}"
haproxy_accept_both_protocols: "{{ nova_accept_both_protocols | default(openstack_service_accept_both_protocols) }}"
haproxy_service_enabled: "{{ (groups['nova_console'] is defined and groups['nova_console'] | length > 0 and nova_console_type == 'serial') or
(groups['ironic_console'] is defined and groups['ironic_console'] | length > 0 and ironic_console_type == 'serial') }}"
haproxy_service_enabled: "{{ (groups['nova_console'] is defined and groups['nova_console'] | length > 0 and nova_console_type == 'serialconsole') or
(groups['ironic_console'] is defined and groups['ironic_console'] | length > 0 and ironic_console_type == 'serialconsole') }}"
haproxy_nova_novnc_console_service:
haproxy_service_name: nova_novnc_console