From 8e83ecfce18319ccaebb47603640446147a8732f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 3 Dec 2018 22:59:17 +0100 Subject: [PATCH] purge-cluster: add support for mon/mgr collocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit fc6ebd8ebb39c74544ece57c401783908ad1ed24) --- infrastructure-playbooks/purge-cluster.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index baf26e7a0..c3cde350a 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -420,10 +420,13 @@ - 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