1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

OpenStack: create dualstack Ports for the Servers in UPI

This commit adds tasks to create the Servers Ports with
the dualstack network and also include the addresses of the
API and ingress dualstack Ports to the allowed address pairs.
This commit is contained in:
Maysa Macedo
2023-11-09 16:16:23 -03:00
parent c670cd90ba
commit 3de486e441
3 changed files with 42 additions and 0 deletions

View File

@@ -19,6 +19,18 @@
- "{{ os_sg_master }}"
allowed_address_pairs:
- ip_address: "{{ os_apiVIP }}"
when: os_subnet6_range is not defined
- name: 'Create the bootstrap dualstack server port'
os_port:
name: "{{ os_port_bootstrap }}"
network: "{{ os_network }}"
security_groups:
- "{{ os_sg_master }}"
allowed_address_pairs:
- ip_address: "{{ os_apiVIP }}"
- ip_address: "{{ os_apiVIP6 }}"
when: os_subnet6_range is defined
- name: 'Set bootstrap port tag'
command:

View File

@@ -21,6 +21,20 @@
- ip_address: "{{ os_ingressVIP }}"
with_indexed_items: "{{ [os_port_worker] * os_compute_nodes_number }}"
register: ports
when: os_subnet6_range is not defined
- name: 'Create the dualstack Compute ports'
openstack.cloud.port:
name: "{{ item.1 }}-{{ item.0 }}"
network: "{{ os_network }}"
security_groups:
- "{{ os_sg_worker }}"
allowed_address_pairs:
- ip_address: "{{ os_ingressVIP }}"
- ip_address: "{{ os_ingressVIP6 }}"
with_indexed_items: "{{ [os_port_worker] * os_compute_nodes_number }}"
register: ports
when: os_subnet6_range is defined
- name: 'Set Compute ports tag'
ansible.builtin.command:

View File

@@ -22,6 +22,22 @@
- ip_address: "{{ os_ingressVIP }}"
with_indexed_items: "{{ [os_port_master] * os_cp_nodes_number }}"
register: ports
when: os_subnet6_range is not defined
- name: 'Create the dualstack Control Plane ports'
openstack.cloud.port:
name: "{{ item.1 }}-{{ item.0 }}"
network: "{{ os_network }}"
security_groups:
- "{{ os_sg_master }}"
allowed_address_pairs:
- ip_address: "{{ os_apiVIP }}"
- ip_address: "{{ os_apiVIP6 }}"
- ip_address: "{{ os_ingressVIP }}"
- ip_address: "{{ os_ingressVIP6 }}"
with_indexed_items: "{{ [os_port_master] * os_cp_nodes_number }}"
register: ports
when: os_subnet6_range is defined
- name: 'Set Control Plane ports tag'
ansible.builtin.command: