summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2016-01-06 15:39:31 +0100
committerLénaïc Huard <lhuard@amadeus.com>2016-01-07 14:26:30 +0100
commite3e4f985a28f0c9ad175b671674b3b1e185479c4 (patch)
treef5be6393706d005e37ee0712bc7aa5c23cbcf847
parentb733e7fb2c79c6b7423c159681eba28417cdf599 (diff)
downloadopenshift-e3e4f985a28f0c9ad175b671674b3b1e185479c4.tar.gz
openshift-e3e4f985a28f0c9ad175b671674b3b1e185479c4.tar.bz2
openshift-e3e4f985a28f0c9ad175b671674b3b1e185479c4.tar.xz
openshift-e3e4f985a28f0c9ad175b671674b3b1e185479c4.zip
Fix VM drive cleanup during terminate on libvirt
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml b/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
index 8a67d713f..397158b9e 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
@@ -4,13 +4,17 @@
dest: "{{ libvirt_storage_pool_path }}"
state: directory
+# We need to set permissions on the directory and any items created under the directory, so we need to call the acl module with and without default set.
- acl:
- default: yes
+ default: "{{ item }}"
entity: kvm
etype: group
name: "{{ libvirt_storage_pool_path }}"
permissions: rwx
state: present
+ with_items:
+ - no
+ - yes
- name: Test if libvirt storage pool for openshift already exists
command: "virsh -c {{ libvirt_uri }} pool-info {{ libvirt_storage_pool }}"