]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mgr: add saml python lib for dashboard SSO v4.0.18
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 3 Apr 2020 20:33:11 +0000 (16:33 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 6 Apr 2020 15:00:01 +0000 (11:00 -0400)
The dashboard SSO mgr module requires the saml python library to be
installed. This is only a valid scenario for RHCS deployment because
the saml python library isn't available in other classic repositories.
This package is present in RHCS Tools repository so we also need to
enable it on the mgr nodes.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1820233
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 6617d90733d08b03779657c0129b7a7089eb4a90)

roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml
roles/ceph-mgr/tasks/pre_requisite.yml

index 50e7eb5db2d1542d58649de70655be4c63f3a5dd..e3e550b07f617b1749da7e6873ef4d3b647c704d 100644 (file)
@@ -15,7 +15,7 @@
     - 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)
+      when: (mgr_group_name in group_names or 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
@@ -33,4 +33,4 @@
     - 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)
+      when: (mgr_group_name in group_names or 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 f2cd100a1c4374f76b7c6d1bc6b422489d0bb7a0..0cfe8d1fb8bfa11c918484fedbf544f32253817f 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: set_fact ceph_mgr_packages for sso
+  set_fact:
+    ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml' if ansible_distribution_major_version | int == 8 else 'python-saml']) }}"
+  when:
+    - dashboard_enabled | bool
+    - ansible_distribution == 'RedHat'
+
 - name: install ceph-mgr packages on RedHat or SUSE
   package:
     name: '{{ ceph_mgr_packages }}'