Compare commits
No commits in common. "5f01e175a85cfb6dc201224b1049d088f31065b3" and "793568095e9c072aacea2a40e1e793f832344ef0" have entirely different histories.
5f01e175a8
...
793568095e
2 changed files with 4 additions and 33 deletions
30
ubiquity.tf
30
ubiquity.tf
|
@ -53,36 +53,6 @@ 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" {
|
||||
name = "articulate/http-to-https"
|
||||
}
|
||||
|
|
7
vigil.tf
7
vigil.tf
|
@ -94,10 +94,11 @@ module "vigil" {
|
|||
]
|
||||
},
|
||||
{
|
||||
id = "unifi-ap-toilets"
|
||||
label = "Unifi AP Hallway/Toilets"
|
||||
id = "unifi-ap-toilet"
|
||||
label = "Unifi AP Toilet"
|
||||
endpoints = [
|
||||
"icmp://toilet-ap.ti",
|
||||
# "icmp://toilet-ap.ti", # Painfully, ICMP said it was up when it was infact entirely unplugged. No ICMP for you.
|
||||
"tcp://toilet-ap.ti:22",
|
||||
]
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue