summaryrefslogtreecommitdiffstats
path: root/playbooks/libvirt/openshift-cluster/tasks
diff options
context:
space:
mode:
authorJonathan Steffan <jsteffan@fedoraproject.org>2015-11-22 19:51:21 -0700
committerJonathan Steffan <jsteffan@fedoraproject.org>2015-11-22 19:51:21 -0700
commitaa52ca9e12267ce5cf43ebde4782ed6f2fc57150 (patch)
tree241fc04cd014b1166650adfd1e97ec5d9a0e5bcb /playbooks/libvirt/openshift-cluster/tasks
parent8e979def0a56b40ab8a3acbd2e1a146457a5aaa6 (diff)
downloadopenshift-aa52ca9e12267ce5cf43ebde4782ed6f2fc57150.tar.gz
openshift-aa52ca9e12267ce5cf43ebde4782ed6f2fc57150.tar.bz2
openshift-aa52ca9e12267ce5cf43ebde4782ed6f2fc57150.tar.xz
openshift-aa52ca9e12267ce5cf43ebde4782ed6f2fc57150.zip
Update for latest CentOS-7-x86_64-GenericCloud.
- Use xz compressed image - Update sha256 for new image - Update docs to reflect new settings
Diffstat (limited to 'playbooks/libvirt/openshift-cluster/tasks')
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
index 4825207c9..e1e552c36 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
@@ -13,8 +13,15 @@
get_url:
url: '{{ image_url }}'
sha256sum: '{{ image_sha256 }}'
- dest: '{{ os_libvirt_storage_pool_path }}/{{ image_name }}'
+ dest: '{{ os_libvirt_storage_pool_path }}/{{ [image_name, image_compression] | join(".") }}'
when: '{{ ( lookup("oo_option", "skip_image_download") | default("no", True) | lower ) in ["false", "no"] }}'
+ register: downloaded_image
+
+- name: Uncompress Base Cloud image
+ command: 'unxz -kf {{ os_libvirt_storage_pool_path }}/{{ image_name }}.{{ image_compression }}'
+ args:
+ creates: '{{ os_libvirt_storage_pool_path }}/{{ image_name }}'
+ when: image_compression in ["xz"] and downloaded_image.changed
- name: Create the cloud-init config drive path
file: