]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: do not reboot by default 2112/head
authorSébastien Han <seb@redhat.com>
Thu, 26 Oct 2017 12:18:38 +0000 (14:18 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 26 Oct 2017 12:18:38 +0000 (14:18 +0200)
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 <seb@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index fe2823815df9b8d3f2a53a7c71f71413ed71b928..0d4db11497540a194486de1fd3f0de4c9d579d55 100644 (file)
 
   vars:
     osd_group_name: osds
+    reboot_osd_node: False
 
   hosts:
     - "{{ osd_group_name|default('osds') }}"
       - 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"