LC_ALL: $JOB_LANGUAGE
SYSTEM_STATUS: 'unknown'
CONFIG_FILE: 'etc/create.ini'
+ ROOT_PASSWORD: 'blablub'
.template_job: &job_definition
before_script:
else
SYSTEM_STATUS="development";
fi'
- - 'echo; echo "Ref name: ${CI_COMMIT_REF_NAME}"; echo "System status: ${SYSTEM_STATUS}"'
+ - 'echo "Ref name: ${CI_COMMIT_REF_NAME}"; echo "System status: ${SYSTEM_STATUS}"'
- ' if [ -z "${VSPHERE_HOST}" ] ; then
if [ "$CI_COMMIT_REF_NAME" = "master" -o "$CI_COMMIT_REF_NAME" = "production" ] ; then
VSPHERE_HOST="vcs01.ppbrln.internal";
VSPHERE_HOST="test-vcsa01.pixelpark.net";
fi
fi'
- - 'echo; echo "VCenter Host: \"${VSPHERE_HOST}\""'
+ - 'echo "VCenter Host: \"${VSPHERE_HOST}\""'
- 'CONFIG_FILE=etc/create-${OS_ID}-${SYSTEM_STATUS}.ini'
- - 'echo; echo "Configuration file: \"${CONFIG_FILE}\""'
+ - 'echo "Configuration file: \"${CONFIG_FILE}\""'
- 'touch "${CONFIG_FILE}"'
- - echo
+ - 'ls -l "${CONFIG_FILE}" || true'
+ - 'echo "Finished common part"'
tags:
- deploy
after_script:
- /^hf.*$/
- tags
+Create Centos8 template:
+ <<: *job_definition
+ stage: deploy
+ variables:
+ OS_ID: centos8
+ script:
+ - hostname -f
+ - whoami
+ - pwd
+ - which python3
+ - 'echo "Environment:"; env | sort -i -f; echo'
+ - 'echo "Ref name: ${CI_COMMIT_REF_NAME}"; echo "System status: ${SYSTEM_STATUS}"'
+ - 'echo "VCenter Host: \"${VSPHERE_HOST}\""'
+ - 'echo "Configuration file: \"${CONFIG_FILE}\""'
+ - 'ls -l "${CONFIG_FILE}" || true'
+ environment:
+ name: ${SYSTEM_STATUS}
+ except:
+ - /^dev-.*$/
+ - /^dev\/.*$/
+ - /^hf.*$/
+ - tags
+
#Deploy OEL7 template image:
# <<: *job_definition
# stage: deploy