2022-10-27 21:28:34 +00:00
|
|
|
module "blocky" {
|
|
|
|
source = "./blocky"
|
|
|
|
|
|
|
|
base_hostname = var.base_hostname
|
|
|
|
# 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" {
|
|
|
|
source = "./metrics"
|
|
|
|
# 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" {
|
|
|
|
jobspec = file("${path.module}/nomad-client-stalker.nomad")
|
|
|
|
}
|
|
|
|
|
2022-10-27 21:28:34 +00:00
|
|
|
module "loki" {
|
2023-05-09 20:20:36 +00:00
|
|
|
source = "../services/service"
|
|
|
|
|
|
|
|
name = "loki"
|
|
|
|
image = "grafana/loki:2.2.1"
|
|
|
|
args = ["--config.file=$${NOMAD_TASK_DIR}/loki-config.yml"]
|
|
|
|
service_port = 3100
|
|
|
|
ingress = true
|
|
|
|
sticky_disk = true
|
|
|
|
# healthcheck = "/ready"
|
|
|
|
templates = [
|
|
|
|
{
|
|
|
|
data = file("${path.module}/loki-config.yml")
|
|
|
|
dest = "loki-config.yml"
|
|
|
|
mount = false
|
|
|
|
}
|
|
|
|
]
|
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" {
|
|
|
|
jobspec = file("${path.module}/lldap.nomad")
|
|
|
|
}
|