Merge "Update image upload to use OpenStack Unified Client"
This commit is contained in:
commit
73b5d0620a
@ -303,7 +303,7 @@
|
|||||||
with_items: "{{ images }}"
|
with_items: "{{ images }}"
|
||||||
|
|
||||||
- name: Determine if image exists
|
- name: Determine if image exists
|
||||||
shell: . {{ overcloudrc }}; glance image-list | grep '{{ item }}'
|
shell: . {{ overcloudrc }}; openstack image list | grep '{{ item }}'
|
||||||
register: image_exists
|
register: image_exists
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
@ -316,8 +316,8 @@
|
|||||||
- "{{ images }}"
|
- "{{ images }}"
|
||||||
- "{{ image_exists.results }}"
|
- "{{ image_exists.results }}"
|
||||||
|
|
||||||
- name: Upload image into cloud (Liberty and >Liberty versions)
|
- name: Upload image into cloud (Newton and Ocata versions)
|
||||||
shell: . {{ overcloudrc }}; glance image-create --name {{ item }} --visibility public --disk-format=qcow2 --container-format=bare < {{ home_dir }}/{{ item }}
|
shell: . {{ overcloudrc }}; openstack image create --public --disk-format=qcow2 --container-format=bare {{ item }} < {{ home_dir }}/{{ item }}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
with_items: "{{ images }}"
|
with_items: "{{ images }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user