Skip to content

Commit

Permalink
Merge pull request #189 from imain/downstream_remote_ip
Browse files Browse the repository at this point in the history
Add options for external_http_url and external_callback_url
  • Loading branch information
openshift-merge-robot committed Jul 7, 2021
2 parents f6e7a6a + a2831af commit e013a2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ironic-config/ironic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ fast_track = {{ env.IRONIC_FAST_TRACK }}
{% if env.IRONIC_BOOT_ISO_SOURCE %}
ramdisk_image_download_source = {{ env.IRONIC_BOOT_ISO_SOURCE }}
{% endif %}
{% if env.IRONIC_EXTERNAL_HTTP_URL %}
external_http_url = {{ env.IRONIC_EXTERNAL_HTTP_URL }}
{% endif %}
{% if env.IRONIC_EXTERNAL_CALLBACK_URL %}
external_callback_url = {{ env.IRONIC_EXTERNAL_CALLBACK_URL }}
{% endif %}

[dhcp]
dhcp_provider = none
Expand Down
9 changes: 9 additions & 0 deletions scripts/configure-ironic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ else
export MARIADB_TLS_ENABLED="false"
fi

if [ ! -z "${IRONIC_EXTERNAL_IP}" ]; then
if [ "${IRONIC_INSPECTOR_TLS_SETUP}" == "true" ]; then
export IRONIC_EXTERNAL_CALLBACK_URL="https://${IRONIC_EXTERNAL_IP}:6385"
else
export IRONIC_EXTERNAL_CALLBACK_URL="http://${IRONIC_EXTERNAL_IP}:6385"
fi
export IRONIC_EXTERNAL_HTTP_URL="http://${IRONIC_EXTERNAL_IP}:6180"
fi

cp /etc/ironic/ironic.conf /etc/ironic/ironic.conf_orig

# oslo.config also supports Config Opts From Environment, log them
Expand Down

0 comments on commit e013a2e

Please sign in to comment.