Skip to content

Commit

Permalink
Make private networks true by default
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Hollensbe <[email protected]>
  • Loading branch information
Erik Hollensbe committed Jul 29, 2021
1 parent e5f3785 commit 6be615d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/zerotier/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var NetworkSchema = map[string]*schema.Schema{
"private": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Default: true,
Description: "Whether or not the network is private. If false, members will *NOT* need to be authorized to join.",
},
"route": {
Expand Down
2 changes: 2 additions & 0 deletions testdata/plans/basic-network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ variable "networks" {
resource "zerotier_network" "alice" {
for_each = var.networks
name = each.key
private = false
}

resource "zerotier_identity" "alice" {}
Expand All @@ -36,6 +37,7 @@ resource "zerotier_member" "alice" {
resource "zerotier_network" "bobs_garage" {
name = "bobs_garage"
description = "so say we bob"
private = false
}

resource "zerotier_network" "assign_off" {
Expand Down

0 comments on commit 6be615d

Please sign in to comment.