install ceph-mds packages on SUSE/openSUSE

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>
pull/4364/head
Johannes Kastl 2019-08-14 22:48:34 +02:00 committed by Guillaume Abrioux
parent 9329bbb3af
commit c721cb99cb
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
register: result register: result
until: result is succeeded until: result is succeeded
- name: install redhat ceph-mds package - name: install ceph-mds package on redhat or suse
package: package:
name: "ceph-mds" name: "ceph-mds"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
@ -18,7 +18,7 @@
until: result is succeeded until: result is succeeded
when: when:
- mds_group_name in group_names - mds_group_name in group_names
- ansible_os_family == 'RedHat' - ansible_os_family in ['Suse', 'RedHat']
- name: create mds keyring - 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 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