Skip to content

Commit

Permalink
Merge pull request openshift#105 from stbenjam/fast_track
Browse files Browse the repository at this point in the history
Enable fast_track provisioning for nodes
  • Loading branch information
metal3-io-bot committed Nov 7, 2019
2 parents ac6b448 + 6a331cd commit cc5cc77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure-ironic.sh
Expand Up @@ -13,6 +13,9 @@ MARIADB_PASSWORD=${MARIADB_PASSWORD:-"change_me"}
NUMPROC=$(cat /proc/cpuinfo | grep "^processor" | wc -l)
NUMWORKERS=$(( NUMPROC < 12 ? NUMPROC : 12 ))

# Whether to enable fast_track provisioning or not
IRONIC_FAST_TRACK=${IRONIC_FAST_TRACK:-true}

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

crudini --merge /etc/ironic/ironic.conf <<EOF
Expand All @@ -30,6 +33,7 @@ connection = mysql+pymysql://ironic:${MARIADB_PASSWORD}@localhost/ironic?charset
[deploy]
http_url = http://${IRONIC_IP}:${HTTP_PORT}
fast_track = ${IRONIC_FAST_TRACK}
[inspector]
endpoint_override = http://${IRONIC_IP}:5050
Expand Down

0 comments on commit cc5cc77

Please sign in to comment.