-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- meraki_networks panics on creation if the organization id is invalid …
- Loading branch information
1 parent
fbf570f
commit 9be383e
Showing
48 changed files
with
575 additions
and
306 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
examples/resources/meraki_networks_wireless_ssids_identity_psks/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/samples/resources/meraki_networks_group_policies/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import meraki_networks_group_policies.example "group_policy_id,network_id" |
149 changes: 149 additions & 0 deletions
149
examples/samples/resources/meraki_networks_group_policies/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.5-alpha" | ||
source = "hashicorp.com/edu/meraki" | ||
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry | ||
} | ||
} | ||
} | ||
provider "meraki" { | ||
meraki_debug = "true" | ||
} | ||
|
||
|
||
resource "meraki_networks_group_policies" "example" { | ||
|
||
bandwidth = { | ||
|
||
bandwidth_limits = { | ||
|
||
limit_down = 1000000 | ||
limit_up = 1000000 | ||
} | ||
settings = "custom" | ||
} | ||
bonjour_forwarding = { | ||
|
||
rules = [{ | ||
|
||
description = "A simple bonjour rule" | ||
services = ["All Services"] | ||
vlan_id = "1" | ||
}] | ||
settings = "custom" | ||
} | ||
content_filtering = { | ||
|
||
allowed_url_patterns = { | ||
|
||
settings = "network default" | ||
} | ||
blocked_url_categories = { | ||
|
||
# categories = ["meraki:contentFiltering/category/1", "meraki:contentFiltering/category/7"] | ||
settings = "override" | ||
} | ||
blocked_url_patterns = { | ||
|
||
patterns = ["http://www.example.com", "http://www.betting.com"] | ||
settings = "append" | ||
} | ||
} | ||
firewall_and_traffic_shaping = { | ||
|
||
l3_firewall_rules = [{ | ||
|
||
comment = "Allow TCP traffic to subnet with HTTP servers." | ||
dest_cidr = "192.168.1.0/24" | ||
dest_port = "443" | ||
policy = "allow" | ||
protocol = "tcp" | ||
}] | ||
l7_firewall_rules = [{ | ||
|
||
policy = "deny" | ||
type = "host" | ||
value = "google.com" | ||
}] | ||
settings = "custom" | ||
traffic_shaping_rules = [{ | ||
|
||
definitions = [{ | ||
|
||
type = "host" | ||
value = "google.com" | ||
}] | ||
# dscp_tag_value = 1 | ||
pcp_tag_value = 1 | ||
per_client_bandwidth_limits = { | ||
|
||
bandwidth_limits = { | ||
|
||
limit_down = 1000000 | ||
limit_up = 1000000 | ||
} | ||
settings = "custom" | ||
} | ||
priority = "normal" | ||
}] | ||
} | ||
name = "No video streaming" | ||
network_id = "L_828099381482775375" | ||
scheduling = { | ||
|
||
enabled = true | ||
friday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
monday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
saturday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
sunday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
thursday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
tuesday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
wednesday = { | ||
|
||
active = true | ||
from = "9:00" | ||
to = "17:00" | ||
} | ||
} | ||
splash_auth_settings = "bypass" | ||
vlan_tagging = { | ||
|
||
settings = "custom" | ||
vlan_id = "1" | ||
} | ||
} | ||
|
||
output "meraki_networks_group_policies_example" { | ||
value = meraki_networks_group_policies.example | ||
} |
1 change: 1 addition & 0 deletions
1
examples/samples/resources/meraki_networks_wireless_ssids_identity_psks/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import meraki_networks_wireless_ssids_identity_psks.example "identity_psk_id,network_id,number" |
30 changes: 30 additions & 0 deletions
30
examples/samples/resources/meraki_networks_wireless_ssids_identity_psks/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.5-alpha" | ||
source = "hashicorp.com/edu/meraki" | ||
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry | ||
} | ||
} | ||
} | ||
|
||
provider "meraki" { | ||
meraki_debug = "true" | ||
} | ||
|
||
|
||
resource "meraki_networks_wireless_ssids_identity_psks" "example" { | ||
# lifecycle { | ||
# # ignore_changes = [ expires_at ] | ||
# } | ||
expires_at = "2018-02-11T00:00:00.090209Z" | ||
group_policy_id = "100" | ||
name = "Sample Identity PSK" | ||
network_id = "L_828099381482775375" | ||
number = "12" | ||
passphrase = "secret1221121" | ||
} | ||
|
||
output "meraki_networks_wireless_ssids_identity_psks_example" { | ||
value = meraki_networks_wireless_ssids_identity_psks.example | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.