summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2019-12-16 14:04:31 -0800
committerJulia Kreger <juliaashleykreger@gmail.com>2020-03-20 17:26:51 +0000
commitdeca07de3c9ca5ff900a2375979291c241eab099 (patch)
tree3065845ddec6a109f42ec2ab27406d6af0ae77a4 /devstack
parent392f2a56bf8b99be22d0d78167a54b10c52f443d (diff)
downloadironic-deca07de3c9ca5ff900a2375979291c241eab099.tar.gz
Signal agent token is required
The agent needs to be able to understand if the agent token is supported and is a mandatory feature of the ironic deployment as that can alter some of the behavior of the agent itself. Also adds documentation on the subject for administrators. Story: 2007025 Task: 37821 Change-Id: Ic635e0ed6d378d6a34a4a82e66ca647eee33bc26
Diffstat (limited to 'devstack')
-rw-r--r--devstack/lib/ironic5
1 files changed, 5 insertions, 0 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index ca9aeab0e..c87b65c5a 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -479,6 +479,9 @@ IRONIC_DEPLOY_LOGS_LOCAL_PATH=${IRONIC_DEPLOY_LOGS_LOCAL_PATH:-$IRONIC_VM_LOG_DI
# Fast track option
IRONIC_DEPLOY_FAST_TRACK=${IRONIC_DEPLOY_FAST_TRACK:-False}
+# Agent Token requirement
+IRONIC_REQUIRE_AGENT_TOKEN=${IRONIC_REQUIRE_AGENT_TOKEN:-True}
+
# Define baremetal min_microversion in tempest config. Default value None is picked from tempest.
TEMPEST_BAREMETAL_MIN_MICROVERSION=${TEMPEST_BAREMETAL_MIN_MICROVERSION:-}
@@ -1294,6 +1297,8 @@ function configure_ironic {
# Set fast track options
iniset $IRONIC_CONF_FILE deploy fast_track $IRONIC_DEPLOY_FAST_TRACK
+ # Set requirement for agent tokens
+ iniset $IRONIC_CONF_FILE DEFAULT require_agent_token $IRONIC_REQUIRE_AGENT_TOKEN
# No need to check if RabbitMQ is enabled, this call does it in a smart way
if [[ "$IRONIC_RPC_TRANSPORT" == "oslo" ]]; then
iniset_rpc_backend ironic $IRONIC_CONF_FILE