]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: add support for mon/mgr collocation
authorSébastien Han <seb@redhat.com>
Mon, 3 Dec 2018 21:59:17 +0000 (22:59 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 7 Jan 2019 08:14:10 +0000 (09:14 +0100)
Recently we introduced the default collocation of mon/mgr without the
need of a dedicated mgrs section. This means we have to stop the mgr
process on that machine too.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit fc6ebd8ebb39c74544ece57c401783908ad1ed24)

infrastructure-playbooks/purge-cluster.yml

index baf26e7a084368e8bb2c4563b0c3833ca80e9d5f..c3cde350a69a1ae96421cfbb4874e77311527e7e 100644 (file)
 
   - name: stop ceph mons with systemd
     service:
-      name: ceph-mon@{{ ansible_hostname }}
+      name: "ceph-{{ item }}@{{ ansible_hostname }}"
       state: stopped
       enabled: no
     failed_when: false
+    with_items:
+      - mon
+      - mgr
 
 
   - name: remove monitor store and bootstrap keys