playbook to reset a cluster

This commit is contained in:
Egon Rijpkema 2018-01-30 09:57:11 +01:00
parent 35551f69c1
commit 59233d8019

15
nuke.yml Normal file
View File

@ -0,0 +1,15 @@
---
- hosts: all
name: Dummy to gather facts
tasks:
- name: Stop docker service
systemd:
name: docker
state: stopped
- name: remove volumes
shell: "rm -rf /srv"
- hosts: cinder-storage
tasks:
- name: wipe cinder storage.
shell: "dd if=/dev/zero of={{ storage_volume }} bs=1M count=1 && sync"