This repository has been archived on 2024-11-12. You can view files and clone it, but cannot push or open issues or pull requests.
iac/vigil.tf

99 lines
2.5 KiB
Terraform
Raw Normal View History

2024-06-28 15:53:53 +00:00
module "vigil_nginx_config" {
source = "git::https://code.techinc.nl/grey/terraform-nginx.git//nginx-site-available"
hostname = "vigil.california.ti"
//certificate = acme_certificate.ooo_grey["s3"]
service_name = "vigil"
upstream_host = "${module.vigil.docker_service_name}:8080"
config_prefix = "nginx"
allow_non_ssl = true
allow_ssl = false
}
2024-06-28 13:49:44 +00:00
module "vigil" {
source = "./modules/vigil"
2024-06-28 15:53:53 +00:00
monitored_services = {
"Servers" = [
{
id = "longhorn"
label = "Longhorn (longhorn.ti)"
endpoints = [
"icmp://longhorn.ti",
"tcp://longhorn.ti:22",
#"https://longhorn.ti:8006", # cannot be used as the SSL cert is self-signed/invalid
]
},
{
id = "bargur"
label = "Bargur (bargur.ti)"
endpoints = [
"icmp://bargur.ti",
"tcp://bargur.ti:22",
#"https://bargur.ti:8006", # cannot be used as the SSL cert is self-signed/invalid
]
},
{
id = "hanwoo"
label = "Hanwoo (hanwoo.ti)"
endpoints = [
"icmp://hanwoo.ti",
"tcp://hanwoo.ti:22",
#"https://hanwoo.ti:8006" # cannot be used as the SSL cert is self-signed/invalid
]
},
{
id = "california"
label = "California (california.ti)"
endpoints = [
"icmp://california.ti",
"tcp://california.ti:22",
]
}
]
"Printers" = [
2024-06-28 13:49:44 +00:00
{
id = "prin.ti"
label = "Prin.ti (Print Controller)"
endpoints = [
"icmp://prin.ti",
"tcp://prin.ti:22",
"http://prin.ti:3000",
]
}, {
id = "v400"
label = "FLSun V400"
endpoints = [
"icmp://v400.prin.ti",
"tcp://v400.prin.ti:22",
"http://v400.prin.ti:80",
2024-06-28 15:53:53 +00:00
]
}
],
"Members Services" = [
{
id = "sso"
label = "SSO (auth.techinc.nl)"
endpoints = [
"icmp://auth.techinc.nl",
"https://auth.techinc.nl"
]
}, {
id = "forgejo"
label = "TechInc Git Server"
endpoints = [
"https://code.techinc.nl/api/v1/version"
]
}, {
id = "s3"
label = "S3 (s3.california.ti)"
endpoints = [
"icmp://s3.california.ti",
"http://s3.california.ti/minio/health/live",
"http://s3.california.ti/ui"
2024-06-28 13:49:44 +00:00
]
}
]
}
2024-06-28 15:53:53 +00:00
docker_networks = [
docker_network.loadbalancer
]
2024-06-28 13:49:44 +00:00
}