purge-cluster: add support for mon/mgr collocation

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 fc6ebd8ebb)
pull/3484/head
Sébastien Han 2018-12-03 22:59:17 +01:00
parent 12d6466582
commit 8e83ecfce1
1 changed files with 4 additions and 1 deletions

View File

@ -420,10 +420,13 @@
- name: stop ceph mons with systemd - name: stop ceph mons with systemd
service: service:
name: ceph-mon@{{ ansible_hostname }} name: "ceph-{{ item }}@{{ ansible_hostname }}"
state: stopped state: stopped
enabled: no enabled: no
failed_when: false failed_when: false
with_items:
- mon
- mgr
- name: remove monitor store and bootstrap keys - name: remove monitor store and bootstrap keys