From: Sébastien Han Date: Thu, 16 Mar 2017 09:17:08 +0000 (+0100) Subject: mgr: add new role for ceph-mgr X-Git-Tag: v2.2.10~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9faf55175a93b3f9e83ca66205bc202409d9db4a;p=ceph-ansible.git mgr: add new role for ceph-mgr The Ceph Manager daemon (ceph-mgr) runs alongside monitor daemons, to provide additional monitoring and interfaces to external monitoring and management systems. Only works as of the Kraken release. Co-Authored-By: Guillaume Abrioux Signed-off-by: Sébastien Han --- diff --git a/defaults/main.yml b/defaults/main.yml index 7cdb24fca..b6d3b848c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -31,6 +31,7 @@ restapi_group_name: restapis rbdmirror_group_name: rbdmirrors client_group_name: clients iscsi_group_name: iscsigws +mgr_group_name: mgrs # If check_firewall is true, then ansible will try to determine if the # Ceph ports are blocked by a firewall. If the machine running ansible diff --git a/tasks/installs/install_on_debian.yml b/tasks/installs/install_on_debian.yml index c6ab701ac..f25776399 100644 --- a/tasks/installs/install_on_debian.yml +++ b/tasks/installs/install_on_debian.yml @@ -57,3 +57,10 @@ state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" update_cache: yes when: nfs_group_name in group_names + +- name: install ceph mgr + apt: + pkg: ceph-mgr + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}" + when: mgr_group_name in group_names diff --git a/tasks/installs/install_on_redhat.yml b/tasks/installs/install_on_redhat.yml index 8df9ebca9..8a8d82a77 100644 --- a/tasks/installs/install_on_redhat.yml +++ b/tasks/installs/install_on_redhat.yml @@ -142,3 +142,9 @@ when: - nfs_group_name in group_names - nfs_obj_gw + +- name: install ceph mgr + package: + name: ceph-mgr + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + when: mgr_group_name in group_names