Skip to content

Commit eb70881

Browse files
committed
[hook: ironic_network] Opt out provisioning router
Add another boolean parameter to allow not creaing the router on the ironic provisioning network. Signed-off-by: Harald Jensås <[email protected]>
1 parent 3029813 commit eb70881

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hooks/playbooks/ironic_network.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
_provider_physical_network: ironic
1616
_provider_network_type: flat
1717
_availability_zone_hints: null # Comma separated list of strings
18+
_create_provisioning_router: true # Set to false to opt out of router creation
1819
environment:
1920
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
2021
PATH: "{{ cifmw_path }}"
@@ -56,4 +57,6 @@
5657
openstack router create provisioning
5758
oc rsh openstackclient \
5859
openstack router add subnet provisioning provisioning-subnet
59-
when: _subnet_ip_version | int == 6
60+
when:
61+
- _subnet_ip_version | int == 6
62+
- _create_provisioning_router | default(true) | bool

0 commit comments

Comments
 (0)