diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2025-03-30 20:02:09 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2025-03-30 20:02:09 +0200 |
commit | 871f158748898cdd69b7c4df2783f0c31370d7dc (patch) | |
tree | 43a123d5574d955f8f27875a1c09aa730953b873 /terraform/garasjepi-zigbee2mqtt/main.tf | |
parent | 177895ce74e47bc9327020a73b39b080a872315a (diff) | |
download | infra-871f158748898cdd69b7c4df2783f0c31370d7dc.tar.gz infra-871f158748898cdd69b7c4df2783f0c31370d7dc.tar.bz2 infra-871f158748898cdd69b7c4df2783f0c31370d7dc.tar.xz infra-871f158748898cdd69b7c4df2783f0c31370d7dc.zip |
garasjepi
Diffstat (limited to 'terraform/garasjepi-zigbee2mqtt/main.tf')
-rw-r--r-- | terraform/garasjepi-zigbee2mqtt/main.tf | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/terraform/garasjepi-zigbee2mqtt/main.tf b/terraform/garasjepi-zigbee2mqtt/main.tf new file mode 100644 index 0000000..4d5bb25 --- /dev/null +++ b/terraform/garasjepi-zigbee2mqtt/main.tf @@ -0,0 +1,30 @@ +terraform { + required_providers { + docker = { + source = "kreuzwerker/docker" + version = "3.0.2" + } + } +} + +provider "docker" { + host = "ssh://${local.host}" +} + +locals { + host = "garasjepi.dn42.trygvis.io" + docker_image = "koenkk/zigbee2mqtt:1.42.0" + public_ip = module.ipam.hosts.garasjepi.address +} + +module "ipam" { + source = "../ipam6" +} + +module "zigbee2mqtt" { + source = "../modules/zigbee2mqtt" + + docker_version = "2.1" + public_ip = local.public_ip + serial_port = "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2698168-if00" +} |