Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions hooks/playbooks/adoption_ironic_post_oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
_subnet_alloc_pool_start: '172.20.1.150'
_subnet_alloc_pool_end: '172.20.1.199'
_subnet_ip_version: 4
_subnet_ipv6_address_mode: null
_subnet_ipv6_ra_mode: null
_provider_physical_network: ironic
_provider_network_type: flat
tasks:
Expand Down Expand Up @@ -153,6 +155,13 @@
openstack subnet show provisioning-subnet &>/dev/null || \
openstack subnet create provisioning-subnet \
--network provisioning \
--ip-version {{ _subnet_ip_version }} \
{% if _subnet_ipv6_address_mode -%}
--ipv6-address-mode {{ _subnet_ipv6_address_mode }} \
{% endif -%}
{% if _subnet_ipv6_ra_mode -%}
--ipv6-ra-mode {{ _subnet_ipv6_ra_mode }} \
{% endif -%}
--subnet-range {{ _subnet_range }} \
--gateway {{ _subnet_gateway }} \
--allocation-pool start={{ _subnet_alloc_pool_start }},end={{ _subnet_alloc_pool_end }}
Expand Down