Fix variable declaration/assignment
Some checks failed
continuous-integration/drone/push Build is failing

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 \ -upgrade \
-input=false \ -input=false \
-backend-config="conn_str=$${PG_CONNECTIONSTRING}" -backend-config="conn_str=$${PG_CONNECTIONSTRING}"
- cat terraform/.terraform.lock.hcl
environment: environment:
PG_CONNECTIONSTRING: postgres://terraform:terraform@tfstate.default.svc.cluster.local/terraform_backend?sslmode=disable PG_CONNECTIONSTRING: postgres://terraform:terraform@tfstate.default.svc.cluster.local/terraform_backend?sslmode=disable
TF_AUTOMATION: yes TF_AUTOMATION: yes
@ -20,8 +21,8 @@ steps:
commands: commands:
- | - |
terraform -chdir=terraform plan \ 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="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='vsphere.tfvars' -var-file='vm.tfvars' \
-input=false \ -input=false \
-out=terraform.plan -out=terraform.plan
environment: 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_username = "administrator@vsphere.local"
hv_datacenter = "DeSchakel" hv_datacenter = "DeSchakel"
hv_host = "bv11-esx.bessems.eu" hv_host = "bv11-esx.bessems.eu"
hv_hostip = "192.168.11.200" hv_hostip = "192.168.11.200"
hv_vmdatastore = "Datastore02.SSD" hv_datastore = "Datastore02.SSD"
hv_cldatastore = "Datastore01.NAS"
hv_vmfolder = "/Terraform" hv_vmfolder = "/Terraform"
hv_network = "Isolated" hv_network = "Isolated"