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.tf15
1 files changed, 9 insertions, 6 deletions
diff --git a/terraform/unifi-controller/main.tf b/terraform/unifi-controller/main.tf
index 55c133c..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,15 +20,16 @@ terraform {
}
provider "docker" {
- host = "ssh://conflatorio.vpn.trygvis.io"
+ host = "ssh://unifi.dn42.trygvis.io"
}
locals {
domain_name = "unifi.vpn.trygvis.io"
- public_ip = "fdb1:4242:3538:2001::ffff"
+ 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-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"
@@ -42,3 +41,7 @@ data "sops_file_entry" "mongo_password" {
source_file = "sops.yml"
data_key = "mongo_password"
}
+
+module "ipam" {
+ source = "../ipam6"
+}