aboutsummaryrefslogtreecommitdiff
path: root/terraform/lhn2pi-zigbee2mqtt
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/lhn2pi-zigbee2mqtt')
-rw-r--r--terraform/lhn2pi-zigbee2mqtt/README.md15
-rw-r--r--terraform/lhn2pi-zigbee2mqtt/main.tf15
2 files changed, 2 insertions, 28 deletions
diff --git a/terraform/lhn2pi-zigbee2mqtt/README.md b/terraform/lhn2pi-zigbee2mqtt/README.md
deleted file mode 100644
index 2e6209c..0000000
--- a/terraform/lhn2pi-zigbee2mqtt/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-This is not a docker container as the rest, but using podman as lhn2pi runs
-
-https://www.zigbee2mqtt.io/guide/installation/02_docker.html#rootless-container
-
-podman run \
- --name=zigbee2mqtt \
- --restart=unless-stopped \
- -p 8080:8080 \
- -v $(pwd)/data:/app/data \
- -v /run/udev:/run/udev:ro \
- --device=/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED3DDF-if00:/dev/ttyACM0 \
- --group-add keep-groups \
- -e TZ=Europe/Amsterdam \
- koenkk/zigbee2mqtt
-
diff --git a/terraform/lhn2pi-zigbee2mqtt/main.tf b/terraform/lhn2pi-zigbee2mqtt/main.tf
index 90527ee..2857b99 100644
--- a/terraform/lhn2pi-zigbee2mqtt/main.tf
+++ b/terraform/lhn2pi-zigbee2mqtt/main.tf
@@ -4,26 +4,15 @@ terraform {
source = "kreuzwerker/docker"
version = "3.0.2"
}
- linode = {
- source = "linode/linode"
- version = "1.30.0"
- }
- postgresql = {
- source = "cyrilgdn/postgresql"
- version = "1.18.0"
- }
- sops = {
- source = "lokkersp/sops"
- version = "0.6.10"
- }
}
}
provider "docker" {
- host = "ssh://lhn2pi.dn42.trygvis.io"
+ host = "ssh://${local.host}"
}
locals {
+ host = "lhn2pi.dn42.trygvis.io"
docker_image = "koenkk/zigbee2mqtt:1.42.0"
public_ip = module.ipam.hosts.lhn2pi.address
}