tobiko/roles/multi-node-setup/tasks/main.yaml
Federico Ressi 1fa8dfe997 Fix DevStack CI jobs
Change-Id: I5af61a34c5643874af1c2a6525072dd1d4f8845e
2019-11-18 10:05:29 +01:00

23 lines
892 B
YAML

- name: Configure Neutron bridge for multi node setup
when: "( ansible_play_hosts | length ) > 1"
block:
- name: Ensure the infra bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ infra_bridge_name }}"
- name: Ensure the Neutron external bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ neutron_external_bridge_name }}"
- name: Create patch port between bridges
become: yes
command: >-
ovs-vsctl --may-exist add-port {{ infra_bridge_name }} patch-{{ neutron_external_bridge_name }}
-- set interface patch-{{ neutron_external_bridge_name }} type=patch options:peer=patch-{{ infra_bridge_name }}
-- --may-exist add-port {{ neutron_external_bridge_name }} patch-{{ infra_bridge_name }}
-- set interface patch-{{ infra_bridge_name }} type=patch options:peer=patch-{{ neutron_external_bridge_name }}