From: Frank Brehm Date: Wed, 6 Feb 2019 17:02:00 +0000 (+0100) Subject: Fixing .gitlab-ci.yml X-Git-Tag: 1.1.0^2~23 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=9c4d98f7b56a33a83dd3b24269f89c228b66f802;p=pixelpark%2Fcreate-vmware-tpl.git Fixing .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cde94b0..35f508a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,30 +81,30 @@ Deploy OEL7 template image: - whoami - pwd - rm -fv etc/create.ini - - echo '[vSphere]' > etc/create.ini - - echo "host = ${VSPHERE_HOST}" >> etc/create.ini - - echo "port = ${VSPHERE_API_PORT}" >> etc/create.ini - - echo "user = ${VSPHERE_API_USER}" >> etc/create.ini - - echo "password = ${VSPHERE_API_PASSWD}" >> etc/create.ini - - echo "dc = ${VSPHERE_DC}" >> etc/create.ini - - echo "cluster = ${VSPHERE_CLUSTER}" >> etc/create.ini - - echo "folder = ${VSPHERE_VM_FOLDER}" >> etc/create.ini - - echo "max_nr_templates_stay = ${AX_NR_TEMPLATES_STAY}" >> etc/create.ini - - echo "" >> etc/create.ini - - echo '[Template]' >> etc/create.ini - - echo "vm = ${TEMPLATE_VM_NAME}" >> etc/create.ini - - echo "name = ${TEMPLATE_NAME}" >> etc/create.ini - - echo "vmware_cfg_version = ${VMWARE_CONFIG_VERSION}" >> etc/create.ini - - echo "os_version = ${VM_OS_VERSION}" >> etc/create.ini - - echo "data_size_gb = ${VM_DISK_SIZE_GB}" >> etc/create.ini - - echo "num_cpus = ${VM_NUM_CPUS}" >> 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 "max_wait_for_finish_install = ${MAX_WAIT_FOR_FINISH_INSTALL}" >> etc/create.ini - - echo "" >> etc/create.ini - - echo "; vim: filetype=dosini" >> etc/create.ini - - echo "Generated etc/create.ini:"; cat etc/create.ini; echo "<-- EOF" + - 'echo "[vSphere]" > etc/create.ini' + - 'echo "host = ${VSPHERE_HOST}" >> etc/create.ini' + - 'echo "port = ${VSPHERE_API_PORT}" >> etc/create.ini' + - 'echo "user = ${VSPHERE_API_USER}" >> etc/create.ini' + - 'echo "password = ${VSPHERE_API_PASSWD}" >> etc/create.ini' + - 'echo "dc = ${VSPHERE_DC}" >> etc/create.ini' + - 'echo "cluster = ${VSPHERE_CLUSTER}" >> etc/create.ini' + - 'echo "folder = ${VSPHERE_VM_FOLDER}" >> etc/create.ini' + - 'echo "max_nr_templates_stay = ${AX_NR_TEMPLATES_STAY}" >> etc/create.ini' + - 'echo "" >> etc/create.ini' + - 'echo "[Template]" >> etc/create.ini' + - 'echo "vm = ${TEMPLATE_VM_NAME}" >> etc/create.ini' + - 'echo "name = ${TEMPLATE_NAME}" >> etc/create.ini' + - 'echo "vmware_cfg_version = ${VMWARE_CONFIG_VERSION}" >> etc/create.ini' + - 'echo "os_version = ${VM_OS_VERSION}" >> etc/create.ini' + - 'echo "data_size_gb = ${VM_DISK_SIZE_GB}" >> etc/create.ini' + - 'echo "num_cpus = ${VM_NUM_CPUS}" >> 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 "max_wait_for_finish_install = ${MAX_WAIT_FOR_FINISH_INSTALL}" >> etc/create.ini' + - 'echo "" >> etc/create.ini' + - 'echo "; vim: filetype=dosini" >> etc/create.ini' + - 'echo "Generated etc/create.ini:"; cat etc/create.ini; echo "<-- EOF"' environment: name: production except: