Compare commits

..

No commits in common. "37407f72c2528979fafcc6993be5a183ee7283d2" and "1e819ff81da03727ad9c6ca3f8540340f796ab39" have entirely different histories.

5 changed files with 26 additions and 46 deletions

@ -1 +1 @@
Subproject commit 5ceb5aa6820075bb78ab22477bf85b2ffa23010b
Subproject commit 0c1b34c382eda5726554b64ee1bd50a92dc2c564

View file

@ -1,17 +1,32 @@
module "s1" {
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"] }
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
source = "./lib/grey.ooo/docker/service"
stack_name = "printers"
service_name = "s1proxy"
image = "alpine/socat:latest"
command = ["socat", "tcp-listen:80,fork,reuseaddr", "tcp-connect:s1.prin.ti:80"]
traefik = merge(var.treafik_defaults, {
domain = "s1.${var.base_domain}"
port = 80
basic-auth-users = ["techinc"]
})
converge_enable = false
placement_constraints = ["node.hostname == california"]
}
module "label_printer" {
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"] }
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
source = "./lib/grey.ooo/docker/service"
stack_name = "printers"
service_name = "labelprinter"
image = "alpine/socat:latest"
command = ["socat", "tcp-listen:80,fork,reuseaddr", "tcp-connect:labelprinter.ti:80"]
traefik = merge(var.treafik_defaults, {
domain = "labelprinter.${var.base_domain}"
port = 80
basic-auth-users = ["techinc"]
})
converge_enable = false
placement_constraints = ["node.hostname == california"]
}

View file

@ -1,17 +0,0 @@
module "unifi_proxy" {
source = "./lib/grey.ooo/products/socket-proxy"
stack_name = "proxy"
service_name = "unifi"
target = { host = "unifi.ti", port = 8080 }
traefik = {
domain = "unifi.${var.base_domain}",
basic-auth-users = ["techinc"],
headers = { Host = "unifi.ti" }
}
placement_constraints = ["node.hostname == california"]
}
output "unifi_proxy" {
value = {
endpoint = module.unifi_proxy.endpoint
}
}

View file

@ -1,18 +0,0 @@
module "test" {
source = "./lib/grey.ooo/docker/service"
stack_name = "test"
service_name = "hello"
image = "nginxdemos/hello:plain-text"
parallelism = 5
traefik = {
domain = "test.${var.base_domain}"
port = 80
ssl = true
non-ssl = true
#basic-auth-users = ["test"]
}
}
output "test" {
value = module.test.endpoint
}