terraform { required_providers { docker = { 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://unifi.dn42.trygvis.io" } locals { domain_name = "unifi.vpn.trygvis.io" public_ip = module.ipam.hosts.unifi.address # docker_image_controller = "lscr.io/linuxserver/unifi-controller:8.0.24-mongoless" docker_image_controller = "lscr.io/linuxserver/unifi-network-application:8.5.6-ls68" docker_image_mongo = "mongo:7.0" mongo_database = "unifi" mongo_username = "unifi" mongo_password = data.sops_file_entry.mongo_password.data } data "sops_file_entry" "mongo_password" { source_file = "sops.yml" data_key = "mongo_password" } module "ipam" { source = "../ipam6" }