You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
---
|
|
# handlers file for upgrade
|
|
- name: restart openstack services
|
|
service: name={{item}} state=restarted
|
|
become: yes
|
|
with_items:
|
|
- openstack-heat-api
|
|
- openstack-heat-engine
|
|
- openstack-nova-api
|
|
|
|
- name: create vlan if doesn't exist
|
|
ignore_errors: yes
|
|
become: yes
|
|
shell: >
|
|
ifconfig {{ network_isolation_vlan }};
|
|
if [[ $? != 0 ]]; then \
|
|
ovs-vsctl add-port br-ctlplane {{ network_isolation_vlan }} tag={{ network_isolation_vlan_tag }} \
|
|
-- set interface {{ network_isolation_vlan }} type=internal;
|
|
fi
|
|
when: network_isolation
|
|
|
|
- name: set vlan up
|
|
ignore_errors: yes
|
|
become: yes
|
|
shell: >
|
|
ip l set dev {{ network_isolation_vlan }} up; ip addr add {{ network_isolation_ipv4_cidr }} dev {{ network_isolation_vlan }};
|
|
when: network_isolation
|
|
|
|
- name: allow traffic for the controller
|
|
become: yes
|
|
shell: >
|
|
sudo iptables -A BOOTSTACK_MASQ -s {{ network_isolation_ipv4_cidr }} ! \
|
|
-d {{ network_isolation_ipv4_cidr }} -j MASQUERADE -t nat
|
|
when: network_isolation
|
|
|