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
|
|
|
|
}
|
|
|
|
|
|
|
|
module "nomad_login" {
|
2022-11-03 22:10:09 +00:00
|
|
|
source = "IamTheFij/levant/nomad"
|
2022-11-02 21:20:09 +00:00
|
|
|
version = "0.1.0"
|
2022-10-27 21:28:34 +00:00
|
|
|
|
|
|
|
template_path = "service.nomad"
|
|
|
|
variables = {
|
|
|
|
name = "nomad-login"
|
|
|
|
image = "iamthefij/nomad-vault-login"
|
|
|
|
service_port = 5000
|
|
|
|
ingress = true
|
|
|
|
ingress_rule = "Host(`nomad.thefij.rocks`) && PathPrefix(`/login`)"
|
|
|
|
env = jsonencode({
|
|
|
|
VAULT_ADDR = "http://$${attr.unique.network.ip-address}:8200",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-21 00:24:00 +00:00
|
|
|
# module "metrics" {
|
|
|
|
# source = "./metrics"
|
|
|
|
# # Not in this module
|
|
|
|
# # depends_on = [module.databases]
|
|
|
|
# }
|
2022-10-27 21:28:34 +00:00
|
|
|
|
|
|
|
module "loki" {
|
2022-11-03 22:10:09 +00:00
|
|
|
source = "IamTheFij/levant/nomad"
|
2022-11-02 21:20:09 +00:00
|
|
|
version = "0.1.0"
|
2022-10-27 21:28:34 +00:00
|
|
|
|
|
|
|
template_path = "service.nomad"
|
|
|
|
variables = {
|
|
|
|
name = "loki"
|
|
|
|
image = "grafana/loki:2.2.1"
|
|
|
|
service_port = 3100
|
|
|
|
ingress = true
|
|
|
|
sticky_disk = true
|
|
|
|
healthcheck = "/ready"
|
|
|
|
templates = jsonencode([
|
|
|
|
{
|
|
|
|
data = file("${path.module}/loki-config.yml")
|
|
|
|
dest = "/etc/loki/local-config.yaml"
|
|
|
|
}
|
|
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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")
|
|
|
|
}
|