You define target networks and datastores for workload provisioning by using network and storage profiles in Cloud Assembly.
-
Configure Network Profiles for Existing Networks
Each network profile is configured for a specific network port group or virtual network segment to specify the IP address and the routing configuration for virtual machines provisioned to that network.
-
Configure Storage Profiles in Cloud Assembly
You configure type of storage for the provisioned workloads by defining a storage profile in Cloud Assembly for the specific cloud account and region.
Each network profile is configured for a specific network port group or virtual network segment to specify the IP address and the routing configuration for virtual machines provisioned to that network.
Before project members can request workloads on existing networks, you must add the network segments from the VI workload domain NSX Local Manager to the network profiles defined in vRealize Automation. You configure separate segments for the environment type and application tier.
NSX Segments for Existing Networks
Setting | Example Value for Production Workloads | Example Value for Development Workloads |
---|---|---|
Segment name | sfo-prod-172-11-10-0-24 | sfo-dev-172-12-10-0-24 |
Connected gateway | sfo-w01-ec01-t1-gw01 | sfo-w01-ec01-t1-gw01 |
Transport zone | overlay-tz-sfo-w01-nsx01.sfo.rainpole.io | overlay-tz-sfo-w01-nsx01.sfo.rainpole.io |
Subnets | 172.11.10.1/24 | 172.12.10.1/24 |
-
Log in to the NSX Local Manager cluster for the VI workload domain at
https://<vi_workload_nsx_local_manager_fqdn>/login.jsp?local=true
as admin. -
On the main navigation bar, click Networking.
-
In the navigation pane, under Connectivity, click Segments.
-
On the Segments tab, click Add segment, configure these settings and click Save.
Setting Example Value Segment name sfo-prod-172-11-10-0-24 Connected gateway sfo-w01-ec01-t1-gw01 Transport zone overlay-tz-sfo-w01-nsx01.sfo.rainpole.io Subnets (Gateway CIDR IPv4) 172.11.10.1/24 Admin state Turned on -
In the Want to continue configuring this Segment? dialog box, click No.
-
Repeat this procedure for the NSX segment for development workloads.
-
Repeat this procedure for each NSX segment for use of existing networks for each VI workload domain across the VMware Cloud Foundation instances.
-
Navigate to the Terraform example in the repository.
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.cd terraform-examples/nsxt/nsx-segments-existing
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file. -
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan
-
Repeat this procedure for the NSX segments for use of existing networks for each VI workload domain across the VMware Cloud Foundation instances by duplicating the originating directory contents from the example to a different working directory.
Results
When the resource collection finishes, the NSX segments are available for the NSX-T Manager cloud account. The resource collection for cloud accounts runs automatically every 10 minutes.
Each network profile is configured for a specific network port group or network segment to specify the IP address and the routing configuration for virtual machines provisioned to that network.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Cloud Assembly Administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Cloud Assembly.
-
Click the Infrastructure tab.
-
In the left pane, select Configure > Network profiles.
-
Click New network profile.
The New network profile page opens.
-
On the Summary tab, configure these settings.
Setting Example Value Account / region sfo-w01-vc01 / sfo-w01-dc01 Name net-existing-sfo-w01-vc01 Description Existing Networks - Workload Domain 01 Capability tags network:existing -
Click the Networks tab, click Add network, select the NSX segments for production and development workloads and click Add.
Segment Segment Name NSX segment for production workloads sfo-prod-172-11-10-0-24 NSX segment for development workloads sfo-dev-172-12-10-0-24 -
On the Networks tab, for each segment, select the check box, click Tags, configure these capability tags, and click Save.
Segment Name Capability Tags sfo-prod-172-11-10-0-24 env:prod sfo-dev-172-12-10-0-24 env:dev -
On the Networks tab, for each segment, click the segment name, configure these settings, and click Save.
Setting Example Value for sfo-prod-172-11-10-0-24 Example Value for sfo-dev-172-12-10-0-24 Domain sfo.rainpole.io sfo.rainpole.io IPv4 CIDR 172.11.10.0/24 172.12.10.0/24 IPv4 default gateway 172.11.10.1 172.12.10.1 DNS servers 172.16.11.4, 172.16.11.5 172.16.11.4, 172.16.11.5 DNS search domains sfo.rainpole.io sfo.rainpole.io -
On the Networks tab, for each segment, select the check box, click Manage IP ranges, click New IP range, configure these settings, click Add, and click Close.
Setting Example Value for sfo-prod-172-11-10-0-24 Example Value for sfo-dev-172-12-10-0-24 Source Internal Internal Name sfo-prod-172-11-10-0-24 sfo-dev-172-12-10-0-24 Description Production: Network Static IP Range Development: Network Static IP Range Start IP address 172.11.10.20 172.12.10.20 End IP address 172.11.10.250 172.12.10.250 -
Click Create.
-
Repeat this procedure to create network profiles for additional accounts and regions across the VMware Cloud Foundation instances.
-
Create the network profile by using Terraform.
a. Navigate to the Terraform example in the repository.
b. Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.c. Open the
terraform.tfvars
file, update the variables for your environment, and save the file.d. If you want to add multiple network profiles in the cloud account or in additional cloud accounts, repeat steps 1.b and 1.c for each additional cloud account by duplicating the example in a different working directory.
e. Initialize the current directory and the required Terraform providers.
f. Create a Terraform plan and save the output to a file.
g. Apply the Terraform plan.
-
Apply the capability tags by using the UI.
a. Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Cloud Assembly Administrator service role.b. On the main navigation bar, click Services.
c. Under My services, click Cloud Assembly.
d. Click the Infrastructure tab.
e. In the left pane, select Configure > Network profiles.
f. In the net-existing-sfo-w01-vc01-01 card, click Open.
g. On the Summary tab, configure the following value.
Setting Example Value Capability tags network:existing h. Click the Networks tab and for each segment, select the check-box, click Tags, configure these capability tags, and click Save.
Segment Name Capability Tags sfo-prod-172-11-10-0-24 env:prod sfo-dev-172-12-10-0-24 env:dev -
Obtain the UUID of each NSX segment,
UUID_of_sfo-prod-172-11-10-0-24
andUUID_of_sfo-dev-172-12-10-0-24
, by using the UI.a. In the left pane, select Resources > Networks.
b. For each segment, click the network name and, from the URL in the Web browser, copy the value after edit%2F.
For example, in the
https://xint-vra01.rainpole.io/automation-ui/#/provisioning-ui;ash=%2Fnetwork%2Fsubnets%2Fedit%2Fb3c69351-3db1-41dd-bfba-3c2de71fbe4f
URL, the UUID isb3c69351-3db1-41dd-bfba-3c2de71fbe4f
. -
Configure the network settings by using Terraform.
a. Navigate to the Terraform example in the repository.
cd terraform-examples/vra/vra-fabric-network-existing
b. Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example terraform.tfvars
c. Open the
terraform.tfvars
file, update the variables for your environment, and save the file.d. Initialize the current directory and the required Terraform providers.
terraform init
e. Import the networks into the Terraform state by using the UUIDs that you obtained in step 3.
terraform import vra_fabric_network_vsphere.network0 UUID_of_sfo-prod-172-11-10-0-24 terraform import vra_fabric_network_vsphere.network1 UUID_of_sfo-dev-172-12-10-0-24
f. Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
g. Apply the Terraform plan.
terraform apply tfplan
Before project members can request workloads using on-demand networks, you must add a network segment to the VI workload domain NSX Local Manager to the network profiles defined in vRealize Automation. In this sample, you configure one segment for on-demand networks.
-
Log in to the NSX Local Manager cluster for the VI workload domain at
https://<vi_workload_nsx_local_manager_fqdn>/login.jsp?local=true
as admin. -
On the main navigation bar, click Networking.
-
In the navigation pane, under Connectivity, click Segments.
-
On the Segments tab, click Add segment, configure these values and click Save.
Setting Example Value Segment name sfo-outbound-192-168-64-0-22 Connected gateway sfo-w01-ec01-t1-gw01 Transport zone overlay-tz-sfo-w01-nsx01.sfo.rainpole.io Subnets (Gateway CIDR IPv4) 192.168.64.1/22 Admin state Turned on -
In the Want to continue configuring this Segment? dialog box, click No.
-
Repeat this procedure for each NSX segment for use of on-demand networks for each VI workload domain across the VMware Cloud Foundation instances.
-
Navigate to the Terraform example in the repository.
cd terraform-examples/nsxt/nsx-segments-ondemand
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example terraform.tfvars
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file. -
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan
-
Repeat this procedure for the NSX segments for use of on-demand networks for each VI workload domain across the VMware Cloud Foundation instances by duplicating the originating directory contents from the example to a different working directory.
Results
When the resource collection finishes, the NSX segments are available for the NSX-T Manager cloud account. The resource collection for cloud accounts runs automatically every 10 minutes.
Each network profile is configured for a specific network port group or virtual network segment to specify the IP address and the routing configuration for virtual machines provisioned to that network.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Cloud Assembly Administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Cloud Assembly.
-
Click the Infrastructure tab.
-
In the left pane, select Configure > Network profiles.
-
Click New network profile.
The New network profile page opens.
-
On the Summary tab, configure these settings.
Setting Example Value Account / region sfo-w01-vc01 / sfo-w01-dc01 Name net-ondemand-sfo-w01-vc01 Description On-Demand Networks - Workload Domain 01 Capability tags network:ondemand env:prod env:dev -
Click the Networks tab, click Add network, select the segment for on-demand networks, sfo-outbound-192-168-64-0-22, and click Add.
-
On the Networks tab, click the segment name, sfo-outbound-192-168-64-0-22, configure these settings, and click Save.
Setting Example Value Network domain sfo-outbound-192-168-64-0-22 Domain sfo.rainpole.io IPv4 CIDR 192.168.64.0/22 IPv4 default gateway 192.168.64.1 DNS servers 172.16.11.4, 172.16.11.5 DNS search domains sfo.rainpole.io -
On the Networks tab, select the segment check-box, sfo-outbound-192-168-64-0-22, click Manage IP ranges, click New IP range, configure these settings, click Add, and click Close.
Setting Example Value Source Internal Name sfo-outbound-192-168-64-0-22 Description On-Demand: Network Static IP Range Start IP address 192.168.64.20 End IP address 192.168.67.250 -
Click the Network policies tab and configure these settings.
Setting Example Value Isolation policy On-demand network Transport zone overlay-tz-sfo-w01-nsx01.sfo.rainpole.io External network sfo-outbound-192-168-64-0-22 Tier-0 logical router sfo-w01-ec01-t0-gw01 Edge cluster sfo-w01-ec01 Source Internal CIDR 192.168.128.0/18 (16382 IPv4 addresses) Note The network address range must be large enough to create multiple isolated subnets in a deployment during provisioning. Subnet size /28 (~14 IP addresses) IP range assignment Static -
Click Create.
-
Repeat this procedure to create network profiles for additional accounts and regions across the VMware Cloud Foundation instances.
-
Create the network profile by using Terraform.
a. Navigate to the Terraform example in the repository.
b. Duplicate the terraform.tfvars.example file to terraform.tfvars in the directory.
c. Open the terraform.tfvars file, update the variables for your environment, and save the file.
d. If you want to add multiple network profiles in the cloud account or in additional cloud accounts, repeat steps 1.b and 1.c for each additional cloud account by duplicating the example in a different working directory.
e. Initialize the current directory and the required Terraform providers.
f. Create a Terraform plan and save the output to a file.
g. Apply the Terraform plan.
-
Apply the capability tags by using the UI.
a. Log in to the vRealize Automation cloud services console at https://****<vra_cluster_fqdn>/csp/gateway/portal with a user assigned the Cloud Assembly administrator service role.
b. On the main navigation bar, click Services.
c. Under My services, click Cloud Assembly.
d. Click the Infrastructure tab.
e. In the left pane, select Configure > Network profiles.
f. In the net-ondemand-sfo-w01-vc01 card, click Open.
g. On the Summary tab, configure the following values and click Save.
Setting Example Value Capability tags network:ondemand env:prod env:dev h. Click Save.
-
Obtain the UUID of the NSX segment,
UUID_of_sfo-outbound-192-168-64-0-22
, by using the UI.a. In the left pane, select Resources > Networks.
b. Click the network name, sfo-outbound-192-168-64-0-22, and from the URL in the Web browser, copy the value after
edit%2F
.For example, if the URL is
https://xint-vra01.rainpole.io/automation-ui/#/ provisioning-ui;ash=%2Fnetwork%2Fsubnets%2Fedit%2Fb3c69351-3db1-41dd- bfba-3c2de71fbe4f
, the UUID isb3c69351-3db1-41dd-bfba-3c2de71fbe4f
. -
Configure the network settings by using Terraform.
a. Navigate to the Terraform example in the repository.
b. Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.c. Open the
terraform.tfvars
file, update the variables for your environment, and save the file.d. Initialize the current directory and the required Terraform providers.
e. Import the network into the Terraform state by using the UUID that you obtained in step 3.
f. Create a Terraform plan and save the output to a file.
g. Apply the Terraform plan.
-
Configure the NSX Tier-0 gateway and the NSX Edge cluster on the network profile by using the UI.
a. Back in the vRealize Automation cloud services console, in the left pane, select Configure > Network profiles.
b. In the net-ondemand-sfo-w01-vc01 card, click Open.
c. Click the Network policies tab, configure these settings, and click Save.
Setting Example Value Tier-0 logical router sfo-w01-ec01-t0-gw01 Edge cluster sfo-w01-ec01
You configure type of storage for the provisioned workloads by defining a storage profile in Cloud Assembly for the specific cloud account and region.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Cloud Assembly administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Cloud Assembly.
-
Click the Infrastructure tab.
-
In the left pane, select Configure > Storage profiles.
-
On the Storage profiles page, click New storage profile, configure the settings, and click Create.
Setting Example Value Account / region sfo-w01-vc01 / sfo-w01-dc01. Name standard-sfo-w01-cl01-vsan-default. Description standard-sfo-w01-cl01-vsan-default. Disk type Standard disk Storage policy sfo-w01-cl01 vSAN Storage Policy. Datastore / cluster sfo-w01-cl01-ds-vsan01. Provisioning type Thin Shares Unspecified Limit IOPS - Disk mode Dependent Preferred storage for this region Selected Capability tags tier:platinum -
Repeat this procedure for each storage profile that you want to add for the account region.
-
Repeat this procedure for each storage profile that you want to add for each additional account region across the VMware Cloud Foundation instances.
-
Navigate to the Terraform example in the repository.
cd terraform-examples/vra/vra-storage-profile
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example terraform.tfvars
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file. -
If you want to add storage profiles for additional cloud accounts, repeat steps 2 and 3 for each additional cloud account by duplicating the example in a different working directory.
-
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan