feat: multi-site scalability, locals refactor, README
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
locals {
|
||||
# Warm Spare (HA) — floating VIP between primary and spare MX
|
||||
mx_warm_spare = {
|
||||
enabled = true
|
||||
spare_name = "BCN01-F04-MX02"
|
||||
uplink_mode = "virtual"
|
||||
virtual_ip1 = "213.229.159.148" # Floating VIP on WAN1
|
||||
virtual_ip2 = "10.212.160.40" # Floating VIP on WAN2
|
||||
}
|
||||
|
||||
# Static WAN1 configuration for each MX
|
||||
# Device serials are resolved automatically from the display name
|
||||
mx_wan_uplinks = [
|
||||
{
|
||||
name = "BCN01-F04-MX01"
|
||||
wan1_static_ip = "213.229.159.145"
|
||||
wan1_static_subnet_mask = "255.255.255.240" # /28
|
||||
wan1_static_gateway_ip = "213.229.159.147"
|
||||
wan1_static_dns = ["8.8.8.8", "8.8.4.4"]
|
||||
},
|
||||
{
|
||||
name = "BCN01-F04-MX02"
|
||||
wan1_static_ip = "213.229.159.146"
|
||||
wan1_static_subnet_mask = "255.255.255.240" # /28
|
||||
wan1_static_gateway_ip = "213.229.159.147"
|
||||
wan1_static_dns = ["8.8.8.8", "8.8.4.4"]
|
||||
},
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user