Files

110 lines
3.1 KiB
Terraform

output "site_supernet" {
value = local.site_supernet
description = "10.<site_id>.0.0/16"
}
output "mgmt_cidr" {
value = local.mgmt_cidr
description = "OOB / vme management network for the site (10.<site_id>.5.0/24)."
}
output "spine_mgmt_ip" {
value = local.spine_mgmt_ip
description = "Site core spine vme IP (10.<site_id>.5.115)."
}
output "cluster_supernet" {
value = local.cluster_supernet
description = "10.<site_id>.<cluster_id*16>.0/20 (null if no cluster_id)."
}
output "public_cidr" {
value = local.public_cidr
description = "Cluster public network (e.g. cls1 -> 10.40.20.0/23)."
}
output "private_cidr" {
value = local.private_cidr
description = "Cluster private network (e.g. cls1 -> 10.40.22.0/23)."
}
output "public_vlan_id" {
value = local.public_vlan_id
description = "Public VLAN id = cluster_id*100 + 20 (cls1 -> 120). Name = vlan<id>."
}
output "private_vlan_id" {
value = local.private_vlan_id
description = "Private VLAN id = cluster_id*100 + 22 (cls1 -> 122). Name = vlan<id>."
}
output "host_mgmt_cidr" {
value = local.host_mgmt_cidr
description = "Cluster host-management network (e.g. cls1 -> 10.40.24.0/24)."
}
output "host_mgmt_vlan_id" {
value = local.host_mgmt_vlan_id
description = "Host-mgmt VLAN id = cluster_id*100 + 24 (cls1 -> 124). Name = vlan<id>."
}
output "host_mgmt_gateway" {
value = local.host_mgmt_gateway
description = "IRB gateway (.1) for the host-management network."
}
output "public_gateway" {
value = local.public_gateway
description = "IRB gateway (.1) for the public network."
}
output "private_gateway" {
value = local.private_gateway
description = "IRB gateway (.1) for the private network."
}
output "prefixlen" {
value = local.has_cluster ? tonumber(split("/", local.public_cidr)[1]) : null
description = "Prefix length of the public/private networks (23)."
}
output "leaf_mgmt_ip" {
value = local.leaf_mgmt_ip
description = "Cluster leaf vme IP (cls1 -> 10.40.5.125, cls2 -> .135)."
}
output "mgmt_vlan_id" {
value = local.mgmt_vlan_id
description = "Site-global management VLAN id (== third octet of mgmt_cidr, e.g. 5)."
}
output "kube_cidr" {
value = local.kube_cidr
description = "Site-global Kubernetes node network 'kube' (10.<site>.<kube_octet>.0/24), a fabric VLAN."
}
output "kube_vlan_id" {
value = local.kube_vlan_id
description = "Site-global kube VLAN id (== kube_octet, e.g. 10)."
}
output "kube_cp_cidr" {
value = local.kube_cp_cidr
description = "Site-global Kubernetes control-plane network 'kube-cp' (10.<site>.<kube_cp_octet>.0/24), a fabric VLAN — bare-metal CPs (etcd) + the API VIP."
}
output "kube_cp_vlan_id" {
value = local.kube_cp_vlan_id
description = "Site-global kube-cp VLAN id (== kube_cp_octet, e.g. 11)."
}
output "kube_cp_gateway" {
value = local.kube_cp_gateway
description = "Spine IRB gateway (.1) for the kube-cp network."
}
output "lb_internal_cidr" {
description = "Internal (NetBird-only) LoadBalancer VIP range (10.<site>.12.0/24)."
value = local.lb_internal_cidr
}