]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-validate: update RHEL requirement for RHCS
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 9 Apr 2020 18:00:52 +0000 (14:00 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 14 Apr 2020 15:27:21 +0000 (11:27 -0400)
We were not testing the right ansible_distribution fact value for RHEL
distribution.
This commit also updates the minial RHEL version supported by RHCS.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5de74fe512575b2873b5863f5817f676954d3469)

roles/ceph-validate/tasks/check_system.yml

index 4e50c7d7a9b51221722c55eb9272fd3f853cf217..d5380e497ca016ec3ee51bd7b2b7c5c3f503da13 100644 (file)
 
 - name: fail on unsupported distribution for red hat ceph storage
   fail:
-    msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 7.3"
+    msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 7 (>= 7.6)"
   when:
-    - ansible_distribution == 'Red Hat Enterprise Linux'
+    - ansible_distribution == 'RedHat'
     - ceph_repository == 'rhcs'
-    - ansible_distribution_version is version_compare('7.3', '<')
+    - ansible_distribution_version is version_compare('7.6', '<')
 
 - name: determine if node is registered with subscription-manager
   command: subscription-manager identity
@@ -32,7 +32,7 @@
   failed_when: false
   check_mode: no
   when:
-    - ansible_distribution == 'Red Hat Enterprise Linux'
+    - ansible_distribution == 'RedHat'
     - ceph_repository == 'rhcs'
     - ceph_repository_type == 'cdn'
 
@@ -40,7 +40,7 @@
   fail:
     msg: "You must register your machine with subscription-manager"
   when:
-    - ansible_distribution == 'Red Hat Enterprise Linux'
+    - ansible_distribution == 'RedHat'
     - ceph_repository == 'rhcs'
     - ceph_repository_type == 'cdn'
     - subscription.rc != '0'