https://github.com/global-vmware/vcd_nsxt_network_dhcp_isolated
This Repository contains the "vcd_nsxt_network_dhcp_isolated" Terraform Module. You can use this Module to deploy DHCP Pools for Isolated Data Center Group Networks into a VMware Cloud Director (VCD) Environment.
https://github.com/global-vmware/vcd_nsxt_network_dhcp_isolated
infrastructure-as-code networking terraform terraform-module vmware vmware-nsx
Last synced: about 1 year ago
JSON representation
This Repository contains the "vcd_nsxt_network_dhcp_isolated" Terraform Module. You can use this Module to deploy DHCP Pools for Isolated Data Center Group Networks into a VMware Cloud Director (VCD) Environment.
- Host: GitHub
- URL: https://github.com/global-vmware/vcd_nsxt_network_dhcp_isolated
- Owner: global-vmware
- Created: 2023-06-30T20:30:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T19:58:39.000Z (over 2 years ago)
- Last Synced: 2023-12-12T20:41:54.119Z (over 2 years ago)
- Topics: infrastructure-as-code, networking, terraform, terraform-module, vmware, vmware-nsx
- Language: HCL
- Homepage: https://www.rackspace.com/cloud/vmware
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VCD NSX-T Isolated DHCP Terraform Module
This Terraform module deploys NSX-T Isolated DHCP Pools into an existing VMware Cloud Director (VCD) environment. This module can be used to provision new NSX-T Isolated DHCP Pools into [Rackspace Technology SDDC Flex](https://www.rackspace.com/cloud/private/software-defined-data-center-flex) VCD Data Center Regions.
## Requirements
| Name | Version |
|------|---------|
| terraform | >= 1.2 |
| vcd | >= 3.8 |
## Resources
| Name | Type |
|----------------------------------------------------------------------|--------------|
| [vcd_nsxt_edgegateway](https://registry.terraform.io/providers/vmware/vcd/latest/docs/data-sources/nsxt_edgegateway) | Data Source |
| [vcd_vdc_group](https://registry.terraform.io/providers/vmware/vcd/latest/docs/data-sources/vdc_group) | Data Source |
| [vcd_network_isolated_v2](https://registry.terraform.io/providers/vmware/vcd/latest/docs/data-sources/network_isolated_v2) | Data Source |
| [vcd_nsxt_network_dhcp](https://registry.terraform.io/providers/vmware/vcd/latest/docs/resources/nsxt_network_dhcp) | Resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|----------|
| vdc_org_name | The name of the Data Center Group Organization in VCD | string | - | yes |
| vdc_edge_name | Name of the Data Center Group Edge Gateway | string | - | yes |
| vdc_group_name | The name of the Data Center Group in VCD | string | - | yes |
| segments | Map of network segments to configure DHCP on | map(object({ gateway = string, prefix_length = number, dns_suffix = string, listener_ip_address = string, pool_ranges = list(map(string)), dns_servers = list(string), dhcp_mode = string, lease_time = number })) | {} | yes |
## Outputs
| Name | Description |
|------|-------------|
| dhcp_pools | The pool ranges, DNS servers, DHCP mode, and listener IP address for each network segment |
## Example Usage
```terraform
module "vcd_nsxt_network_dhcp" {
source = "github.com/global-vmware/vcd_nsxt_network_dhcp_isolated.git?ref=v1.0.1"
vdc_org_name = ""
vdc_group_name = ""
vdc_edge_name = ""
segments = {
"US1-Isolated-Segment-01" = {
gateway = "172.16.20.1"
prefix_length = 24
dns_suffix = "mydomain.com"
listener_ip_address = "172.16.20.10"
pool_ranges = [
{
start_address = "172.16.20.101"
end_address = "172.16.20.200"
}
]
dns_servers = ["192.168.255.228"]
dhcp_mode = "NETWORK"
lease_time = 2592000
},
"US1-Isolated-Segment-02" = {
gateway = "172.16.21.1"
prefix_length = 24
dns_suffix = "mydomain.com"
listener_ip_address = "192.16.20.10"
listener_ip_address = "172.16.21.10"
pool_ranges = [
{
start_address = "172.16.21.101"
end_address = "172.16.21.200"
}
]
dns_servers = ["192.168.255.228"]
dhcp_mode = "NETWORK"
lease_time = 2592000
}
}
}
```
## Authors
This module is maintained by the [Global VMware Cloud Automation Services Team](https://github.com/global-vmware).