File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 22 - name : Configure openstack for vagrant demo environment
33 hosts : vagrant
44 become : false
5+ vars :
6+ external_gateway_octet : ' 1'
57 tasks :
8+ - set_fact :
9+ external_gateway_octet : ' 2'
10+ when : ansible_virtualization_type == 'VMware'
11+
612 - name : External network facts
713 set_fact :
814 external_cidr : " {{ ansible_br_ex.ipv4.address|ipsubnet(24)|ipaddr('net') }}"
9- external_gateway : " {{ ansible_br_ex.ipv4.address|ipsubnet(24)|ipaddr('net')|ipaddr('1' )|ipv4('address') }}"
15+ external_gateway : " {{ ansible_br_ex.ipv4.address|ipsubnet(24)|ipaddr('net')|ipaddr(external_gateway_octet )|ipv4('address') }}"
1016
1117 - name : Local network facts
1218 set_fact :
Original file line number Diff line number Diff line change 1111 update_cache : yes
1212 register : yum_upgrade
1313
14+ - name : Update networking before reboot
15+ meta : flush_handlers
16+
1417 - name : Reboot host
1518 shell : sleep 2 && shutdown -r now
1619 async : 1
5861 state : present
5962
6063 - name : Run Packstack Installer - Please Wait
61- command : " {{ packstack_common_command + packstack_network }}"
64+ command : " {{ packstack_common_command + packstack_guest_specific_args }}"
6265 async : 1200 # Possible this needs to be larger
6366 poll : 10
6467
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ el_network_interfaces:
1919 type : ethernet
2020 ip4 : " 172.16.1.10/24"
2121
22- packstack_network : " --os-neutron-ovs-bridge-mappings=extnet:br-ex,localnet:br-local \
22+ packstack_guest_specific_args : " --os-neutron-ovs-bridge-mappings=extnet:br-ex,localnet:br-local \
2323 --os-neutron-ovs-bridge-interfaces=br-ex:{{ external_interface }},br-local:{{ local_interface }}"
2424openstack_api_ip : " {{ ansible_enp0s8.ipv4.address }}"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ el_network_interfaces:
99 type : ethernet
1010 ip4 : ' {{ ansible_ens33.ipv4.address }}/24'
1111
12- packstack_network : " --os-neutron-ovs-bridge-mappings=extnet:br-ex \
12+ packstack_guest_specific_args : " --os-neutron-ovs-bridge-mappings=extnet:br-ex \
1313 --os-neutron-ovs-bridge-interfaces=br-ex:{{ external_interface }} \
1414 --os-neutron-l3-ext-bridge=br-ex"
1515openstack_api_ip : " {{ ansible_ens33.ipv4.address }}"
You can’t perform that action at this time.
0 commit comments