diff --git a/ansible/roles/ironic/defaults/main.yml b/ansible/roles/ironic/defaults/main.yml index 66ad6b164a..ab6c751ad1 100644 --- a/ansible/roles/ironic/defaults/main.yml +++ b/ansible/roles/ironic/defaults/main.yml @@ -149,7 +149,7 @@ ironic_api_enable_healthchecks: "{{ enable_container_healthchecks }}" ironic_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}" ironic_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}" ironic_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}" -ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"] +ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if ironic_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"] ironic_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}" ironic_api_healthcheck: interval: "{{ ironic_api_healthcheck_interval }}" diff --git a/releasenotes/notes/ironic-api-backend-tls-healthcheck-481b69116b072913.yaml b/releasenotes/notes/ironic-api-backend-tls-healthcheck-481b69116b072913.yaml new file mode 100644 index 0000000000..0bba6b9db1 --- /dev/null +++ b/releasenotes/notes/ironic-api-backend-tls-healthcheck-481b69116b072913.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes Ironic API healthchecks when backend TLS encryption is enabled. + `LP#1990819 `__