homelab-nomad/core/main.tf

28 lines
580 B
Terraform
Raw Permalink Normal View History

module "blocky" {
source = "./blocky"
2023-08-24 22:03:36 +00:00
use_wesher = var.use_wesher
# Not in this module
# depends_on = [module.databases]
}
module "traefik" {
source = "./traefik"
}
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")
}
resource "nomad_job" "syslog-ng" {
jobspec = file("${path.module}/syslogng.nomad")
depends_on = [module.loki]
}
resource "nomad_job" "ddclient" {
jobspec = file("${path.module}/ddclient.nomad")
}