2024-10-21 15:18:05 +03:00
|
|
|
#!/usr/bin/bash
|
|
|
|
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
. /bin/configure-ironic.sh
|
|
|
|
|
|
|
|
# Ramdisk logs
|
|
|
|
mkdir -p /shared/log/ironic/deploy
|
|
|
|
|
2025-06-26 12:48:09 +00:00
|
|
|
# Allows skipping dbsync if it's done by an external job
|
|
|
|
if [[ "${IRONIC_SKIP_DBSYNC:-false}" != true ]]; then
|
|
|
|
run_ironic_dbsync
|
2024-10-21 15:18:05 +03:00
|
|
|
fi
|
|
|
|
|
2025-06-26 12:48:09 +00:00
|
|
|
configure_restart_on_certificate_update "${IRONIC_TLS_SETUP}" ironic "${IRONIC_CERT_FILE}"
|
|
|
|
|
2024-10-21 15:18:05 +03:00
|
|
|
configure_ironic_auth
|
|
|
|
|
2025-06-26 12:48:09 +00:00
|
|
|
exec /usr/bin/ironic --config-dir "${IRONIC_CONF_DIR}"
|