]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mgr: add new role for ceph-mgr
authorSébastien Han <seb@redhat.com>
Thu, 16 Mar 2017 09:17:08 +0000 (10:17 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 10 Apr 2017 13:13:09 +0000 (15:13 +0200)
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 <gabrioux@redhat.com>
Signed-off-by: Sébastien Han <seb@redhat.com>
defaults/main.yml
tasks/installs/install_on_debian.yml
tasks/installs/install_on_redhat.yml

index 7cdb24fcaf7d19b3219316b42cc68869986b2178..b6d3b848cab9c78ffbbadff65fc84d4c48ae630f 100644 (file)
@@ -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
index c6ab701ac69a476d1e2c46d16d8c37a7f56649d7..f2577639928fa46f8332094fdd801730e8c58b61 100644 (file)
     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
index 8df9ebca906e6d731adc19666487ea37e09c26f7..8a8d82a777e6044e9393d84eb0eb1e0da56435e3 100644 (file)
   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