]> git.apps.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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 11 Dec 2018 08:59:25 +0000 (09:59 +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>
infrastructure-playbooks/purge-cluster.yml

index 510acb1787a7dd35431430ad2309250389e36e02..346a22e8085a67beaa20ccf7b79bd923f0aa1b38 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