generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3617ce3
commit e6ed76a
Showing
17 changed files
with
729 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Network Edge VMWare Velocloud SDWAN HA Device Example | ||
|
||
This example demonstrates creation of Network Edge VMWare Velocloud SDWAN HA device. It will: | ||
|
||
- Create a ACL template | ||
- Provision VMWare Velocloud SDWAN HA device | ||
|
||
## Usage | ||
|
||
To provision this example, you should clone the github repository and run terraform from within this directory: | ||
|
||
```bash | ||
git clone https://github.com/equinix/terraform-equinix-network-edge.git | ||
cd terraform-equinix-network-edge/examples/vmware-sdwan-ha | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run 'terraform destroy' when you don't need these | ||
resources. | ||
|
||
<!-- TEMPLATE: The following block has been generated by terraform-docs util: https://github.com/terraform-docs/terraform-docs --> | ||
<!-- BEGIN_TF_DOCS --> | ||
|
||
## Requirements | ||
|
||
| Name | Version | | ||
|---------------------------------------------------------------------------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 | | ||
| <a name="requirement_equinix"></a> [equinix](#requirement\_equinix) | >= 1.34 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|---------------------------------------------------------------|---------| | ||
| <a name="provider_equinix"></a> [equinix](#provider\_equinix) | >= 1.34 | | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|-----------------------------------------------------------------------------------|----------------------------------|---------| | ||
| <a name="module_velocloud_sdwan"></a> [velocloud-sdwan](#module\_velocloud-sdwan) | ../../../modules/velocloud-sdwan | n/a | | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------| | ||
| [equinix_network_acl_template.velocloud_sdwan_pri](https://registry.terraform.io/providers/equinix/equinix/latest/docs/resources/equinix_network_acl_template) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------|:--------:| | ||
| <a name="input_equinix_client_id"></a> [equinix\_client\_id](#input\_equinix\_client\_id) | API Consumer Key available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX\_API\_CLIENTID shell environment variable. | `string` | n/a | yes | | ||
| <a name="input_equinix_client_secret"></a> [equinix\_client\_secret](#input\_equinix\_client\_secret) | API Consumer secret available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX\_API\_CLIENTSECRET shell environment variable. | `string` | n/a | yes | | ||
| <a name="input_metro_code_primary"></a> [metro\_code\_primary](#input\_metro\_code\_primary) | Device location metro code for primary | `string` | n/a | yes | | ||
| <a name="input_metro_code_secondary"></a> [metro\_code\_primary](#input\_metro\_code\_secondary) | Device location metro code for secondary | `string` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|----------------------------------------------------------------------------------|------------------------| | ||
| <a name="output_device_details"></a> [device\_details](#output\_device\_details) | Virtual device details | | ||
|
||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
provider "equinix" { | ||
client_id = var.equinix_client_id | ||
client_secret = var.equinix_client_secret | ||
} | ||
|
||
module "vmware_sdwan_ha" { | ||
source = "../../modules/velocloud-sdwan" | ||
name = "tf-vmware-sdwan" | ||
metro_code = var.metro_code_primary | ||
platform = "small" | ||
account_number = "123456" | ||
project_id = "e6be59d9-62c0-4140-aad6-150f0700203c" | ||
software_package = "VMware-2" | ||
version_number = "4.3.0" | ||
term_length = 1 | ||
notifications = ["[email protected]"] | ||
additional_bandwidth = 100 | ||
acl_template_id = equinix_network_acl_template.velocloud_sdwan_pri.id | ||
vendor_configuration = { | ||
activationKey = "xxxx-xxxx-xxxx-xxxx" | ||
controllerFqdn = "test.test.test" | ||
rootPassword = "xxxxxxxxxxx" | ||
} | ||
secondary = { | ||
enabled = true | ||
metro_code = var.metro_code_secondary | ||
account_number = "123456" | ||
name = "custom-secondary-name" | ||
additional_bandwidth = 100 | ||
acl_template_id = equinix_network_acl_template.velocloud_sdwan_sec.id | ||
vendor_configuration = { | ||
activationKey = "xxxx-xxxx-xxxx-xxxx" | ||
controllerFqdn = "test.test.test" | ||
rootPassword = "xxxxxxxxxxxx" | ||
} | ||
} | ||
} | ||
|
||
resource "equinix_network_acl_template" "velocloud_sdwan_pri" { | ||
name = "tf-velocloud-sdwan-pri" | ||
description = "Primary velocloud sdwan ACL template" | ||
project_id = "e6be59d9-62c0-4140-aad6-150f0700203c" | ||
inbound_rule { | ||
subnet = "12.16.103.0/24" | ||
protocol = "TCP" | ||
src_port = "any" | ||
dst_port = "22" | ||
} | ||
} | ||
|
||
resource "equinix_network_acl_template" "velocloud_sdwan_sec" { | ||
name = "tf-velocloud-sdwan-sec" | ||
description = "Secondary VMWare SD-WAN ACL template" | ||
inbound_rule { | ||
subnet = "193.39.0.0/16" | ||
protocol = "TCP" | ||
src_port = "any" | ||
dst_port = "22" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "device_details" { | ||
description = "Virtual device details" | ||
value = module.vmware_sdwan_ha | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
variable "equinix_client_id" { | ||
type = string | ||
description = "API Consumer Key available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX_API_CLIENTID shell environment variable." | ||
} | ||
|
||
variable "equinix_client_secret" { | ||
type = string | ||
description = "API Consumer secret available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX_API_CLIENTSECRET shell environment variable." | ||
} | ||
|
||
variable "metro_code_primary" { | ||
description = "Device location metro code" | ||
type = string | ||
} | ||
|
||
variable "metro_code_secondary" { | ||
description = "Device location metro code" | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_version = ">= 1.3" | ||
required_providers { | ||
equinix = { | ||
source = "equinix/equinix" | ||
version = ">= 1.34" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Network Edge VMWare Velocloud SDWAN Single Device Example | ||
|
||
This example demonstrates creation of Network Edge VMWare Velocloud SDWAN Single device. It will: | ||
|
||
- Create a ACL template | ||
- Provision VMWare Velocloud SDWAN Single device | ||
|
||
## Usage | ||
|
||
To provision this example, you should clone the github repository and run terraform from within this directory: | ||
|
||
```bash | ||
git clone https://github.com/equinix/terraform-equinix-network-edge.git | ||
cd terraform-equinix-network-edge/examples/vmware-sdwan-single | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run 'terraform destroy' when you don't need these | ||
resources. | ||
|
||
<!-- TEMPLATE: The following block has been generated by terraform-docs util: https://github.com/terraform-docs/terraform-docs --> | ||
<!-- BEGIN_TF_DOCS --> | ||
|
||
## Requirements | ||
|
||
| Name | Version | | ||
|---------------------------------------------------------------------------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 | | ||
| <a name="requirement_equinix"></a> [equinix](#requirement\_equinix) | >= 1.34 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|---------------------------------------------------------------|---------| | ||
| <a name="provider_equinix"></a> [equinix](#provider\_equinix) | >= 1.34 | | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|-----------------------------------------------------------------------------------|----------------------------------|---------| | ||
| <a name="module_velocloud-sdwan"></a> [velocloud-sdwan](#module\_velocloud-sdwan) | ../../../modules/velocloud-sdwan | n/a | | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------| | ||
| [equinix_network_acl_template.velocloud_sdwan_pri](https://registry.terraform.io/providers/equinix/equinix/latest/docs/resources/equinix_network_acl_template) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------|:--------:| | ||
| <a name="input_equinix_client_id"></a> [equinix\_client\_id](#input\_equinix\_client\_id) | API Consumer Key available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX\_API\_CLIENTID shell environment variable. | `string` | n/a | yes | | ||
| <a name="input_equinix_client_secret"></a> [equinix\_client\_secret](#input\_equinix\_client\_secret) | API Consumer secret available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX\_API\_CLIENTSECRET shell environment variable. | `string` | n/a | yes | | ||
| <a name="input_metro_code_primary"></a> [metro\_code\_primary](#input\_metro\_code\_primary) | Device location metro code | `string` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|----------------------------------------------------------------------------------|------------------------| | ||
| <a name="output_device_details"></a> [device\_details](#output\_device\_details) | Virtual device details | | ||
|
||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
provider "equinix" { | ||
client_id = var.equinix_client_id | ||
client_secret = var.equinix_client_secret | ||
} | ||
|
||
module "vmware_sdwan_single" { | ||
source = "../../modules/velocloud-sdwan" | ||
name = "tf-vmware-sdwan" | ||
account_number = "123456" | ||
project_id = "e6be59d9-62c0-4140-aad6-150f0700203c" | ||
metro_code = var.metro_code_primary | ||
platform = "small" | ||
version_number = "4.3.0" | ||
software_package = "VMware-2" | ||
term_length = 1 | ||
notifications = ["[email protected]"] | ||
additional_bandwidth = 100 | ||
acl_template_id = equinix_network_acl_template.velocloud_sdwan_pri.id | ||
vendor_configuration = { | ||
activationKey = "xxxxx-xxxx-xxxx-xxxx" | ||
controllerFqdn = "test.test.test" | ||
rootPassword = "xxxxxxxxxxxx" | ||
} | ||
} | ||
|
||
resource "equinix_network_acl_template" "velocloud_sdwan_pri" { | ||
name = "tf-velocloud-sdwan-pri" | ||
description = "Primary velocloud sdwan ACL template" | ||
project_id = "e6be59d9-62c0-4140-aad6-150f0700203c" | ||
inbound_rule { | ||
subnet = "12.16.103.0/24" | ||
protocol = "TCP" | ||
src_port = "any" | ||
dst_port = "22" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "device_details" { | ||
description = "Virtual device details" | ||
value = module.vmware_sdwan_single | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
variable "equinix_client_id" { | ||
type = string | ||
description = "API Consumer Key available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX_API_CLIENTID shell environment variable." | ||
} | ||
|
||
variable "equinix_client_secret" { | ||
type = string | ||
description = "API Consumer secret available under 'My Apps' in developer portal. This argument can also be specified with the EQUINIX_API_CLIENTSECRET shell environment variable." | ||
} | ||
|
||
variable "metro_code_primary" { | ||
description = "Device location metro code" | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_version = ">= 1.3" | ||
required_providers { | ||
equinix = { | ||
source = "equinix/equinix" | ||
version = ">= 1.34" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.