Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
ivorsmorenburg committed Jan 1, 2022
1 parent 8eab527 commit 3c3d504
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
4 changes: 0 additions & 4 deletions unifi_devices.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ resource "unifi_device" "ubn_network_device" {
mac = each.value.device.mac
name = each.value.device.name

lifecycle {
create_before_destroy = true
}

dynamic "port_override" {
for_each = {
for key, port_conf in each.value.device.ports_override != null ? each.value.device.ports_override : {} : key => port_conf
Expand Down
19 changes: 17 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "unifi_site" {
variable "radius_profile_name" {
description = "LookUp Radius Id by Name"
type = string
default = "Default"
default = "Default"
}
# UniFi Arguments & Options
variable "user_speed_groups" {
Expand Down Expand Up @@ -66,7 +66,22 @@ variable "network_configuration" {
x_wan_password = optional(string)
}))
}

variable "unifi_client" {
description = "UniFi Client"
type = map(object({
mac = optional(string)
name = optional(string)
allow_existing = optional(string)
blocked = optional(string)
dev_id_override = optional(string)
fixed_ip = optional(string)
network_id = optional(string)
note = optional(string)
site = optional(string)
skip_forget_on_destroy = optional(string)
user_group_id = optional(string)
}))
}
variable "wlan_configuration" {
description = "Controller WiFi"
type = map(object({
Expand Down

0 comments on commit 3c3d504

Please sign in to comment.