Files
Dmitriy Rabotyagov 8cffc4ea04 Don't use nova_console_type for mapping
This causes a circular resolution, as in os_nova role
nova_console_type is calculated based of nova_console_type_mapping.

It was written like that to ensure that defined
nova_console_type will be respected when overriden.

With that change operators need to control
`nova_console_type_mapping` instead of `nova_console_type` to use spice
instead of vnc.

Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/967052
Change-Id: I25f57b450c0642400a4dce729e0cc66b28cf976e
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025-12-01 12:40:43 +01:00

40 lines
1.5 KiB
YAML

---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Consumed by Neutron role and must remained scoped to 'all' group
nova_metadata_port: 8775
nova_metadata_protocol: "{{ openstack_service_internaluri_proto | default('http') }}"
nova_metadata_insecure: "{{ keystone_service_internaluri_insecure | default(False) }}"
# Consumed by haproxy endpoints
nova_spice_html5proxy_base_port: 6082
nova_novncproxy_port: 6080
nova_serialconsoleproxy_port: 6083
# Default nova console proxy types
nova_console_type_mapping:
x86_64: novnc
ppc64le: novnc
aarch64: serialconsole
disabled: disabled
nova_console_proxy_types: |
{% set _console_types = [ironic_console_type] %}
{% set _compute_arch_list = groups['nova_compute'] | map('extract', hostvars, ['ansible_facts', 'architecture']) | map('default', 'disabled') %}
{% for arch in _compute_arch_list | unique %}
{% set _ = _console_types.append(nova_console_type_mapping[arch]) %}
{% endfor %}
{{ _console_types | unique }}