Allow users to change the default provisioning timeout value
900 seconds is enough for small images but the larger the image becomes the more time we need to add it to a host, so allow users to override the default value by using the PROVISION_WAIT_TIMEOUT variable. Change-Id: Ia5f35bdf61fa2c8ad348d2a3a7fe181dbe06b096
This commit is contained in:
parent
2ce3ba05af
commit
5ef4bc56dd
@ -35,6 +35,7 @@ INVENTORY_DHCP_STATIC_IP=false
|
|||||||
DOWNLOAD_IPA=true
|
DOWNLOAD_IPA=true
|
||||||
CREATE_IPA_IMAGE=false
|
CREATE_IPA_IMAGE=false
|
||||||
WRITE_INTERFACES_FILE=true
|
WRITE_INTERFACES_FILE=true
|
||||||
|
PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-900}
|
||||||
|
|
||||||
# NOTE(cinerama): We could remove this if we change the CI job to use
|
# NOTE(cinerama): We could remove this if we change the CI job to use
|
||||||
# USE_DHCP, BUILD_IMAGE, etc.
|
# USE_DHCP, BUILD_IMAGE, etc.
|
||||||
@ -135,7 +136,8 @@ ${ANSIBLE} -vvvv \
|
|||||||
-e inspect_nodes=${INSPECT_NODES} \
|
-e inspect_nodes=${INSPECT_NODES} \
|
||||||
-e download_ipa=${DOWNLOAD_IPA} \
|
-e download_ipa=${DOWNLOAD_IPA} \
|
||||||
-e create_ipa_image=${CREATE_IPA_IMAGE} \
|
-e create_ipa_image=${CREATE_IPA_IMAGE} \
|
||||||
-e write_interfaces_file=${WRITE_INTERFACES_FILE}
|
-e write_interfaces_file=${WRITE_INTERFACES_FILE} \
|
||||||
|
-e wait_timeout=${PROVISION_WAIT_TIMEOUT}
|
||||||
EXITCODE=$?
|
EXITCODE=$?
|
||||||
|
|
||||||
if [ $EXITCODE != 0 ]; then
|
if [ $EXITCODE != 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user