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:
Markos Chandras 2016-09-26 09:33:39 +01:00
parent 2ce3ba05af
commit 5ef4bc56dd
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ INVENTORY_DHCP_STATIC_IP=false
DOWNLOAD_IPA=true
CREATE_IPA_IMAGE=false
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
# USE_DHCP, BUILD_IMAGE, etc.
@ -135,7 +136,8 @@ ${ANSIBLE} -vvvv \
-e inspect_nodes=${INSPECT_NODES} \
-e download_ipa=${DOWNLOAD_IPA} \
-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=$?
if [ $EXITCODE != 0 ]; then