Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Fink <finken@us.ibm.com>
  • Loading branch information
finken2 committed Nov 17, 2023
1 parent 2d9a5b9 commit e6627b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/satellite-vmware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This module is meant for use with Terraform 1.1.9 or later.


## Required environment data
The tables below outline the information to gather from your environment before filling out the terraform variable values.
The tables below outline the information to gather from your environment before filling out the terraform variable values.

Required to connect to the VMware Cloud Director environment:
| Name | Description | Example
Expand All @@ -41,7 +41,7 @@ Used within the VMware environment when configuring the Virtual Machines and net
rhcos_template_id | The ID of the RHCOS 4.12+ template to be used when provisioning the virtual machines | 158d698b-7498-4038-b48d-70665115f4ea |
dhcp_network_name | The name of the network pre-configured for the environment | my-network |
vdc_edge_gateway_name | The name of the edge network configured in the environment. This may not be needed in all applications, but if provided, firewall rules and NAT setup will take place | edge-dal10-12345678 |

Other input information can be found in variables.tf TODO: link this

## Networking configuration
Expand Down
12 changes: 6 additions & 6 deletions examples/satellite-vmware/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ module "satellite-location" {

# Used to obtain information from the already deployed Edge Gateway and network
module "ibm_vmware_solutions_shared_instance" {
source = "./modules/ibm-vmware-solutions-shared-instance/"
count = var.vdc_edge_gateway_name != null ? 1 : 0
source = "./modules/ibm-vmware-solutions-shared-instance/"
count = var.vdc_edge_gateway_name != null ? 1 : 0
vdc_edge_gateway_name = var.vdc_edge_gateway_name
network_name = var.dhcp_network_name
}

# Create the firewall rule to access the Internet
resource "vcd_nsxv_firewall_rule" "rule_internet" {
count = var.vdc_edge_gateway_name != null ? 1 : 0
count = var.vdc_edge_gateway_name != null ? 1 : 0
edge_gateway = module.ibm_vmware_solutions_shared_instance[0].edge_gateway_name
name = "${var.dhcp_network_name}-Internet"

Expand All @@ -64,7 +64,7 @@ resource "vcd_nsxv_firewall_rule" "rule_internet" {

# Create SNAT rule to access the Internet
resource "vcd_nsxv_snat" "rule_internet" {
count = var.vdc_edge_gateway_name != null ? 1 : 0
count = var.vdc_edge_gateway_name != null ? 1 : 0
edge_gateway = module.ibm_vmware_solutions_shared_instance[0].edge_gateway_name
network_type = "ext"
network_name = module.ibm_vmware_solutions_shared_instance[0].external_network_name_2
Expand Down Expand Up @@ -98,7 +98,7 @@ resource "vcd_nsxv_firewall_rule" "rule_internet_ssh" {

# Create the firewall to access IBM Cloud services over the IBM Cloud private network
resource "vcd_nsxv_firewall_rule" "rule_ibm_private" {
count = var.vdc_edge_gateway_name != null ? 1 : 0
count = var.vdc_edge_gateway_name != null ? 1 : 0
edge_gateway = module.ibm_vmware_solutions_shared_instance[0].edge_gateway_name
name = "${var.dhcp_network_name}-IBM-Private"

Expand All @@ -120,7 +120,7 @@ resource "vcd_nsxv_firewall_rule" "rule_ibm_private" {

# Create SNAT rule to access the IBM Cloud services over a private network
resource "vcd_nsxv_snat" "rule_ibm_private" {
count = var.vdc_edge_gateway_name != null ? 1 : 0
count = var.vdc_edge_gateway_name != null ? 1 : 0
edge_gateway = module.ibm_vmware_solutions_shared_instance[0].edge_gateway_name
network_type = "ext"
network_name = module.ibm_vmware_solutions_shared_instance[0].external_network_name_1
Expand Down

0 comments on commit e6627b0

Please sign in to comment.