Skip to content

Commit

Permalink
Merge pull request #479 from dtantsur/no-inspector
Browse files Browse the repository at this point in the history
⚠️ Disable ironic-inspector by default
  • Loading branch information
metal3-io-bot authored Mar 4, 2024
2 parents 3eda5fc + 1a3b915 commit 6664e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ironic-config/ironic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ add_ports = all
keep_ports = present
{% endif %}

[auto_discovery]
enabled = {{ env.IRONIC_INSPECTOR_ENABLE_DISCOVERY }}
driver = ipmi

[ipmi]
# use_ipmitool_retries transfers the responsibility of retrying to ipmitool
# when supported. If set to false, then ipmitool is called as follows :
Expand Down
6 changes: 1 addition & 5 deletions scripts/ironic-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,5 @@ export IRONIC_INSPECTOR_ACCESS_PORT=${IRONIC_INSPECTOR_ACCESS_PORT:-5050}
export IRONIC_INSPECTOR_LISTEN_PORT=${IRONIC_INSPECTOR_LISTEN_PORT:-$IRONIC_INSPECTOR_ACCESS_PORT}

# If this is false, built-in inspection is used.
export USE_IRONIC_INSPECTOR=${USE_IRONIC_INSPECTOR:-true}
export USE_IRONIC_INSPECTOR=${USE_IRONIC_INSPECTOR:-false}
export IRONIC_INSPECTOR_ENABLE_DISCOVERY=${IRONIC_INSPECTOR_ENABLE_DISCOVERY:-false}
if [[ "${USE_IRONIC_INSPECTOR}" != "true" ]] && [[ "${IRONIC_INSPECTOR_ENABLE_DISCOVERY}" == "true" ]]; then
echo "Discovery is only supported with ironic-inspector at this point"
exit 1
fi

0 comments on commit 6664e02

Please sign in to comment.