diff --git a/.github/workflows/infra-build.yml b/.github/workflows/infra-build.yml index 8925979..6e8ae99 100644 --- a/.github/workflows/infra-build.yml +++ b/.github/workflows/infra-build.yml @@ -28,7 +28,6 @@ jobs: proxmox_api_token_secret = "${{ secrets.PVE_API_TOKEN_SECRET }}" ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}" passphrase = "${{ secrets.SSH_PASSPHRASE }}" - PG_CONN_STR = "${{ secrets.PG_CONN_STR }}" EOF - name: Setup Opentofu @@ -46,6 +45,7 @@ jobs: - name: Opentofu Plan id: plan run: | + export PG_CONN_STR="${{ secrets.PG_CONN_STR }}" tofu plan -out=tfplan -detailed-exitcode - name: Opentofu Apply diff --git a/provider.tf b/provider.tf index 1d8bda4..7af8831 100644 --- a/provider.tf +++ b/provider.tf @@ -11,9 +11,7 @@ terraform { } } - backend "pg" { - conn_str = var.PG_CONN_STR - } + backend "pg" {} encryption { key_provider "pbkdf2" "mykey" { passphrase = var.passphrase @@ -66,11 +64,6 @@ variable "passphrase" { sensitive = true } -variable "PG_CONN_STR" { - type = string - sensitive = true -} - provider "proxmox" { pm_api_url = var.proxmox_api_url pm_user = "root@pam"