refactor: small changes

main
Ricard Illa 2023-07-04 16:31:41 +02:00
parent d237e56a02
commit df3bd9b9e6
2 changed files with 6 additions and 7 deletions

View File

@ -5,15 +5,12 @@ export TF_VAR_minio_root_password := `pass minio.monotremata.xyz/rilla`
export LINODE_TOKEN := `pass linode.com/token` export LINODE_TOKEN := `pass linode.com/token`
export VULTR_API_KEY := `pass vultr.com/api_key` export VULTR_API_KEY := `pass vultr.com/api_key`
export HETZNER_DNS_API_TOKEN := `pass hetzner.com/tokens/terraform` export HETZNER_DNS_API_TOKEN := `pass hetzner.com/tokens/terraform`
export MINIO_PASSWORD := `pass minio.monotremata.xyz/terraform`
export MINIO_ENDPOINT := "minio.monotremata.xyz:443"
export MINIO_USER := `pass minio.monotremata.xyz/terraform/access_key`
export MINIO_PASSWORD := `pass minio.monotremata.xyz/terraform/secret_key`
init: init:
terraform init \ terraform init \
-backend-config="access_key=$(pass minio.monotremata.xyz/terraform/access_key)" \ -backend-config="access_key=terraform" \
-backend-config="secret_key=$(pass minio.monotremata.xyz/terraform/secret_key)" -backend-config="secret_key=$MINIO_PASSWORD"
plan *ARGS: plan *ARGS:
terraform plan {{ARGS}} terraform plan {{ARGS}}

View File

@ -48,7 +48,9 @@ provider "helm" {
} }
provider "minio" { provider "minio" {
minio_ssl = true minio_server = "minio.monotremata.xyz:443"
minio_user = "terraform"
minio_ssl = true
} }
provider "postgresql" { provider "postgresql" {