Disable TF tracelog;Fix commandline param order
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2021-02-02 13:20:30 +01:00
parent ae13c383e4
commit 0ad2634953

View File

@ -6,24 +6,21 @@ steps:
- name: Terraform Init
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
- set -x
- chdir terraform
- |
terraform init \
terraform -chdir=terraform init \
-input=false \
-backend-config="conn_str=$${PG_CONNECTIONSTRING}"
environment:
PG_CONNECTIONSTRING: postgres://terraform:terraform@tfstate.default.svc.cluster.local/terraform_backend?sslmode=disable
TF_AUTOMATION: yes
TF_LOG: TRACE
# TF_LOG: TRACE
- name: Terraform Plan
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
- |
terraform plan \
terraform -chdir=terraform plan \
-var='vsphere_password=$${VSPHERE_PASSWORD}' -var='repo_username=$${REPO_USERNAME}' -var='repo_password=$${REPO_PASSWORD}' \
-var-file='vsphere.tfvars' \
-chdir=terraform \
-input=false \
-out=terraform.plan
environment: