Compare commits
No commits in common. "37407f72c2528979fafcc6993be5a183ee7283d2" and "1e819ff81da03727ad9c6ca3f8540340f796ab39" have entirely different histories.
37407f72c2
...
1e819ff81d
5 changed files with 26 additions and 46 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 5ceb5aa6820075bb78ab22477bf85b2ffa23010b
|
Subproject commit 0c1b34c382eda5726554b64ee1bd50a92dc2c564
|
|
@ -1,17 +1,32 @@
|
||||||
module "s1" {
|
module "s1" {
|
||||||
source = "./lib/grey.ooo/products/socket-proxy"
|
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
|
||||||
|
source = "./lib/grey.ooo/docker/service"
|
||||||
stack_name = "printers"
|
stack_name = "printers"
|
||||||
service_name = "s1proxy"
|
service_name = "s1proxy"
|
||||||
target = { host = "s1.prin.ti", port = 80 }
|
image = "alpine/socat:latest"
|
||||||
traefik = { domain = "s1.${var.base_domain}", basic-auth-users = ["techinc"] }
|
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"]
|
placement_constraints = ["node.hostname == california"]
|
||||||
}
|
}
|
||||||
|
|
||||||
module "label_printer" {
|
module "label_printer" {
|
||||||
source = "./lib/grey.ooo/products/socket-proxy"
|
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
|
||||||
|
source = "./lib/grey.ooo/docker/service"
|
||||||
stack_name = "printers"
|
stack_name = "printers"
|
||||||
service_name = "labelprinter"
|
service_name = "labelprinter"
|
||||||
target = { host = "labelprinter.ti", port = 80 }
|
image = "alpine/socat:latest"
|
||||||
traefik = { domain = "labelprinter.${var.base_domain}", basic-auth-users = ["techinc"] }
|
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"]
|
placement_constraints = ["node.hostname == california"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in a new issue