Skip to content

Commit

Permalink
Add a central unifi module for home and remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroPower committed Jan 2, 2024
1 parent 37f54cd commit 2c29de7
Show file tree
Hide file tree
Showing 26 changed files with 766 additions and 404 deletions.
15 changes: 6 additions & 9 deletions terraform/home/.auto.tfvars.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ truenas_devices = {
}
}

unifi_sites = {
home = {
username = "${UNIFI_USERNAME}"
password = "${UNIFI_PASSWORD}"
api_url = "https://unifi.home.macro.network"
site = "default"
domain_name = "home.macro.network"
}
}
unifi_username = "${UNIFI_USERNAME}"
unifi_password = "${UNIFI_PASSWORD}"
unifi_api_url = "https://unifi.home.macro.network"
unifi_site = "default"

domain_name = "home.macro.network"

doppler_token = "${NAS01_DOPPLER_TOKEN}"
19 changes: 19 additions & 0 deletions terraform/home/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terraform/home/get_tfvars.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
doppler run -p terraform-home -c main envsubst < .auto.tfvars.tpl > .auto.tfvars
doppler run -p terraform -c main envsubst < .auto.tfvars.tpl > .auto.tfvars
10 changes: 0 additions & 10 deletions terraform/home/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,3 @@ output "kubeconfig" {
sensitive = true
value = module.nas01_k3s.kubeconfig
}

module "unifi" {
source = "./modules/unifi"

domain_name = var.unifi_sites.home.domain_name

providers = {
unifi = unifi.home
}
}
196 changes: 0 additions & 196 deletions terraform/home/modules/unifi/clients.tf

This file was deleted.

126 changes: 0 additions & 126 deletions terraform/home/modules/unifi/devices.tf

This file was deleted.

3 changes: 0 additions & 3 deletions terraform/home/modules/unifi/variables.tf

This file was deleted.

Loading

0 comments on commit 2c29de7

Please sign in to comment.