feat: multi-site scalability, locals refactor, README
This commit is contained in:
+22
-32
@@ -1,42 +1,32 @@
|
||||
# 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
|
||||
}
|
||||
backend "s3" {} # Config injected via -backend-config in CI (see backend.hcl at repo root)
|
||||
# required_version and required_providers are declared once in modules/meraki-site/main.tf
|
||||
}
|
||||
|
||||
provider "meraki" {}
|
||||
|
||||
# Llamada al módulo meraki-site
|
||||
locals {
|
||||
organization_name = "Adevinta Information Services SLU"
|
||||
network_name = "BCN01-LAB"
|
||||
}
|
||||
|
||||
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
|
||||
organization_name = local.organization_name
|
||||
network_name = local.network_name
|
||||
switch_vlans = local.switch_vlans
|
||||
firewall_rules = local.firewall_rules
|
||||
wireless_ssids = local.wireless_ssids
|
||||
radius_secret = var.radius_secret
|
||||
wifi_password_psk = var.wifi_password_psk
|
||||
switch_access_policies = local.switch_access_policies
|
||||
switch_port_configs = local.switch_port_configs
|
||||
switch_stack_port_configs = local.switch_stack_port_configs
|
||||
switch_named_port_configs = local.switch_named_port_configs
|
||||
switch_management_vlan = local.switch_management_vlan
|
||||
stack_routing_interfaces = local.stack_routing_interfaces
|
||||
appliance_ports = local.appliance_ports
|
||||
mx_wan_uplinks = local.mx_wan_uplinks
|
||||
mx_warm_spare = local.mx_warm_spare
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user