aboutsummaryrefslogtreecommitdiff
path: root/terraform/concourse/main.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2022-12-23 14:25:38 +0100
commitfdf38928edd187949c8f4fc5a60b9780500d3e2e (patch)
tree4c8f90942e63ae66d1ca66c0af0096bc54a71abb /terraform/concourse/main.tf
parent03c07f8d89adf7282f0da25e2342b9749ca1e5cc (diff)
downloadinfra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.gz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.bz2
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.tar.xz
infra-fdf38928edd187949c8f4fc5a60b9780500d3e2e.zip
concourse
Diffstat (limited to 'terraform/concourse/main.tf')
-rw-r--r--terraform/concourse/main.tf27
1 files changed, 19 insertions, 8 deletions
diff --git a/terraform/concourse/main.tf b/terraform/concourse/main.tf
index 49bad5e..49702b9 100644
--- a/terraform/concourse/main.tf
+++ b/terraform/concourse/main.tf
@@ -12,10 +12,6 @@ terraform {
}
required_providers {
- ansiblevault = {
- source = "MeilleursAgents/ansiblevault"
- version = "2.2.0"
- }
docker = {
source = "kreuzwerker/docker"
version = "2.23.1"
@@ -28,6 +24,10 @@ terraform {
source = "cyrilgdn/postgresql"
version = "1.18.0"
}
+ sops = {
+ source = "lokkersp/sops"
+ version = "0.6.10"
+ }
}
}
@@ -35,14 +35,25 @@ provider "docker" {
host = "ssh://conflatorio.vpn.trygvis.io"
}
-provider "ansiblevault" {
- root_folder = ".."
+provider "postgresql" {
+ host = "knot.vpn.trygvis.io"
+ database = "postgres"
+ username = "terraform"
+ password = data.sops_file_entry.knot_pdb_terraform_password.data
+ sslmode = "require"
}
-data "docker_network" "traefik" {
- name = "traefik"
+provider "sops" {
+ age = {
+ key = "age13wv3rp0varlg4nvt3tca48fq8u9q3mc6yfdekjeapcmc7kaq4dysrzcmv3"
+ }
}
locals {
domain_name = "concourse.vpn.trygvis.io"
}
+
+data "sops_file_entry" "knot_pdb_terraform_password" {
+ source_file = "../../sops.yml"
+ data_key = "knot_pdb_terraform_password"
+}