forked from suse-edge/Factory
Drop all the config and script files into their respective directory from the upstream release v30.0.0. Any required customization will follow in subsequent commits, which could potentially be reused for future realignments. Signed-off-by: Marco Chiappero <marco.chiappero@suse.com>
24 lines
563 B
Bash
Executable File
24 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
# shellcheck disable=SC1091
|
|
. /bin/ironic-common.sh
|
|
# shellcheck disable=SC1091
|
|
. /bin/auth-common.sh
|
|
|
|
PROBE_CURL_ARGS=
|
|
if [[ "${IRONIC_REVERSE_PROXY_SETUP}" == "true" ]]; then
|
|
if [[ "${IRONIC_PRIVATE_PORT}" == "unix" ]]; then
|
|
PROBE_URL="http://127.0.0.1:6385"
|
|
PROBE_CURL_ARGS="--unix-socket /shared/ironic.sock"
|
|
else
|
|
PROBE_URL="http://127.0.0.1:${IRONIC_PRIVATE_PORT}"
|
|
fi
|
|
else
|
|
PROBE_URL="${IRONIC_BASE_URL}"
|
|
fi
|
|
|
|
# shellcheck disable=SC2086
|
|
curl -sSf ${PROBE_CURL_ARGS} "${PROBE_URL}"
|