Sort parts of the nomad intra into folders
This should make finding things easier
This commit is contained in:
54
2-nomad-config/1-data.tf
Normal file
54
2-nomad-config/1-data.tf
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user