From b6992d31d27a8ae3456f0c71ce66e4a22c7f6782 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Mon, 13 Feb 2017 14:18:19 +0000 Subject: [PATCH] Remove UCA/RDO in role Now that the external repository management is done in pip-install role, we don't need this wiring anymore. Everything will be consistent across all the roles that include pip-install. Change-Id: I30e06acb2762707f77af48e71097e10e18ee3053 Signed-off-by: Jean-Philippe Evrard --- defaults/main.yml | 5 ----- tasks/nova_install_apt.yml | 32 ++------------------------------ tasks/nova_install_yum.yml | 11 ----------- vars/redhat-7.yml | 2 -- vars/ubuntu-16.04.yml | 6 ------ 5 files changed, 2 insertions(+), 54 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 2be9a60e..84c777c7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -372,11 +372,6 @@ nova_scheduler_weight_classes: nova.scheduler.weights.all_weighers # Otherwise keys will be generated on the first run and not regenerated each run. nova_recreate_keys: False -# Toggle the use of Ubuntu Cloud Archive -nova_uca_enable: True -# Ubuntu Cloud Archive mirror URL -uca_apt_repo_url: "http://ubuntu-cloud.archive.canonical.com/ubuntu" - # Nova Ceph rbd # Enble and define nova_libvirt_images_rbd_pool to use rbd as nova backend #nova_libvirt_images_rbd_pool: vms diff --git a/tasks/nova_install_apt.yml b/tasks/nova_install_apt.yml index cac5bb16..3da30121 100644 --- a/tasks/nova_install_apt.yml +++ b/tasks/nova_install_apt.yml @@ -13,40 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Ensure apt cache is up to date - apt: - update_cache: yes - cache_valid_time: "{{ cache_timeout }}" - -- name: Add Ubuntu Cloud Archive key package - package: - name: ubuntu-cloud-keyring - state: "{{ nova_package_state }}" - when: - - nova_uca_enable - register: nova_uca_add_keys - tags: - - add-apt-keys - -- name: Add Ubuntu Cloud Archive apt repository - apt_repository: - repo: "{{ uca_repo }}" - state: present - update_cache: yes - filename: "{{ uca_apt_source_list_filename | default(omit) }}" - register: nova_uca_add_repo - when: - - nova_uca_enable - until: add_repo|success - retries: 5 - delay: 2 - tags: - - add-uca-repo - - name: Install nova role packages (apt) apt: name: "{{ item }}" state: "{{ nova_package_state }}" + update_cache: yes + cache_valid_time: "{{ cache_timeout }}" with_items: - "{{ nova_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}" when: item != '' diff --git a/tasks/nova_install_yum.yml b/tasks/nova_install_yum.yml index fac78cdd..21c2a5bb 100644 --- a/tasks/nova_install_yum.yml +++ b/tasks/nova_install_yum.yml @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Install RDO package - package: - name: "{{ rdo_package }}" - state: "present" - register: install_cloud_rdo_package - until: install_cloud_rdo_package | success - retries: 5 - delay: 2 - when: - - ansible_pkg_mgr == 'yum' - - name: Install nova role packages (yum) yum: name: "{{ item }}" diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index 96f2d188..345ffc81 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -64,8 +64,6 @@ nova_compute_powervm_distro_packages: [] novalink_gpg_keys: [] -rdo_package: "https://rdoproject.org/repos/rdo-release.rpm" - nova_nginx_distro_packages: - nginx diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index 708dada0..58860701 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -74,12 +74,6 @@ nova_compute_lxd_distro_packages: nova_nginx_distro_packages: - nginx-full -# Ubuntu Cloud Archive variables -uca_openstack_release: ocata -uca_repo_dist: "{{ ansible_lsb.codename }}-updates/{{ uca_openstack_release }}" -uca_repo: "deb {{ uca_apt_repo_url }} {{ uca_repo_dist }} main" -#uca_apt_source_list_filename: "ubuntu_cloud_archive_canonical_com_ubuntu" - # nova powervm virt driver nova_compute_powervm_distro_packages: - bridge-utils