Add cirros image to browbeat install

Change-Id: I04a6ccaa9237894d7c96380ad15fd447e5c25f96
This commit is contained in:
Alex Krzos 2015-12-23 10:45:11 -05:00
parent 3ce4fd8622
commit 59f0fa0920
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
centos_image_url: http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
cirros_image_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
connmon_host: 192.0.2.1

View File

@ -47,6 +47,19 @@
# Nova boot image tasks
#
- name: Fetch cirros image
get_url: url={{ cirros_image_url }} dest=/home/stack/cirros.img
- name: Determine is cirros image exists
shell: . /home/stack/overcloudrc; glance image-list | grep "cirros"
register: cirros_image_exists
ignore_errors: true
changed_when: false
- name: Upload cirros image into cloud
shell: . /home/stack/overcloudrc; glance image-create --name cirros --visibility public --disk-format=qcow2 --container-format=bare < /home/stack/cirros.img
when: "'cirros' not in '{{ cirros_image_exists.stdout }}'"
- name: Fetch centos7 image
get_url: url={{ centos_image_url }} dest=/home/stack/centos7.qcow2