From bd815e96c61703a8c31fe58a15f16b74f2a03429 Mon Sep 17 00:00:00 2001 From: Adrian Cowan Date: Wed, 22 Oct 2025 22:04:37 +1100 Subject: [PATCH] Complete migration now that the changes are applied. --- 2-nomad-config/1-data.tf | 35 ----------------------------------- 2-nomad-config/2-ingress.tf | 23 ----------------------- 2-nomad-config/readme.md | 2 +- 3 files changed, 1 insertion(+), 59 deletions(-) diff --git a/2-nomad-config/1-data.tf b/2-nomad-config/1-data.tf index 8eae448..938a3ce 100644 --- a/2-nomad-config/1-data.tf +++ b/2-nomad-config/1-data.tf @@ -17,38 +17,3 @@ provider "postgresql" { sslmode = "disable" connect_timeout = 15 } - -# csi-smb.tf - -moved { - from = nomad_job.csi-smb - to = module.data.nomad_job.csi-smb -} - -# postgres.tf - -moved { - from = nomad_job.postgres - to = module.data.nomad_job.postgres -} - -moved { - from = nomad_job.pgadmin - to = module.data.nomad_job.pgadmin -} - -moved { - from = nomad_job.pgbackup - to = module.data.nomad_job.pgbackup -} - -moved { - from = nomad_variable.postgres - to = module.data.nomad_variable.postgres -} - -moved { - from = nomad_csi_volume_registration.unraid_database_dump - to = module.data.nomad_csi_volume_registration.unraid_database_dump -} - diff --git a/2-nomad-config/2-ingress.tf b/2-nomad-config/2-ingress.tf index a7421d6..63f2ea8 100644 --- a/2-nomad-config/2-ingress.tf +++ b/2-nomad-config/2-ingress.tf @@ -29,26 +29,3 @@ moved { from = nomad_csi_volume_registration.unraid_appdata_traefik to = module.ingress.nomad_csi_volume_registration.unraid_appdata_traefik } - -# authelia.tf - -moved { - from = nomad_job.authelia - to = module.ingress.nomad_job.authelia -} - -moved { - from = postgresql_role.authelia - to = module.ingress.postgresql_role.authelia -} - -moved { - from = postgresql_database.authelia - to = module.ingress.postgresql_database.authelia -} - -moved { - from = nomad_variable.authelia - to = module.ingress.nomad_variable.authelia -} - diff --git a/2-nomad-config/readme.md b/2-nomad-config/readme.md index 5600adc..6803ca6 100644 --- a/2-nomad-config/readme.md +++ b/2-nomad-config/readme.md @@ -19,7 +19,7 @@ Edit the secrets using `sops secrets/secrets.enc.json` # Bootstrapping (starting without PostgreSQL running) -terraform apply -target=nomad_job.postgres +terraform apply -target=module.data ## Restoring PostgreSQL DBs