-
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.
BUGFIXES: * Manage `null` values for array into objects in `meraki_devices_appliance_uplinks_settings_resource`. * Manage `null` values for array into objects in `meraki_networks_appliance_security_intrusion_resource`. * Include exception to expects `400` code instead of `404` in `meraki_networks_group_policies_resource`. * Attribute `password` is now just am `Optional` parameter, not `Computed` in `meraki_networks_settings_resource`. * Avoid unexpected or non-existent changes in `meraki_networks_switch_access_policies_resource`. * Mapping ID post creation in `meraki_networks_switch_stacks_resource`. * Attribute `default_vlan_id` is now just am `Optional` parameter, not `Computed` in `meraki_networks_wireless_ssids_resource`. * Attribute `updatestrategy` included in `meraki_networks_wireless_settings_resource`. * Managing `null` interfaces, to avoid panics in `utils` at `changeUnknowns` function.
- Loading branch information
1 parent
9b712fa
commit 2ba0932
Showing
64 changed files
with
486 additions
and
130 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
examples/samples/data_sources/meraki_administered_identities_me copy/data_source.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
2 changes: 1 addition & 1 deletion
2
examples/samples/data_sources/meraki_administered_identities_me/data_source.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
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
2 changes: 1 addition & 1 deletion
2
examples/samples/data_sources/meraki_organizations/data_source.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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/adaptative_policy_groups/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
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
32 changes: 32 additions & 0 deletions
32
examples/samples/resources/meraki_devices_appliance_uplinks_settings/main.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,32 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.2-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_devices_appliance_uplinks_settings" "this" { | ||
|
||
serial = "QBSA-TFWJ-U4L9" | ||
interfaces = { | ||
wan1 = { | ||
enabled = true | ||
svis = { | ||
ipv4 = { | ||
assignment_mode = "dynamic" | ||
} | ||
} | ||
vlan_tagging = { | ||
enabled = true | ||
vlan_id = "10" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
examples/samples/resources/meraki_devices_management_interface/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,34 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.2-alpha" | ||
source = "hashicorp.com/edu/meraki" | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
provider "meraki" { | ||
meraki_debug = "true" | ||
} | ||
|
||
|
||
resource "meraki_devices_management_interface" "sample_firewall_interface" { | ||
serial = "QBSA-TFWJ-U4L9" | ||
|
||
wan1 = { | ||
using_static_ip = true | ||
static_ip = "192.168.1.2" | ||
static_gateway_ip = "192.168.1.1" | ||
static_subnet_mask = "255.255.255.0" | ||
static_dns = ["8.8.8.8", "8.8.4.4"] | ||
vlan = null | ||
wan_enabled = "enabled" | ||
} | ||
|
||
wan2 = { | ||
using_static_ip = false | ||
wan_enabled = "enabled" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_devices_switch_routing_interfaces_dhcp/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_devices_switch_routing_static_routes/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
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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_alerts_settings/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_appliance_firewall_l7_firewall_rules/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
31 changes: 31 additions & 0 deletions
31
examples/samples/resources/meraki_networks_appliance_security_intrusion/main.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,31 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
source = "hashicorp.com/edu/meraki" | ||
version = "0.2.2-alpha" | ||
} | ||
} | ||
|
||
required_version = ">= 1.2.0" | ||
} | ||
|
||
provider meraki { | ||
meraki_debug = "true" | ||
} | ||
|
||
data "meraki_organizations" "example" {} | ||
|
||
data "meraki_networks" "example" { | ||
organization_id = data.meraki_organizations.example.items[0].id | ||
} | ||
|
||
resource "meraki_networks_appliance_security_intrusion" "example" { | ||
|
||
ids_rulesets = "balanced" | ||
mode = "prevention" | ||
network_id = data.meraki_networks.example.items[0].id | ||
} | ||
|
||
output "meraki_networks_appliance_security_intrusion_example" { | ||
value = meraki_networks_appliance_security_intrusion.example | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_appliance_vlans/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
32 changes: 32 additions & 0 deletions
32
examples/samples/resources/meraki_networks_appliance_vlans_2_exp/main.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,32 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.2-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_appliance_vlans" "this_vlan_1" { | ||
network_id = "L_828099381482775374" | ||
name = "MGMT" | ||
id = "1" | ||
appliance_ip = "10.76.237.17" | ||
subnet = "10.76.237.16/28" | ||
dhcp_handling = "Run a DHCP server" | ||
dhcp_lease_time = "1 day" | ||
dns_nameservers = "upstream_dns" | ||
dhcp_boot_options_enabled = false | ||
ipv6 = { | ||
enabled = false | ||
} | ||
mandatory_dhcp = { | ||
enabled = false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_devices_claim/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_settings/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_switch_access_control_lists/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
Empty file.
52 changes: 52 additions & 0 deletions
52
examples/samples/resources/meraki_networks_switch_access_policies_2/main.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,52 @@ | ||
terraform { | ||
required_providers { | ||
meraki = { | ||
version = "0.2.2-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_switch_access_policies" "this_site_access_policy" { | ||
network_id = "L_828099381482775374" | ||
name = "dot1xmab" | ||
radius_servers = [{ | ||
host = "192.168.1.2" | ||
port = 1812 | ||
secret = "<-blanked->" | ||
}] | ||
radius_accounting_enabled = true | ||
radius_accounting_servers = [{ | ||
host = "192.168.1.3" | ||
port = 1813 | ||
secret = "<-blanked->" | ||
}] | ||
radius_testing_enabled = true | ||
radius_coa_support_enabled = false | ||
radius_group_attribute = "" | ||
host_mode = "Single-Host" | ||
access_policy_type = "Hybrid authentication" | ||
increase_access_speed = false | ||
dot1x = { | ||
control_direction = "both" | ||
} | ||
radius = { | ||
critical_auth = { | ||
data_vlan_id = 10 | ||
suspend_port_bounce = true | ||
voice_vlan_id = "11" | ||
} | ||
failed_auth_vlan_id = 10 | ||
re_authentication_interval = null | ||
} | ||
url_redirect_walled_garden_enabled = false | ||
guest_port_bouncing = true | ||
guest_vlan_id = "10" | ||
voice_vlan_clients = true | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_switch_stp/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_syslog_servers/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
2 changes: 1 addition & 1 deletion
2
examples/samples/resources/meraki_networks_wireless_billing/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
Oops, something went wrong.