Compare commits
No commits in common. "6caea1e2b73004cdfee974f2fa5dc9e7b4e47bdf" and "b7f3545710e52dc58bd7c8eade6446d71f495b93" have entirely different histories.
6caea1e2b7
...
b7f3545710
4 changed files with 7 additions and 123 deletions
|
@ -23,10 +23,7 @@ variable "monitored_services" {
|
|||
label = string
|
||||
endpoints = list(string)
|
||||
http_method = optional(string, null)
|
||||
http_status_healthy_below = optional(number, 400)
|
||||
http_status_healthy_above = optional(number, 200)
|
||||
})))
|
||||
|
||||
}
|
||||
variable "page_title" {
|
||||
type = string
|
||||
|
|
|
@ -11,12 +11,6 @@ reveal_replica_name = true
|
|||
%{ if service.http_method != null ~}
|
||||
http_method = "${service.http_method}"
|
||||
%{ endif ~}
|
||||
%{ if service.http_status_healthy_above != null ~}
|
||||
poll_http_status_healthy_above = ${service.http_status_healthy_above}
|
||||
%{ endif ~}
|
||||
%{ if service.http_status_healthy_below != null ~}
|
||||
poll_http_status_healthy_below = ${service.http_status_healthy_below}
|
||||
%{ endif ~}
|
||||
replicas = [
|
||||
%{ for endpoint in service.endpoints ~}
|
||||
"${endpoint}",
|
||||
|
|
10
printers.tf
10
printers.tf
|
@ -14,22 +14,20 @@ resource "docker_volume" "ender5plus" {
|
|||
}
|
||||
|
||||
resource "docker_container" "ender5plus" {
|
||||
image = "${docker_image.octoprint.name}:latest"
|
||||
image = "${docker_image.octoprint.name}:latest"
|
||||
provider = docker.printi
|
||||
name = "ender5plus"
|
||||
name = "ender5plus"
|
||||
env = [
|
||||
"ENABLE_MJPG_STREAMER=false"
|
||||
]
|
||||
network_mode = "bridge"
|
||||
restart = "always"
|
||||
restart = "always"
|
||||
ports {
|
||||
internal = 80
|
||||
external = 3000
|
||||
}
|
||||
devices {
|
||||
host_path = "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A602AFFK-if00-port0"
|
||||
host_path = "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A602AFFK-if00-port0"
|
||||
container_path = "/dev/ttyACM0"
|
||||
permissions = "rwm"
|
||||
}
|
||||
volumes {
|
||||
container_path = "/octoprint"
|
||||
|
|
111
vigil.tf
111
vigil.tf
|
@ -48,49 +48,7 @@ module "vigil" {
|
|||
"icmp://california.ti",
|
||||
"tcp://california.ti:22",
|
||||
]
|
||||
},
|
||||
{
|
||||
id = "backup"
|
||||
label = "Backup Server"
|
||||
endpoints = [
|
||||
"icmp://backup.ti",
|
||||
"tcp://backup.ti:22",
|
||||
"http://backup.ti",
|
||||
]
|
||||
},
|
||||
]
|
||||
"Wifi" = [
|
||||
{
|
||||
id = "unifi-controller"
|
||||
label = "Unifi Controller"
|
||||
endpoints = [
|
||||
"icmp://unifi.ti",
|
||||
"tcp://unifi.ti:22",
|
||||
"http://unifi.ti",
|
||||
]
|
||||
},
|
||||
{
|
||||
id = "unifi-ap-mainspace"
|
||||
label = "Unifi AP Mainspace"
|
||||
endpoints = [
|
||||
"icmp://mainspace-ap.ti",
|
||||
]
|
||||
},
|
||||
{
|
||||
id = "unifi-ap-auxspace"
|
||||
label = "Unifi AP Auxspace"
|
||||
endpoints = [
|
||||
"icmp://auxspace-ap.ti",
|
||||
]
|
||||
},
|
||||
#{
|
||||
# id = "unifi-ap-hallway"
|
||||
# label = "Unifi AP Hallway"
|
||||
# endpoints = [
|
||||
# "icmp://hallway-ap.ti",
|
||||
# ]
|
||||
#},
|
||||
|
||||
}
|
||||
]
|
||||
"Printers" = [
|
||||
{
|
||||
|
@ -99,11 +57,6 @@ module "vigil" {
|
|||
endpoints = [
|
||||
"icmp://prin.ti",
|
||||
"tcp://prin.ti:22",
|
||||
]
|
||||
}, {
|
||||
id = "ender5plus"
|
||||
label = "Ender 5 Plus"
|
||||
endpoints = [
|
||||
"http://prin.ti:3000",
|
||||
]
|
||||
}, {
|
||||
|
@ -112,11 +65,11 @@ module "vigil" {
|
|||
endpoints = [
|
||||
"icmp://v400.prin.ti",
|
||||
"tcp://v400.prin.ti:22",
|
||||
"http://v400.prin.ti",
|
||||
"http://v400.prin.ti:80",
|
||||
]
|
||||
}
|
||||
],
|
||||
"Space Services" = [
|
||||
"Members Services" = [
|
||||
{
|
||||
id = "sso"
|
||||
label = "SSO (auth.techinc.nl)"
|
||||
|
@ -132,64 +85,6 @@ module "vigil" {
|
|||
]
|
||||
http_method = "GET"
|
||||
}, {
|
||||
id = "ansible"
|
||||
label = "TechInc Ansible Server"
|
||||
endpoints = [
|
||||
"icmp://ansible.ti",
|
||||
"tcp://ansible.ti:22",
|
||||
"http://ansible.ti"
|
||||
]
|
||||
http_method = "GET"
|
||||
},
|
||||
{
|
||||
id = "jukebox"
|
||||
label = "Indicio (Jukebox)"
|
||||
endpoints = [
|
||||
"icmp://indicio.ti",
|
||||
"tcp://indicio.ti:22",
|
||||
]
|
||||
http_method = "GET"
|
||||
},
|
||||
{
|
||||
id = "shardik"
|
||||
label = "Shardik (Bot)"
|
||||
endpoints = [
|
||||
#"icmp://shardik.ti", # Doesn't work?
|
||||
"tcp://shardik.ti:22",
|
||||
"http://shardik.ti"
|
||||
]
|
||||
http_method = "GET"
|
||||
},
|
||||
{
|
||||
id = "sip"
|
||||
label = "SIP"
|
||||
endpoints = [
|
||||
"icmp://sip.ti",
|
||||
"http://sip.ti"
|
||||
]
|
||||
http_method = "GET"
|
||||
},
|
||||
{
|
||||
id = "wheel"
|
||||
label = "TI Wheel"
|
||||
endpoints = [
|
||||
"icmp://wheel.ti",
|
||||
#"http://wheel.ti" # requires basic auth
|
||||
]
|
||||
http_method = "GET"
|
||||
},
|
||||
{
|
||||
id = "arrow"
|
||||
label = "TI Arrow"
|
||||
endpoints = [
|
||||
"icmp://arrow.ti",
|
||||
#"http://arrow.ti" # requires basic auth
|
||||
]
|
||||
http_method = "GET"
|
||||
}
|
||||
],
|
||||
"Members Services" = [
|
||||
{
|
||||
id = "s3"
|
||||
label = "S3 (s3.california.ti)"
|
||||
endpoints = [
|
||||
|
|
Loading…
Reference in a new issue