Correct configdrive creation

Per jroll in #openstack-ironic, the configdrive format is gzipped,
and then base64 encoded.
This commit is contained in:
Julia Kreger 2015-03-04 16:48:58 -05:00
parent aac613616e
commit c66d3d9001

View File

@ -31,7 +31,7 @@
with_lines:
- cat {{ baremetal_csv_file }}
- name: "Make config drive files base64 encoded and gzip compressed"
local_action: shell base64 {{http_boot_folder}}/configdrive-{{item.split(',')[9]}}.iso | gzip > {{http_boot_folder}}/configdrive-{{item.split(',')[9]}}.iso.gz
local_action: shell gzip -c {{http_boot_folder}}/configdrive-{{item.split(',')[9]}}.iso | base64 > {{http_boot_folder}}/configdrive-{{item.split(',')[9]}}.iso.gz
with_lines:
- cat {{ baremetal_csv_file }}
- name: "Cleanup configdrive .iso files"