terraform { required_providers { docker = { source = "kreuzwerker/docker" version = "3.0.2" } } } provider "docker" { host = "ssh://${local.host}" } locals { host = "lhn2pi.dn42.trygvis.io" docker_image = "koenkk/zigbee2mqtt:1.42.0" public_ip = module.ipam.hosts.lhn2pi.address } module "ipam" { source = "../ipam6" } module "zigbee2mqtt" { source = "../modules/zigbee2mqtt" public_ip = local.public_ip serial_port = "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2688076-if00" }