Disable TF tracelog;Fix commandline param order
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
ae13c383e4
commit
0ad2634953
@ -6,24 +6,21 @@ steps:
|
|||||||
- name: Terraform Init
|
- name: Terraform Init
|
||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
||||||
commands:
|
commands:
|
||||||
- set -x
|
|
||||||
- chdir terraform
|
|
||||||
- |
|
- |
|
||||||
terraform init \
|
terraform -chdir=terraform init \
|
||||||
-input=false \
|
-input=false \
|
||||||
-backend-config="conn_str=$${PG_CONNECTIONSTRING}"
|
-backend-config="conn_str=$${PG_CONNECTIONSTRING}"
|
||||||
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
|
||||||
TF_LOG: TRACE
|
# TF_LOG: TRACE
|
||||||
- name: Terraform Plan
|
- name: Terraform Plan
|
||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
terraform plan \
|
terraform -chdir=terraform plan \
|
||||||
-var='vsphere_password=$${VSPHERE_PASSWORD}' -var='repo_username=$${REPO_USERNAME}' -var='repo_password=$${REPO_PASSWORD}' \
|
-var='vsphere_password=$${VSPHERE_PASSWORD}' -var='repo_username=$${REPO_USERNAME}' -var='repo_password=$${REPO_PASSWORD}' \
|
||||||
-var-file='vsphere.tfvars' \
|
-var-file='vsphere.tfvars' \
|
||||||
-chdir=terraform \
|
|
||||||
-input=false \
|
-input=false \
|
||||||
-out=terraform.plan
|
-out=terraform.plan
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user