Files
infra/2-nomad-config/1-data.tf
Adrian Cowan 92f60a7572 Sort parts of the nomad intra into folders
This should make finding things easier
2025-10-22 22:02:25 +11:00

55 lines
977 B
HCL

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
}