2025-01-16 18:38:54 +00:00
|
|
|
module "s1" {
|
2025-01-17 10:51:01 +00:00
|
|
|
source = "./lib/grey.ooo/products/socket-proxy"
|
|
|
|
stack_name = "printers"
|
|
|
|
service_name = "s1proxy"
|
|
|
|
target = { host = "s1.prin.ti", port = 80 }
|
|
|
|
traefik = { domain = "s1.${var.base_domain}", basic-auth-users = ["techinc"] }
|
2025-01-16 18:38:54 +00:00
|
|
|
placement_constraints = ["node.hostname == california"]
|
|
|
|
}
|
|
|
|
module "label_printer" {
|
2025-01-17 10:51:01 +00:00
|
|
|
source = "./lib/grey.ooo/products/socket-proxy"
|
|
|
|
stack_name = "printers"
|
|
|
|
service_name = "labelprinter"
|
|
|
|
target = { host = "labelprinter.ti", port = 80 }
|
|
|
|
traefik = { domain = "labelprinter.${var.base_domain}", basic-auth-users = ["techinc"] }
|
2025-01-16 18:38:54 +00:00
|
|
|
placement_constraints = ["node.hostname == california"]
|
|
|
|
}
|
|
|
|
|
|
|
|
output "printers" {
|
|
|
|
value = {
|
|
|
|
s1 = module.s1.endpoint
|
|
|
|
label_printer = module.label_printer.endpoint
|
|
|
|
}
|
|
|
|
}
|