Skip to content

Commit

Permalink
Merge pull request #127 from dtantsur/oc-insecure
Browse files Browse the repository at this point in the history
Add options to disable TLS validations
  • Loading branch information
openshift-merge-robot committed Dec 1, 2020
2 parents 0010cf4 + 0d9dd00 commit 30c9a19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure-ironic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
export IRONIC_CERT_FILE=/certs/ironic/tls.crt
export IRONIC_KEY_FILE=/certs/ironic/tls.key
export IRONIC_CACERT_FILE=/certs/ca/ironic/tls.crt
export IRONIC_INSECURE=${IRONIC_INSECURE:-false}

export IRONIC_INSPECTOR_CERT_FILE=/certs/ironic-inspector/tls.crt
export IRONIC_INSPECTOR_CACERT_FILE=/certs/ca/ironic-inspector/tls.crt
export IRONIC_INSPECTOR_INSECURE=${IRONIC_INSPECTOR_INSECURE:-$IRONIC_INSECURE}

export MARIADB_CACERT_FILE=/certs/ca/mariadb/tls.crt

mkdir -p /certs/ironic
Expand Down
2 changes: 2 additions & 0 deletions ironic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ endpoint_override = {{ env.IRONIC_INSPECTOR_BASE_URL }}
power_off = {{ false if env.IRONIC_FAST_TRACK == "true" else true }}
{% if env.IRONIC_INSPECTOR_TLS_SETUP == "true" %}
cafile = {{ env.IRONIC_INSPECTOR_CACERT_FILE }}
insecure = {{ env.IRONIC_INSPECTOR_INSECURE }}
{% endif %}
# TODO(dtantsur): ipa-api-url should be populated by ironic itself, but it's
# not, so working around here.
Expand Down Expand Up @@ -132,6 +133,7 @@ host_ip = {% if env.LISTEN_ALL_INTERFACES | lower == "true" %}::{% else %}{{ env
{% if env.IRONIC_TLS_SETUP == "true" %}
use_ssl = true
cafile = {{ env.IRONIC_CACERT_FILE }}
insecure = {{ env.IRONIC_INSECURE }}
{% endif %}

[oslo_messaging_notifications]
Expand Down

0 comments on commit 30c9a19

Please sign in to comment.