feat: multi-site scalability, locals refactor, README
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
terraform {
|
||||
required_version = ">= 1.5.0"
|
||||
required_providers {
|
||||
meraki = {
|
||||
source = "CiscoDevNet/meraki"
|
||||
|
||||
@@ -9,3 +9,15 @@ output "vlan_ids" {
|
||||
description = "Mapa de VLAN ID => ID de recurso creado en el MX"
|
||||
value = { for k, v in meraki_appliance_vlan.mx_gateways : k => v.vlan_id }
|
||||
}
|
||||
|
||||
# IDs de los stacks de switches
|
||||
output "stack_ids" {
|
||||
description = "Mapa de nombre de stack => stack ID"
|
||||
value = local.stack_ids
|
||||
}
|
||||
|
||||
# Seriales de los dispositivos de red por nombre
|
||||
output "device_serials" {
|
||||
description = "Mapa de nombre de dispositivo => serial"
|
||||
value = local.device_serials
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ variable "firewall_rules" {
|
||||
policy = string
|
||||
protocol = string
|
||||
src_cidr = string
|
||||
src_port = string
|
||||
src_port = optional(string, "any")
|
||||
dest_cidr = string
|
||||
dest_port = string
|
||||
dest_port = optional(string, "any")
|
||||
syslog_enabled = optional(bool, false)
|
||||
}))
|
||||
default = []
|
||||
@@ -178,8 +178,6 @@ variable "stack_routing_interfaces" {
|
||||
ip_address = string # IP estática del stack en esta VLAN
|
||||
subnet = string # subred en formato CIDR, ej: "10.2.55.0/24"
|
||||
default_gateway = optional(string, null) # gateway para acceso a internet
|
||||
dns1 = optional(string, null) # DNS primario
|
||||
dns2 = optional(string, null) # DNS secundario
|
||||
}))
|
||||
default = []
|
||||
description = "Interfaces L3 (SVIs) en stacks de switches para acceso de gestión al Dashboard de Meraki."
|
||||
|
||||
Reference in New Issue
Block a user