From 1a4e3ab5f3b1f3d2103cae3968027b6e398d479a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 20 Dec 2016 13:42:24 +0100 Subject: [PATCH] common: enable tool repo for mds install of rhcs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1405985 Signed-off-by: Sébastien Han (cherry picked from commit 775d61ed09632191747694985e70579e1a994a28) --- .../prerequisite_rh_storage_cdn_install.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml index 5c2719ee3..255550dc6 100644 --- a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml +++ b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml @@ -35,17 +35,17 @@ - osd_group_name in group_names - rh_storage_osd_repo.rc != 0 -- name: check if the red hat storage rados gateway repo is already present +- name: check if the red hat storage rados gateway / mds repo is already present shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms changed_when: false failed_when: false - register: rh_storage_rgw_repo + register: rh_storage_rgw_mds_repo always_run: true - when: rgw_group_name in group_names + when: (rgw_group_name in group_names or mds_group_name in group_names) -- name: enable red hat storage rados gateway repository +- name: enable red hat storage rados gateway / mds repository command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms changed_when: false when: - - rgw_group_name in group_names - - rh_storage_rgw_repo.rc != 0 + - (rgw_group_name in group_names or mds_group_name in group_names) + - rh_storage_rgw_mds_repo.rc != 0