VSPHERE_API_PASSWD_PROD: 'secret'
VSPHERE_DC: ''
VSPHERE_CLUSTER: ''
+ VSPHERE_STORAGE_CLUSTER: ''
VSPHERE_VM_FOLDER: 'templates'
MAX_NR_TEMPLATES_STAY: 4
VMWARE_CONFIG_VERSION: 'vmx-15'
VSPHERE_CLUSTER="test-vmcc-l105-01";
fi
fi'
+ - ' if [ -z "${VSPHERE_STORAGE_CLUSTER}" ] ; then
+ if [ "$CI_COMMIT_REF_NAME" = "master" -o "$CI_COMMIT_REF_NAME" = "production" ] ; then
+ VSPHERE_STORAGE_CLUSTER="ds-cluster-hdd-vmcc-l105-01";
+ else
+ VSPHERE_STORAGE_CLUSTER="Daten-Cluster-Gold_01";
+ fi
+ fi'
- 'CONFIG_FILE=etc/create-${OS_ID}-${SYSTEM_STATUS}.ini'
- 'echo "Configuration file: \"${CONFIG_FILE}\""'
- 'touch "${CONFIG_FILE}"'
- 'echo "dc = ${VSPHERE_DC}" >> "${CONFIG_FILE}"'
- 'echo "cluster = ${VSPHERE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "folder = ${VSPHERE_VM_FOLDER}" >> "${CONFIG_FILE}"'
+ - 'echo "storage_cluster = ${VSPHERE_STORAGE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "max_nr_templates_stay = ${MAX_NR_TEMPLATES_STAY}" >> "${CONFIG_FILE}"'
- 'echo "" >> "${CONFIG_FILE}"'
- 'echo "[Template]" >> "${CONFIG_FILE}"'
- 'echo "dc = ${VSPHERE_DC}" >> "${CONFIG_FILE}"'
- 'echo "cluster = ${VSPHERE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "folder = ${VSPHERE_VM_FOLDER}" >> "${CONFIG_FILE}"'
+ - 'echo "storage_cluster = ${VSPHERE_STORAGE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "max_nr_templates_stay = ${MAX_NR_TEMPLATES_STAY}" >> "${CONFIG_FILE}"'
- 'echo "" >> "${CONFIG_FILE}"'
- 'echo "[Template]" >> "${CONFIG_FILE}"'
- 'echo "dc = ${VSPHERE_DC}" >> "${CONFIG_FILE}"'
- 'echo "cluster = ${VSPHERE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "folder = ${VSPHERE_VM_FOLDER}" >> "${CONFIG_FILE}"'
+ - 'echo "storage_cluster = ${VSPHERE_STORAGE_CLUSTER}" >> "${CONFIG_FILE}"'
- 'echo "max_nr_templates_stay = ${MAX_NR_TEMPLATES_STAY}" >> "${CONFIG_FILE}"'
- 'echo "" >> "${CONFIG_FILE}"'
- 'echo "[Template]" >> "${CONFIG_FILE}"'