Sort parts of the nomad intra into folders

This should make finding things easier
This commit is contained in:
2025-10-22 22:02:25 +11:00
parent 8869bd1cb2
commit 92f60a7572
15 changed files with 176 additions and 25 deletions

54
2-nomad-config/1-data.tf Normal file
View File

@@ -0,0 +1,54 @@
module "data" {
source = "./1-data"
}
data "nomad_plugin" "smb" {
plugin_id = "smb"
wait_for_healthy = true
}
provider "postgresql" {
host = "jaglan-beta-m21.lan"
port = 5432
database = "postgres"
username = "postgres"
password = data.sops_file.secrets.data["postgres.postgres"]
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
}