Correct configdrive creation
Per jroll in #openstack-ironic, the configdrive format is gzipped, and then base64 encoded.
This commit is contained in:
parent
aac613616e
commit
c66d3d9001
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user