]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mgr: add saml python lib for dashboard SSO
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 3 Apr 2020 20:33:11 +0000 (16:33 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 6 Apr 2020 14:51:57 +0000 (16:51 +0200)
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 531e44f9d3535afbe156553dfdce9e2c3e3ad918..34d2006ddad3b1ea56cd240d3b0ee78105e4487b 100644 (file)
@@ -12,4 +12,4 @@
 - 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)
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 }}'