]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: fix rhcs installation and rgw package for nfs 1918/head
authorSébastien Han <seb@redhat.com>
Mon, 18 Sep 2017 21:56:38 +0000 (23:56 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 19 Sep 2017 10:12:22 +0000 (12:12 +0200)
RHCS install wasn't working at all prior to this commit as the name of
the include was pointing to a non-existing file.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1492056
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml
roles/ceph-common/tasks/installs/redhat_enterprise_repository.yml [deleted file]
roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml [new file with mode: 0644]

index 5a893213731ce8e30a3a9d5c9f829f324518f935..1b22afda4fccf853a0cf747efcb967c133910ad2 100644 (file)
   shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
   changed_when: false
   failed_when: false
-  register: rhcs_rgw_mds_repo
+  register: rhcs_rgw_mds_nfs_repo
   always_run: true
   when:
-    - (rgw_group_name in group_names or mds_group_name in group_names)
+    - (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names)
 
 - 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 or mds_group_name in group_names)
-    - rhcs_rgw_mds_repo.rc != 0
+    - (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names)
+    - rhcs_rgw_mds_nfs_repo.rc != 0
diff --git a/roles/ceph-common/tasks/installs/redhat_enterprise_repository.yml b/roles/ceph-common/tasks/installs/redhat_enterprise_repository.yml
deleted file mode 100644 (file)
index 3fdac2b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: include prerequisite_rhcs_iso_install.yml
-  include: prerequisite_rhcs_iso_install.yml
-  when:
-    - ceph_repository_type == 'iso'
-
-- name: include prerequisite_rhcs_cdn_install.yml
-  include: prerequisite_rhcs_cdn_install.yml
-  when:
-    - ceph_repository_type == 'cdn'
diff --git a/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml b/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml
new file mode 100644 (file)
index 0000000..3fdac2b
--- /dev/null
@@ -0,0 +1,10 @@
+---
+- name: include prerequisite_rhcs_iso_install.yml
+  include: prerequisite_rhcs_iso_install.yml
+  when:
+    - ceph_repository_type == 'iso'
+
+- name: include prerequisite_rhcs_cdn_install.yml
+  include: prerequisite_rhcs_cdn_install.yml
+  when:
+    - ceph_repository_type == 'cdn'