aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/destroy
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2016-11-15 19:01:25 -0700
committerSteven Dake <stdake@cisco.com>2016-11-15 21:34:17 -0700
commit3fcef82946f7053affcfb0b1b3ef4292beb9fa95 (patch)
tree0b9083d2cbf7d6c8d372de6b016419d6a719d424 /ansible/roles/destroy
parent0963c2255a9718419c1cf8deaff350ea6ddc8472 (diff)
downloadkolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.tar.gz
kolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.zip
Remove Ansible from Kolla
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
Diffstat (limited to 'ansible/roles/destroy')
-rw-r--r--ansible/roles/destroy/defaults/main.yml2
-rw-r--r--ansible/roles/destroy/tasks/cleanup_containers.yml10
-rw-r--r--ansible/roles/destroy/tasks/cleanup_host.yml12
-rw-r--r--ansible/roles/destroy/tasks/cleanup_images.yml5
-rw-r--r--ansible/roles/destroy/tasks/copy_tools.yml31
-rw-r--r--ansible/roles/destroy/tasks/main.yml8
-rw-r--r--ansible/roles/destroy/tasks/precheck.yml1
7 files changed, 0 insertions, 69 deletions
diff --git a/ansible/roles/destroy/defaults/main.yml b/ansible/roles/destroy/defaults/main.yml
deleted file mode 100644
index 0d75e357d..000000000
--- a/ansible/roles/destroy/defaults/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-destroy_include_images: no
diff --git a/ansible/roles/destroy/tasks/cleanup_containers.yml b/ansible/roles/destroy/tasks/cleanup_containers.yml
deleted file mode 100644
index c6aee8ef5..000000000
--- a/ansible/roles/destroy/tasks/cleanup_containers.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: Destroying all Kolla containers and volumes on compute node
- environment:
- COMPUTE: true
- command: /tmp/kolla-cleanup/tools/cleanup-containers
- when: inventory_hostname in groups['compute']
-
-- name: Destroying all Kolla containers and volumes on non compute node
- command: /tmp/kolla-cleanup/tools/cleanup-containers
- when: inventory_hostname not in groups['compute']
diff --git a/ansible/roles/destroy/tasks/cleanup_host.yml b/ansible/roles/destroy/tasks/cleanup_host.yml
deleted file mode 100644
index 228fb70bb..000000000
--- a/ansible/roles/destroy/tasks/cleanup_host.yml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- name: Destroying Kolla host configuration
- command: >
- env enable_haproxy={{ enable_haproxy }}
- kolla_internal_vip_address={{ kolla_internal_vip_address }}
- kolla_external_vip_address={{ kolla_external_vip_address }}
- /tmp/kolla-cleanup/tools/cleanup-host
-
-- name: Destroying kolla-cleanup folder
- file:
- path: /tmp/kolla-cleanup
- state: absent
diff --git a/ansible/roles/destroy/tasks/cleanup_images.yml b/ansible/roles/destroy/tasks/cleanup_images.yml
deleted file mode 100644
index e6b8d6073..000000000
--- a/ansible/roles/destroy/tasks/cleanup_images.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-- name: Destroying Kolla images
- command: /tmp/kolla-cleanup/tools/cleanup-images
- when:
- - destroy_include_images | bool
diff --git a/ansible/roles/destroy/tasks/copy_tools.yml b/ansible/roles/destroy/tasks/copy_tools.yml
deleted file mode 100644
index 6a990e197..000000000
--- a/ansible/roles/destroy/tasks/copy_tools.yml
+++ /dev/null
@@ -1,31 +0,0 @@
----
-- name: Creating /kolla-cleanup/tools directory on node
- file:
- state: directory
- path: /tmp/kolla-cleanup/tools
-
-- name: Copying validate-docker-execute.sh file
- copy:
- src: ../tools/validate-docker-execute.sh
- dest: /tmp/kolla-cleanup/tools
- mode: 0755
-
-- name: Copying cleanup-containers file
- copy:
- src: ../tools/cleanup-containers
- dest: /tmp/kolla-cleanup/tools
- mode: 0755
-
-- name: Copying cleanup-host file
- copy:
- src: ../tools/cleanup-host
- dest: /tmp/kolla-cleanup/tools
- mode: 0755
-
-- name: Copying cleanup-images file
- copy:
- src: ../tools/cleanup-images
- dest: /tmp/kolla-cleanup/tools
- mode: 0755
- when:
- - destroy_include_images | bool
diff --git a/ansible/roles/destroy/tasks/main.yml b/ansible/roles/destroy/tasks/main.yml
deleted file mode 100644
index 13b59b7fb..000000000
--- a/ansible/roles/destroy/tasks/main.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- include: copy_tools.yml
-
-- include: cleanup_containers.yml
-
-- include: cleanup_images.yml
-
-- include: cleanup_host.yml
diff --git a/ansible/roles/destroy/tasks/precheck.yml b/ansible/roles/destroy/tasks/precheck.yml
deleted file mode 100644
index ed97d539c..000000000
--- a/ansible/roles/destroy/tasks/precheck.yml
+++ /dev/null
@@ -1 +0,0 @@
----