summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-12-19 22:14:12 +0000
committerGerrit Code Review <review@openstack.org>2020-12-19 22:14:12 +0000
commit6c9e28dd505a19d405b5ab75500cde555b4aca8d (patch)
tree61638fbbe50830325de067405497139a319a6079 /devstack
parentf11f330d00ff5dbd64bbfc74b0fe60b947241fb1 (diff)
parent628109f9601cd8e6e8f3e0185d3f0bedf2cf9200 (diff)
downloadironic-6c9e28dd505a19d405b5ab75500cde555b4aca8d.tar.gz
Merge "Inject TLS certificate when using virtual media"16.1.0
Diffstat (limited to 'devstack')
-rw-r--r--devstack/lib/ironic12
1 files changed, 7 insertions, 5 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index a53cc6824..d1c98f597 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -1703,12 +1703,14 @@ function configure_ironic_conductor {
local kernel_append_params="nofb nomodeset console=${IRONIC_TTY_DEV}"
kernel_append_params+=" systemd.journald.forward_to_console=yes"
- if is_service_enabled tls-proxy; then
- kernel_append_params+=" ipa-insecure=1"
- fi
- if [[ -n "kernel_append_params" ]]; then
- iniset $IRONIC_CONF_FILE redfish kernel_append_params "$kernel_append_params"
+ # NOTE(dtantsur): avoid setting ipa-insecure for redfish, we have a way to
+ # pass the TLS certificate.
+ iniset $IRONIC_CONF_FILE redfish kernel_append_params "$kernel_append_params"
+
+ if is_service_enabled tls-proxy; then
+ deploy_int_CA "$IRONIC_STATE_PATH/ironic-ca.pem"
+ iniset $IRONIC_CONF_FILE agent api_ca_file "$IRONIC_STATE_PATH/ironic-ca.pem"
fi
# Set these options for scenarios in which the agent fetches the image