Fix variable declaration/assignment
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2021-03-31 09:43:22 +02:00
parent 04e65c1fe3
commit 9afbab22f8
2 changed files with 5 additions and 5 deletions

View File

@ -11,6 +11,7 @@ steps:
-upgrade \
-input=false \
-backend-config="conn_str=$${PG_CONNECTIONSTRING}"
- cat terraform/.terraform.lock.hcl
environment:
PG_CONNECTIONSTRING: postgres://terraform:terraform@tfstate.default.svc.cluster.local/terraform_backend?sslmode=disable
TF_AUTOMATION: yes
@ -20,8 +21,8 @@ steps:
commands:
- |
terraform -chdir=terraform plan \
-var="vsphere_password=$${VSPHERE_PASSWORD}" -var="repo_username=$${REPO_USERNAME}" -var="repo_password=$${REPO_PASSWORD}" -var="adds_password=$${ADDS_PASSWORD}"\
-var-file='vsphere.tfvars' \
-var="hv_password=$${VSPHERE_PASSWORD}" -var="repo_username=$${REPO_USERNAME}" -var="repo_password=$${REPO_PASSWORD}" -var="adds_password=$${ADDS_PASSWORD}"\
-var-file='vsphere.tfvars' -var-file='vm.tfvars' \
-input=false \
-out=terraform.plan
environment:

View File

@ -1,9 +1,8 @@
hv_server = "bv11-vc01.bessems.lan"
hv_fqdn = "bv11-vc01.bessems.lan"
hv_username = "administrator@vsphere.local"
hv_datacenter = "DeSchakel"
hv_host = "bv11-esx.bessems.eu"
hv_hostip = "192.168.11.200"
hv_vmdatastore = "Datastore02.SSD"
hv_cldatastore = "Datastore01.NAS"
hv_datastore = "Datastore02.SSD"
hv_vmfolder = "/Terraform"
hv_network = "Isolated"