|
@@ -49,16 +49,6 @@
|
|
|
that: 'jinja_result.rc == 0'
|
|
|
msg: "Python module jinja2 is not installed"
|
|
|
|
|
|
-# Check Glance image
|
|
|
-- name: Try to get image facts
|
|
|
- os_image_facts:
|
|
|
- image: "{{ openshift_openstack_default_image_name }}"
|
|
|
- register: image_result
|
|
|
-- name: Check that image is available
|
|
|
- assert:
|
|
|
- that: "image_result.ansible_facts.openstack_image"
|
|
|
- msg: "Image {{ openshift_openstack_default_image_name }} is not available"
|
|
|
-
|
|
|
# Check network name
|
|
|
- name: Try to get network facts
|
|
|
os_networks_facts:
|
|
@@ -86,22 +76,13 @@
|
|
|
that: 'key_result.rc == 0'
|
|
|
msg: "Keypair {{ openshift_openstack_keypair_name }} is not available"
|
|
|
|
|
|
-# Check that custom images are available
|
|
|
-- include_tasks: custom_image_check.yaml
|
|
|
- with_items:
|
|
|
- - "{{ openshift_openstack_master_image }}"
|
|
|
- - "{{ openshift_openstack_infra_image }}"
|
|
|
- - "{{ openshift_openstack_cns_image }}"
|
|
|
- - "{{ openshift_openstack_node_image }}"
|
|
|
- - "{{ openshift_openstack_lb_image }}"
|
|
|
- - "{{ openshift_openstack_etcd_image }}"
|
|
|
-
|
|
|
-# Check that custom flavors are available
|
|
|
-- include_tasks: custom_flavor_check.yaml
|
|
|
+# Check flavors and images
|
|
|
+- include_tasks: image-and-flavor-check.yml
|
|
|
with_items:
|
|
|
- - "{{ openshift_openstack_master_flavor }}"
|
|
|
- - "{{ openshift_openstack_infra_flavor }}"
|
|
|
- - "{{ openshift_openstack_cns_flavor }}"
|
|
|
- - "{{ openshift_openstack_node_flavor }}"
|
|
|
- - "{{ openshift_openstack_lb_flavor }}"
|
|
|
- - "{{ openshift_openstack_etcd_flavor }}"
|
|
|
+ - { image: "{{ openshift_openstack_default_image_name }}", flavor: "{{ openshift_openstack_default_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_master_image }}", flavor: "{{ openshift_openstack_master_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_infra_image }}", flavor: "{{ openshift_openstack_infra_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_cns_image }}", flavor: "{{ openshift_openstack_cns_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_node_image }}", flavor: "{{ openshift_openstack_node_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_lb_image }}", flavor: "{{ openshift_openstack_lb_flavor }}" }
|
|
|
+ - { image: "{{ openshift_openstack_etcd_image }}", flavor: "{{ openshift_openstack_etcd_flavor }}" }
|