
Airshipctl implementation will provide container inputs via stdin. This patchset allows the image-builder container to accept inputs of this kind. It maintains backwards compatibility with previous verison until it is no longer used by airshipctl. Add control to enable or disable qcow compression. Add wget package to image defaults. Change-Id: I835c183be7ef6e06f2e3550de2a726df6f9d0e3f
15 lines
586 B
YAML
15 lines
586 B
YAML
|
|
- name: "QCOW | Detaching QCoW from {{ role_img_nbd_device.stdout }}"
|
|
shell: |
|
|
qemu-nbd -d "{{ lookup('file', '/tmp/nbd') }}"
|
|
|
|
- name: "QCOW | Compressing QCoW and writing out to {{ img_output_dir }}/{{ img_name }}"
|
|
shell: |
|
|
qemu-img convert -p -O qcow2 -c {{ nbd_build_dir }}/{{ img_name }} {{ img_output_dir }}/{{ img_name }}
|
|
when: qcow_compress
|
|
|
|
- name: "QCOW | Writing QCoW to {{ img_output_dir }}/{{ img_name }}"
|
|
shell: |
|
|
qemu-img convert -p -O qcow2 {{ nbd_build_dir }}/{{ img_name }} {{ img_output_dir }}/{{ img_name }}
|
|
when: not qcow_compress
|