feat: add minimal PROD VM example

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Repinoid
2026-10-17 21:04:00 +03:00
co-authored by Copilot
parent 9731ba672f
commit 88242af900
12 changed files with 660 additions and 5 deletions
+35
View File
@@ -0,0 +1,35 @@
# Create the perimeter gateway and its routed network inside the VDC.
resource "nubes_vc_nsxt" "edge" {
# Name shown for this Edge service in the personal account.
resource_name = var.nsxt_resource_name
# Attach the gateway directly to a VDC, not to a VDC group.
vdc_type = "vdc"
# UUID of the VDC created above; this reference also orders creation.
vdc_uid = nubes_vc_vdc.vdc.id
# AVI/ALB is not needed for this standalone VM example.
need_enable_avi = false
# Only required when AVI/ALB is enabled; keep it null when ALB is disabled.
virtual_services_count = null
# Routed subnet and DNS servers assigned to VMs behind this Edge.
routed_net_configuration = {
# Non-overlapping /24 range for the routed network.
ip_addr_pool = var.nsxt_ip_addr_pool
# Primary DNS server configured in VMs.
main_dns = var.nsxt_main_dns
# Secondary DNS server configured in VMs.
second_dns = var.nsxt_second_dns
}
# Allow provider destroy handling to delete the Edge when dependencies permit.
keep_on_destroy = false
# Reuse an existing same-name Edge rather than failing during Create.
adopt_existing_on_create = true
}