VM_RAM_MB: 4096
VM_NETWORK: '192.168.88.0_23'
VM_MAC_ADDRESS: '00:16:3e:54:ab:2b'
+ MAX_WAIT_GENERAL: 3
+ MAX_WAIT_SHUTDOWN: 120
MAX_WAIT_FOR_FINISH_INSTALL: 3600
.template_job: &job_definition
before_script:
- - rm -rf venv
- - virtualenv --python=python3.6 venv
+ - if [ ! -d venv ] ; then virtualenv --python=python3.6 venv; else true; fi
- source venv/bin/activate
- pip install --upgrade pip
- pip install --upgrade --upgrade-strategy eager --requirement python_fb_tools/requirements.txt
- hostname -f
- whoami
- pwd
+ - echo; echo "Environment:"; env; echo
- rm -fv etc/create.ini
- 'echo "[vSphere]" > etc/create.ini'
- 'echo "host = ${VSPHERE_HOST}" >> etc/create.ini'
- 'echo "ram_mb = ${VM_RAM_MB}" >> etc/create.ini'
- 'echo "network = ${VM_NETWORK}" >> etc/create.ini'
- 'echo "mac_address = ${VM_MAC_ADDRESS}" >> etc/create.ini'
+ - 'echo "" >> etc/create.ini'
+ - 'echo "[Timeouts]" >> etc/create.ini'
+ - 'echo "max_wait_for_general = ${MAX_WAIT_GENERAL}" >> etc/create.ini'
+ - 'echo "max_wait_for_shutdown_vm = ${MAX_WAIT_SHUTDOWN}" >> etc/create.ini'
- 'echo "max_wait_for_finish_install = ${MAX_WAIT_FOR_FINISH_INSTALL}" >> etc/create.ini'
- 'echo "" >> etc/create.ini'
- 'echo "; vim: filetype=dosini" >> etc/create.ini'