summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/custom_image_check.yaml
diff options
context:
space:
mode:
authorTlacenka <tlacencin@gmail.com>2017-08-25 13:30:02 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-08-25 13:30:02 +0200
commit9593ffb85ab6c2b5ee3964d7566932cf9ae768c9 (patch)
tree7b05ec631c1442829a3f657bb7f5cbb615ed6489 /playbooks/provisioning/openstack/custom_image_check.yaml
parentce3be1e039fd3bddf245bdaed83466f12b59937b (diff)
downloadopenshift-9593ffb85ab6c2b5ee3964d7566932cf9ae768c9.tar.gz
openshift-9593ffb85ab6c2b5ee3964d7566932cf9ae768c9.tar.bz2
openshift-9593ffb85ab6c2b5ee3964d7566932cf9ae768c9.tar.xz
openshift-9593ffb85ab6c2b5ee3964d7566932cf9ae768c9.zip
Added checks for configured images and flavors (#688)
* prerequisites, custom_*_check: added checking that specified images/flavors are available - uses stack_params as a source of variable value which is then passed to the HOT * minor fixes
Diffstat (limited to 'playbooks/provisioning/openstack/custom_image_check.yaml')
-rw-r--r--playbooks/provisioning/openstack/custom_image_check.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom_image_check.yaml b/playbooks/provisioning/openstack/custom_image_check.yaml
new file mode 100644
index 000000000..452e1e4d8
--- /dev/null
+++ b/playbooks/provisioning/openstack/custom_image_check.yaml
@@ -0,0 +1,9 @@
+---
+- name: Try to get image facts
+ os_image_facts:
+ image: "{{ image }}"
+ register: image_result
+- name: Check that custom image is available
+ assert:
+ that: "image_result.ansible_facts.openstack_image"
+ msg: "Image {{ image }} is not available."