Compare commits

...

2 commits

Author SHA1 Message Date
5f01e175a8 Add duplicate of unifi system for restoring a backup
Some checks failed
Trunk Check / Trunk Check Runner (push) Failing after 2s
2024-07-14 13:14:07 +02:00
3ce144ce24 add toilet AP 2024-07-14 13:14:04 +02:00
2 changed files with 33 additions and 4 deletions

View file

@ -53,6 +53,36 @@ resource "docker_service" "unifi_controller" {
} }
} }
resource "docker_service" "unifi_controller_restored_from_backup" {
name = "unifi_controller_restored_from_backup"
provider = docker.unifi
task_spec {
container_spec {
image = "${data.docker_registry_image.unifi_controller.name}@${data.docker_registry_image.unifi_controller.sha256_digest}"
env = {
TZ = "Europe/Amsterdam"
}
mounts {
target = "/unifi"
source = "/home/techinc/unifi_restored_from_backup"
type = "bind"
}
}
restart_policy {
condition = "any"
delay = "0s"
window = "0s"
}
}
endpoint_spec {
ports {
target_port = 443
published_port = 444
publish_mode = "ingress"
}
}
}
data "docker_registry_image" "http2https" { data "docker_registry_image" "http2https" {
name = "articulate/http-to-https" name = "articulate/http-to-https"
} }

View file

@ -94,11 +94,10 @@ module "vigil" {
] ]
}, },
{ {
id = "unifi-ap-toilet" id = "unifi-ap-toilets"
label = "Unifi AP Toilet" label = "Unifi AP Hallway/Toilets"
endpoints = [ endpoints = [
# "icmp://toilet-ap.ti", # Painfully, ICMP said it was up when it was infact entirely unplugged. No ICMP for you. "icmp://toilet-ap.ti",
"tcp://toilet-ap.ti:22",
] ]
}, },
] ]