ceph-mgr: Add extra module packages

Since Nautilus there's mgr extra modules not present in ceph-mgr
package but in dedicated packages.

Resolves: #3860

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 86315272c7)
pull/3892/head
Dimitri Savineau 2019-04-15 12:15:49 -04:00 committed by Guillaume Abrioux
parent 35afd6a63a
commit 2d3c636fa8
3 changed files with 22 additions and 4 deletions

View File

@ -24,6 +24,15 @@ dummy:
# and replace CEPH_VERSION with your current Ceph version, e,g: 'mimic'
#ceph_mgr_modules: []
############
# PACKAGES #
############
# Ceph mgr packages to install, ceph-mgr + extra module packages.
#ceph_mgr_packages:
# - ceph-mgr
# - ceph-mgr-dashboard
# - ceph-mgr-diskprediction-local
##########
# DOCKER #

View File

@ -16,6 +16,15 @@ copy_admin_key: false
# and replace CEPH_VERSION with your current Ceph version, e,g: 'mimic'
ceph_mgr_modules: []
############
# PACKAGES #
############
# Ceph mgr packages to install, ceph-mgr + extra module packages.
ceph_mgr_packages:
- ceph-mgr
- ceph-mgr-dashboard
- ceph-mgr-diskprediction-local
##########
# DOCKER #

View File

@ -1,16 +1,16 @@
---
- name: install ceph-mgr package on RedHat or SUSE
- name: install ceph-mgr packages on RedHat or SUSE
package:
name: ceph-mgr
name: '{{ ceph_mgr_packages }}'
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
register: result
until: result is succeeded
when:
- ansible_os_family in ['RedHat', 'Suse']
- name: install ceph mgr for debian
- name: install ceph-mgr packages for debian
apt:
name: ceph-mgr
name: '{{ ceph_mgr_packages }}'
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default('') if ceph_origin == 'repository' and ceph_repository == 'uca' else ''}}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
register: result