Allow console stream for standalone

While the console is working, it's relying on the "established" state -
if, for any reason, the stream dies, it won't be able to restart
properly.

We already address this case for Undercloud and Overcloud in another
patch:
https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/857096

The standalone case was overlooked, since it was working just fine.

Change-Id: Idcaaed92e6cc6e5554f1c22d129d962e8daa7272
This commit is contained in:
Cédric Jeanneret 2022-09-22 10:32:51 +02:00
parent 1e08cc120f
commit df2f5f4f5c
1 changed files with 11 additions and 0 deletions

View File

@ -7,7 +7,18 @@
resource_registry:
OS::TripleO::Services::NovaLibvirt: /usr/share/openstack-tripleo-heat-templates/deployment/deprecated/nova/nova-libvirt-container-puppet.yaml
{% endif %}
{% set source_ci_ip_address = "{{ ansible_default_ipv4.address }}/{{ ansible_default_ipv4.netmask }}" %}
{% set source_ci_network = "{{ source_ci_ip_address | ipaddr('network/prefix') }}" %}
{% set ssh_client = (lookup("ansible.builtin.env", "SSH_CLIENT", default='')|split(' '))[0] %}
{% set console_access = (ssh_client == '') | ternary(source_ci_network, ssh_client) %}
parameter_defaults:
StandaloneParameters:
ExtraFirewallRules:
'022 Allow CI console stream from CI network {{ console_access }}':
proto: 'tcp'
dport: 19885
source: "{{ console_access }}"
state: []
CertmongerCA: local
CloudName: {{ standalone_ip }}
ContainerCli: {{ standalone_container_cli }}