From 2837d0a22e258cee583f14e402a99d89c9a16cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 26 Oct 2017 14:18:38 +0200 Subject: [PATCH] purge: do not reboot by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebooting servers is really intrusive and perhaps this is not what the operator wants. So we disable the reboot by default now. Note that the reboot might not happen all the time. It can be enabled by default by running the purge playbook with -e reboot_osd_node=True Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1505011 Signed-off-by: Sébastien Han --- 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 fe2823815..0d4db1149 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -195,6 +195,7 @@ vars: osd_group_name: osds + reboot_osd_node: False hosts: - "{{ osd_group_name|default('osds') }}" @@ -352,7 +353,9 @@ - restart machine - wait for server to boot - remove data - when: remove_osd_mountpoints.failed is defined + when: + - reboot_osd_node + - remove_osd_mountpoints.failed is defined - name: see if ceph-disk is installed shell: "which ceph-disk"