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" }