aboutsummaryrefslogtreecommitdiff
path: root/terraform/unifi-controller/main.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-11-03 17:13:56 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-11-03 17:13:56 +0100
commit8ceb4bbe219230a7e8297f7bd78c141202454dba (patch)
treec7b8c5b8f64c061d86cb2a41711d7afe989f2965 /terraform/unifi-controller/main.tf
parent9fc7d5ed1a8a31bd0ddcba0568c8acc280ee5021 (diff)
downloadinfra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.gz
infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.bz2
infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.xz
infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.zip
unifi
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"
+}