Skip to content

Commit

Permalink
Ensure swift facts get set on all hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigjools committed Feb 1, 2017
1 parent 49a2ee3 commit e243715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tasks/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
image_is_public: True
# 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: "source /etc/metacloud/openrc.sh && openstack image create --public --disk-format qcow2 --container-format bare --property kernel_id={{ glance_images['ubuntu-kernel']['id'] }} --property ramdisk_id={{ glance_images['ubuntu-image.initrd']['id'] }} --file {{ ironic_bin | dirname }}/ubuntu-image.qcow2 ubuntu-image"
- name: Upload DIB instance image to Glance
shell: "source /etc/metacloud/openrc.sh && openstack image create --public --disk-format qcow2 --container-format bare --property kernel_id={{ glance_images['ubuntu-kernel']['id'] }} --property ramdisk_id={{ glance_images['ubuntu-image.initrd']['id'] }} --file {{ ironic_bin | dirname }}/ubuntu-image.qcow2 ubuntu-image"
when: not glance_images['ubuntu-image'] is defined
5 changes: 2 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@
- ironic_oneview_enabled | bool
- inventory_hostname in groups['ironic_conductor']

- include: ironic_post_install.yml
- include: swift.yml
tags:
- ironic-config

- include: swift.yml
when: inventory_hostname in groups['ironic_conductor'][0]
- include: ironic_post_install.yml
tags:
- ironic-config

Expand Down

0 comments on commit e243715

Please sign in to comment.