Configura meraki_appliance_warm_spare con VIP flotante en WAN1: - Spare: BCN01-F04-MX02 (serial resuelto por nombre) - Uplink mode: virtual - VIP WAN1: 213.229.159.148 La IP de salida del tráfico será siempre la VIP (.148), independientemente de qué MX esté activo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.3 KiB
Terraform
Executable File
43 lines
1.3 KiB
Terraform
Executable File
# Configuración de Terraform y Provider
|
|
terraform {
|
|
required_version = ">= 1.5.0"
|
|
required_providers {
|
|
meraki = {
|
|
source = "CiscoDevNet/meraki"
|
|
version = "1.9.0"
|
|
}
|
|
}
|
|
|
|
backend "s3" {
|
|
bucket = "eqt-terraform-state-629066559706-us-east-1-an"
|
|
key = "BCN01-LAB/terraform.tfstate"
|
|
region = "us-east-1"
|
|
dynamodb_table = "terraform-locks"
|
|
encrypt = true
|
|
}
|
|
}
|
|
|
|
provider "meraki" {}
|
|
|
|
# Llamada al módulo meraki-site
|
|
module "bcn01_lab" {
|
|
source = "../../modules/meraki-site"
|
|
|
|
organization_name = var.organization_name
|
|
network_name = var.network_name
|
|
switch_vlans = var.switch_vlans
|
|
firewall_rules = var.firewall_rules
|
|
wireless_ssids = var.wireless_ssids
|
|
radius_secret = var.radius_secret
|
|
switch_access_policies = var.switch_access_policies
|
|
switch_port_configs = var.switch_port_configs
|
|
switch_stack_port_configs = var.switch_stack_port_configs
|
|
switch_named_port_configs = var.switch_named_port_configs
|
|
switch_management_vlan = var.switch_management_vlan
|
|
stack_routing_interfaces = var.stack_routing_interfaces
|
|
appliance_ports = var.appliance_ports
|
|
mx_wan_uplinks = var.mx_wan_uplinks
|
|
mx_warm_spare = var.mx_warm_spare
|
|
wifi_password_psk = var.wifi_password_psk
|
|
}
|