Merge "CI: Fix prometheus-efk scenario with TLS enabled"
This commit is contained in:
commit
118ca739e3
@ -521,6 +521,8 @@
|
|||||||
cmd: test-prometheus-efk.sh
|
cmd: test-prometheus-efk.sh
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
chdir: "{{ kolla_ansible_src_dir }}"
|
chdir: "{{ kolla_ansible_src_dir }}"
|
||||||
|
environment:
|
||||||
|
TLS_ENABLED: "{{ tls_enabled }}"
|
||||||
when: scenario == "prometheus-efk"
|
when: scenario == "prometheus-efk"
|
||||||
|
|
||||||
- name: Run test-venus.sh script
|
- name: Run test-venus.sh script
|
||||||
|
@ -39,6 +39,9 @@ function check_elasticsearch {
|
|||||||
--location
|
--location
|
||||||
--fail
|
--fail
|
||||||
)
|
)
|
||||||
|
if [[ "$TLS_ENABLED" = "True" ]]; then
|
||||||
|
args+=(--cacert $OS_CACERT)
|
||||||
|
fi
|
||||||
if ! curl "${args[@]}" $ELASTICSEARCH_URL > $output_path; then
|
if ! curl "${args[@]}" $ELASTICSEARCH_URL > $output_path; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user