Merge "[multi-node-bridge] Allow to skip openvswitch installation"
This commit is contained in:
commit
57df8b9d6d
@ -74,3 +74,9 @@ inventory in order to work:
|
|||||||
:default: 23
|
:default: 23
|
||||||
|
|
||||||
The IP address range CIDR/subnet.
|
The IP address range CIDR/subnet.
|
||||||
|
|
||||||
|
.. zuul:rolevar:: install_ovs
|
||||||
|
:default: true
|
||||||
|
|
||||||
|
Whether or not to install openvswitch. It can be set to false
|
||||||
|
when ovs installation is taken care outside of the role.
|
||||||
|
@ -6,3 +6,4 @@ bridge_configure_address: true
|
|||||||
bridge_address_prefix: 172.24.4
|
bridge_address_prefix: 172.24.4
|
||||||
bridge_address_offset: 1
|
bridge_address_offset: 1
|
||||||
bridge_address_subnet: 23
|
bridge_address_subnet: 23
|
||||||
|
install_ovs: true
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
name: "{{ ovs_package }}"
|
name: "{{ ovs_package }}"
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
|
- install_ovs|bool
|
||||||
- ansible_distribution != 'Gentoo'
|
- ansible_distribution != 'Gentoo'
|
||||||
|
|
||||||
- name: Install openvswitch (Gentoo)
|
- name: Install openvswitch (Gentoo)
|
||||||
@ -58,6 +59,7 @@
|
|||||||
state: present
|
state: present
|
||||||
jobs: 8
|
jobs: 8
|
||||||
when:
|
when:
|
||||||
|
- install_ovs|bool
|
||||||
- ansible_distribution == 'Gentoo'
|
- ansible_distribution == 'Gentoo'
|
||||||
|
|
||||||
- name: Ensure openvswitch is started
|
- name: Ensure openvswitch is started
|
||||||
@ -66,6 +68,8 @@
|
|||||||
name: "{{ ovs_service }}"
|
name: "{{ ovs_service }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when:
|
||||||
|
- install_ovs|bool
|
||||||
|
|
||||||
- name: Remove RDO repository files
|
- name: Remove RDO repository files
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user