kolla-ansible/ansible/roles/glance/tasks/check.yml
Scott Solkhon 09e02ef8f1 Support configuration of trusted CA certificate file
This commit adds the functionality for an operator to specify
their own trusted CA certificate file for interacting with the
Keystone API.

Implements: blueprint support-trusted-ca-certificate-file
Change-Id: I84f9897cc8e107658701fb309ec318c0f805883b
2019-08-16 12:47:42 +00:00

33 lines
907 B
YAML

---
- name: Glance sanity check - create image
become: true
kolla_toolbox:
module_name: os_image
module_args:
auth: "{{ openstack_glance_auth }}"
name: "glance_sanity_check"
filename: "/etc/hostname"
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
delegate_to: "{{ groups['glance-api'][0] }}"
run_once: True
register: img_create
retries: 10
delay: 3
until: img_create is success
when: kolla_enable_sanity_glance | bool
- name: Glance sanity check - cleanup
become: true
kolla_toolbox:
module_name: os_image
module_args:
auth: "{{ openstack_glance_auth }}"
name: "glance_sanity_check"
state: absent
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
delegate_to: "{{ groups['glance-api'][0] }}"
run_once: True
when: kolla_enable_sanity_glance | bool