From c66d3d90015e5fe1d3422cd9bf14bf57741c6553 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Wed, 4 Mar 2015 16:48:58 -0500 Subject: [PATCH] Correct configdrive creation Per jroll in #openstack-ironic, the configdrive format is gzipped, and then base64 encoded. --- deploy/configdrive.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/configdrive.yaml b/deploy/configdrive.yaml index 341c9d18d..41afad7b9 100644 --- a/deploy/configdrive.yaml +++ b/deploy/configdrive.yaml @@ -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"