]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-common: rhcs 4 repositories for rhel 7
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 31 Jan 2020 13:59:21 +0000 (08:59 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 31 Jan 2020 14:33:51 +0000 (09:33 -0500)
RHCS 4 is available for both RHEL 7 and 8 so we should also enable the
cdn repositories for that distribution.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1796853
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml
roles/ceph-defaults/defaults/main.yml

index ccd6274ca62f2e1269709339309d5fcdebb1150a..81716f174d8143940e3d081dbdab160ac0c4a9c1 100644 (file)
@@ -174,7 +174,7 @@ dummy:
 #
 # Enabled when ceph_repository == 'rhcs'
 #
-# This version is only supported on RHEL >= 8.0
+# This version is supported on RHEL 7 and 8
 #
 #ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(4) }}"
 #valid_ceph_repository_type:
index 5aabf9f901c934dfd5d790a9f8994515f153fa96..1df810051d133998347c0c1956bdeaa47191e899 100644 (file)
@@ -174,7 +174,7 @@ ceph_repository: rhcs
 #
 # Enabled when ceph_repository == 'rhcs'
 #
-# This version is only supported on RHEL >= 8.0
+# This version is supported on RHEL 7 and 8
 #
 ceph_rhcs_version: 4
 #valid_ceph_repository_type:
index 531e44f9d3535afbe156553dfdce9e2c3e3ad918..50e7eb5db2d1542d58649de70655be4c63f3a5dd 100644 (file)
@@ -1,15 +1,36 @@
 ---
-- name: enable red hat storage monitor repository
-  rhsm_repository:
-    name: "rhceph-{{ ceph_rhcs_version }}-mon-for-rhel-8-{{ ansible_architecture }}-rpms"
-  when: (mon_group_name in group_names or mgr_group_name in group_names)
-
-- name: enable red hat storage osd repository
-  rhsm_repository:
-    name: "rhceph-{{ ceph_rhcs_version }}-osd-for-rhel-8-{{ ansible_architecture }}-rpms"
-  when: osd_group_name in group_names
-
-- name: enable red hat storage tools repository
-  rhsm_repository:
-    name: "rhceph-{{ ceph_rhcs_version }}-tools-for-rhel-8-{{ ansible_architecture }}-rpms"
-  when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)
+- name: "rhcs {{ ceph_rhcs_version }} on rhel 8"
+  when: ansible_distribution_major_version | int == 8
+  block:
+    - name: enable red hat storage monitor repository
+      rhsm_repository:
+        name: "rhceph-{{ ceph_rhcs_version }}-mon-for-rhel-8-{{ ansible_architecture }}-rpms"
+      when: (mon_group_name in group_names or mgr_group_name in group_names)
+
+    - name: enable red hat storage osd repository
+      rhsm_repository:
+        name: "rhceph-{{ ceph_rhcs_version }}-osd-for-rhel-8-{{ ansible_architecture }}-rpms"
+      when: osd_group_name in group_names
+
+    - name: enable red hat storage tools repository
+      rhsm_repository:
+        name: "rhceph-{{ ceph_rhcs_version }}-tools-for-rhel-8-{{ ansible_architecture }}-rpms"
+      when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)
+
+- name: "rhcs {{ ceph_rhcs_version }} on rhel 7"
+  when: ansible_distribution_major_version | int == 7
+  block:
+    - name: enable red hat storage monitor repository
+      rhsm_repository:
+        name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms"
+      when: (mon_group_name in group_names or mgr_group_name in group_names)
+
+    - name: enable red hat storage osd repository
+      rhsm_repository:
+        name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-osd-rpms"
+      when: osd_group_name in group_names
+
+    - name: enable red hat storage tools repository
+      rhsm_repository:
+        name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms"
+      when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)
index 875666a7544a63a68024a5a99a3d80fd370b9f4b..c0b6a232ba2a133562cbae83d18554814e9f3ee6 100644 (file)
@@ -166,7 +166,7 @@ ceph_stable_redhat_distro: el7
 #
 # Enabled when ceph_repository == 'rhcs'
 #
-# This version is only supported on RHEL >= 8.0
+# This version is supported on RHEL 7 and 8
 #
 ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(4) }}"
 valid_ceph_repository_type: