Skip to content

Commit

Permalink
No need to conditionally create images
Browse files Browse the repository at this point in the history
  • Loading branch information
bigjools committed Jan 31, 2017
1 parent d957827 commit b4d6301
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
image_disk_format: aki
image_is_public: True
# shell: "glance image-create --name deploy-vmlinuz --visibility public --disk-format aki --container-format aki < {{ ironic_bin|dirname }}/coreos_production_pxe.vmlinuz"
when: ironic_ipa_vmlinux_downloaded|changed
# when: ironic_ipa_vmlinux_downloaded|changed

- name: Upload IPA disk image to Glance
glance:
Expand All @@ -59,7 +59,7 @@
image_disk_format: ari
image_is_public: True
# shell: "glance image-create --name deploy-initrd --visibility public --disk-format ari --container-format ari < {{ ironic_bin|dirname }}/coreos_production_pxe_image-oem.cpio.gz"
when: ironic_ipa_pxe_image_downloaded|changed
# when: ironic_ipa_pxe_image_downloaded|changed

- stat:
path: "{{ironic_bin | dirname}}/ubuntu.vmlinuz"
Expand All @@ -80,7 +80,7 @@
image_container_format: aki
image_disk_format: aki
image_is_public: True
when: ironic_dib_image_built | changed
# when: ironic_dib_image_built | changed

- name: Upload DIB initrd to Glance
glance:
Expand All @@ -92,9 +92,9 @@
image_container_format: ari
image_disk_format: ari
image_is_public: True
when: ironic_dib_image_built | changed
# when: ironic_dib_image_built | changed

- name: Upload DIB instance image to Glance
# NOTE: Can't use the glance action as it doesn't support properties.
shell: "glance image-create --name ubuntu-image --visibility public --disk-format qcow2 --container-format bare --property kernel_id={{ glance_images['ubuntu-kernel']['id'] }} --property ramdisk_id={{ glance_images['ubuntu-image.initrd']['id'] }} < {{ ironic_bin | dirname }}/ubuntu-image.qcow2"
when: ironic_dib_image_built | changed
# when: ironic_dib_image_built | changed

0 comments on commit b4d6301

Please sign in to comment.