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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user