]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
install ceph-mds packages on SUSE/openSUSE
authorJohannes Kastl <kastl@b1-systems.de>
Wed, 14 Aug 2019 20:48:34 +0000 (22:48 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Aug 2019 09:54:09 +0000 (09:54 +0000)
install packages on SUSE/openSUSE distributions, using the
same logic as on RedHat-based distributions

Fixes #4340

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
(cherry picked from commit c721cb99cbcecdc7e234568096e49874358eff49)

roles/ceph-mds/tasks/non_containerized.yml

index 8d09101f848b1fd6a2e061d626509e01746b22e4..6f8f15a612d375e382ab8f74fada0f48403823f1 100644 (file)
@@ -10,7 +10,7 @@
   register: result
   until: result is succeeded
 
-- name: install redhat ceph-mds package
+- name: install ceph-mds package on redhat or suse
   package:
     name: "ceph-mds"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
@@ -18,7 +18,7 @@
   until: result is succeeded
   when:
     - mds_group_name in group_names
-    - ansible_os_family == 'RedHat'
+    - ansible_os_family in ['Suse', 'RedHat']
 
 - name: create mds keyring
   command: ceph --cluster {{ cluster }} --name client.bootstrap-mds --keyring /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring auth get-or-create mds.{{ mds_name }} osd 'allow rwx' mds 'allow' mon 'allow profile mds' -o /var/lib/ceph/mds/{{ cluster }}-{{ mds_name }}/keyring