Skip to content
Snippets Groups Projects
Commit b29acfeb authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Add precheck for haproxy certificate file"

parents c9f899b5 ecafeb62
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,20 @@
check_mode: no
run_once: true
- name: Checking if haproxy certificate exists
run_once: true
local_action: stat path={{ kolla_external_fqdn_cert }}
register: haproxy_cert_file
changed_when: false
when: kolla_enable_tls_external | bool
- name: Fail if haproxy certificate is absent
run_once: true
local_action: fail msg="haproxy certificate file is not found. Ensure it exists as {{ kolla_external_fqdn_cert }}"
when:
- kolla_enable_tls_external | bool
- haproxy_cert_file.stat.exists == false
- name: Checking the kolla_external_vip_interface is present
fail: "msg='Please check the kolla_external_vip_interface property - interface {{ kolla_external_vip_interface }} not found'"
when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment