Merge "Switch to centos-release-openstack-queens for ovs"

This commit is contained in:
Zuul 2018-07-10 22:17:49 +00:00 committed by Gerrit Code Review
commit 8855392890
2 changed files with 8 additions and 10 deletions

View File

@ -5,18 +5,17 @@
- "{{ ansible_os_family }}.yaml" - "{{ ansible_os_family }}.yaml"
- "default.yaml" - "default.yaml"
# RHEL and CentOS requires repositories provided by RDO in order to install # CentOS requires repositories provided by centos in order to install
# openvswitch, set them up. # openvswitch, set them up.
- name: Set-up RDO repositories - name: Enable centos-release-openstack-queens
become: yes become: yes
package: package:
name: "{{ rdo_repository }}" name: centos-release-openstack-queens
state: installed state: installed
when: when:
- rdo_repository is defined
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- ansible_distribution != "Fedora" - ansible_distribution != "Fedora"
register: rdo_repos register: centos_ovs
- name: Install openvswitch - name: Install openvswitch
become: yes become: yes
@ -31,13 +30,13 @@
state: started state: started
enabled: yes enabled: yes
# If we've installed RDO repositories for openvswitch earlier, remove them # If we've installed repositories for openvswitch earlier, remove them
- name: Ensure RDO repositories are removed - name: Ensure centos-release-openstack-queens is removed
become: yes become: yes
package: package:
name: "rdo-release" name: "centos-release-openstack-queens"
state: absent state: absent
when: rdo_repos | changed when: centos_ovs | changed
- name: Authorize the multi-node-bridge network - name: Authorize the multi-node-bridge network
become: yes become: yes

View File

@ -1,4 +1,3 @@
--- ---
ovs_package: "openvswitch" ovs_package: "openvswitch"
ovs_service: "openvswitch" ovs_service: "openvswitch"
rdo_repository: "https://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm"