aboutsummaryrefslogtreecommitdiff
path: root/terraform/unifi-controller/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/unifi-controller/main.tf')
-rw-r--r--terraform/unifi-controller/main.tf17
1 files changed, 11 insertions, 6 deletions
diff --git a/terraform/unifi-controller/main.tf b/terraform/unifi-controller/main.tf
index f5f7b0a..f93bc78 100644
--- a/terraform/unifi-controller/main.tf
+++ b/terraform/unifi-controller/main.tf
@@ -1,10 +1,8 @@
terraform {
- required_version = "~> 1.3.5"
-
required_providers {
docker = {
source = "kreuzwerker/docker"
- version = "3.0.1"
+ version = "3.0.2"
}
linode = {
source = "linode/linode"
@@ -22,14 +20,17 @@ terraform {
}
provider "docker" {
- host = "ssh://conflatorio.vpn.trygvis.io"
+ host = "ssh://unifi.dn42.trygvis.io"
}
locals {
domain_name = "unifi.vpn.trygvis.io"
- docker_image_controller = "lscr.io/linuxserver/unifi-controller:8.0.24-mongoless"
- docker_image_mongo = "mongo:7.0"
+ 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"
@@ -40,3 +41,7 @@ data "sops_file_entry" "mongo_password" {
source_file = "sops.yml"
data_key = "mongo_password"
}
+
+module "ipam" {
+ source = "../ipam6"
+}