2022-10-27 21:28:34 +00:00
|
|
|
module "blocky" {
|
|
|
|
source = "./blocky"
|
|
|
|
|
|
|
|
base_hostname = var.base_hostname
|
2023-08-24 19:36:47 +00:00
|
|
|
use_wesher = var.use_wesher
|
|
|
|
|
2022-10-27 21:28:34 +00:00
|
|
|
# Not in this module
|
|
|
|
# depends_on = [module.databases]
|
|
|
|
}
|
|
|
|
|
|
|
|
module "traefik" {
|
|
|
|
source = "./traefik"
|
|
|
|
|
|
|
|
base_hostname = var.base_hostname
|
|
|
|
}
|
|
|
|
|
2023-03-24 23:32:37 +00:00
|
|
|
module "metrics" {
|
2023-08-24 19:36:47 +00:00
|
|
|
source = "./metrics"
|
|
|
|
use_wesher = var.use_wesher
|
|
|
|
|
2023-03-24 23:32:37 +00:00
|
|
|
# Not in this module
|
|
|
|
# depends_on = [module.databases]
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|
|
|
|
|
2023-03-25 05:22:11 +00:00
|
|
|
resource "nomad_job" "nomad-client-stalker" {
|
2023-05-12 17:10:31 +00:00
|
|
|
# Stalker used to allow using Nomad service registry to identify nomad client hosts
|
2023-03-25 05:22:11 +00:00
|
|
|
jobspec = file("${path.module}/nomad-client-stalker.nomad")
|
|
|
|
}
|
|
|
|
|
2022-10-27 21:28:34 +00:00
|
|
|
resource "nomad_job" "syslog-ng" {
|
|
|
|
jobspec = file("${path.module}/syslogng.nomad")
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "nomad_job" "ddclient" {
|
|
|
|
jobspec = file("${path.module}/ddclient.nomad")
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "nomad_job" "lldap" {
|
2023-08-24 19:36:47 +00:00
|
|
|
jobspec = templatefile("${path.module}/lldap.nomad", {
|
|
|
|
use_wesher = var.use_wesher,
|
|
|
|
})
|
2022-10-27 21:28:34 +00:00
|
|
|
}
|