Complete migration now that the changes are applied.

This commit is contained in:
2025-10-22 22:04:37 +11:00
parent 92f60a7572
commit bd815e96c6
3 changed files with 1 additions and 59 deletions

View File

@@ -17,38 +17,3 @@ provider "postgresql" {
sslmode = "disable" sslmode = "disable"
connect_timeout = 15 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
}

View File

@@ -29,26 +29,3 @@ moved {
from = nomad_csi_volume_registration.unraid_appdata_traefik from = nomad_csi_volume_registration.unraid_appdata_traefik
to = module.ingress.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
}

View File

@@ -19,7 +19,7 @@ Edit the secrets using `sops secrets/secrets.enc.json`
# Bootstrapping (starting without PostgreSQL running) # Bootstrapping (starting without PostgreSQL running)
terraform apply -target=nomad_job.postgres terraform apply -target=module.data
## Restoring PostgreSQL DBs ## Restoring PostgreSQL DBs