-
Notifications
You must be signed in to change notification settings - Fork 1
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
fmunoz
committed
Aug 4, 2022
1 parent
6966617
commit fe9428a
Showing
13 changed files
with
428 additions
and
24 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,28 @@ | ||
# ISE Deployment with ISE Network creation | ||
|
||
## Usage | ||
|
||
To run this example you need to execute: | ||
|
||
```bash | ||
$ terraform init | ||
$ terraform plan -var-file "azure.tfvars" | ||
$ terraform apply -var-file "azure.tfvars" | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run `terraform destroy -var-file "azure.tfvars"` when you don't need these resources. | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 | | ||
| <a name="requirement_azure"></a> [azure](#requirement\_azure) | >= 3.11.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_azure"></a> [azure](#provider\_azure) | >= 3.11.0 | | ||
|
22 changes: 22 additions & 0 deletions
22
examples/ise-deployment-with-network-creation/azure.tfvars
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,22 @@ | ||
azure_resource_group_name = "TERRAFORM-TEST-3" | ||
azure_resource_group_location = "South Central US" | ||
azure_virtual_network_name = "TERRAFORM-VNET" | ||
azure_virtual_network_address_space = ["10.1.0.0/16", "172.100.0.0/16"] | ||
azure_virtual_network_dns_servers = ["127.0.0.1", "127.0.0.2"] | ||
azure_subnet_name = "TERRAFORM-VSUBNET-2" | ||
azure_subnet_address_prefixes = ["10.1.0.0/24"] | ||
azure_network_security_group_name = "TERRAFORM-SECURITY-2" | ||
ise_username = "adminIse" | ||
ise_password = "*********" | ||
ise_deployment = "large_deployment" // This can be (single_node, small_deployment, medium_deployment, large_deployment) | ||
ise_psn_instances = 4 | ||
ise_base_hostname = "ISE-32" | ||
ise_dns_server = "208.67.220.220" | ||
ise_domain = "sstcloud.com" | ||
ise_ntp_server = "10.10.0.1" | ||
ise_timezone = "America/Costa_Rica" | ||
source_image_id = "/subscriptions/80c00b4f-3c6e-4eb2-bf09-8ad725a2e1ac/resourceGroups/CLOUD-SHELL-STORAGE-SOUTHCENTRALUS/providers/Microsoft.Compute/images/ise-3.2" | ||
create_resource_group = true | ||
create_virtual_network = true | ||
create_security_group = true | ||
create_subnet = true |
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,26 @@ | ||
module "ise-deployment" { | ||
source = "fmunozmiranda/ise-deployment/azure" | ||
version = "1.0.0" | ||
azure_resource_group_name = var.azure_resource_group_name | ||
azure_resource_group_location = var.azure_resource_group_location | ||
azure_virtual_network_name = var.azure_virtual_network_name | ||
azure_virtual_network_address_space = var.azure_virtual_network_address_space | ||
azure_virtual_network_dns_servers = var.azure_virtual_network_dns_servers | ||
azure_subnet_name = var.azure_subnet_name | ||
azure_subnet_address_prefixes = var.azure_subnet_address_prefixes | ||
azure_network_security_group_name = var.azure_network_security_group_name | ||
ise_username = var.ise_username | ||
ise_password = var.ise_password | ||
ise_deployment = var.ise_deployment | ||
ise_psn_instances = var.ise_psn_instances | ||
ise_base_hostname = var.ise_base_hostname | ||
ise_dns_server = var.ise_dns_server | ||
ise_domain = var.ise_domain | ||
ise_ntp_server = var.ise_ntp_server | ||
ise_timezone = var.ise_timezone | ||
source_image_id = var.source_image_id | ||
create_resource_group = var.create_resource_group | ||
create_virtual_network = var.create_virtual_network | ||
create_security_group = var.create_security_group | ||
create_subnet = var.create_subnet | ||
} |
118 changes: 118 additions & 0 deletions
118
examples/ise-deployment-with-network-creation/variables.tf
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,118 @@ | ||
variable "azure_resource_group_name" { | ||
type = string | ||
description = "Azure Resource Group Name" | ||
} | ||
|
||
variable "azure_resource_group_location" { | ||
type = string | ||
description = "Azure Resource Location" | ||
} | ||
|
||
variable "azure_virtual_network_name" { | ||
type = string | ||
description = "Azure Virtual Network Name For ISE." | ||
} | ||
|
||
variable "azure_virtual_network_address_space" { | ||
type = list(string) //["10.1.0.0/16","172.100.0.0/16"] | ||
description = "Azure Virtual Network Adress Space For ISE." | ||
} | ||
|
||
variable "azure_virtual_network_dns_servers" { | ||
type = list(string) | ||
description = "Azure Virtual Network DNS Servers For ISE." | ||
} | ||
|
||
variable "azure_subnet_name" { | ||
type = string | ||
description = "Azure Subnet Network Name For ISE." | ||
} | ||
|
||
variable "azure_subnet_address_prefixes" { | ||
type = list(string) //["10.1.2.0/24"] | ||
description = "Azure Subnet Address Prefixes For ISE." | ||
} | ||
|
||
variable "azure_network_security_group_name" { | ||
type = string | ||
description = "Azure Network Security Group Name For ISE." | ||
} | ||
|
||
variable "ise_username" { | ||
type = string | ||
description = "ISE Username." | ||
} | ||
|
||
variable "ise_password" { | ||
type = string | ||
description = "ISE Password." | ||
} | ||
|
||
variable "ise_deployment" { | ||
type = string | ||
validation { | ||
condition = var.ise_deployment == "single_node" || var.ise_deployment == "small_deployment" || var.ise_deployment == "medium_deployment" || var.ise_deployment == "large_deployment" | ||
error_message = "The ise_deployment value must be a some of values : (single_node, small_deployment, medium_deployment, large_deployment)." | ||
} | ||
description = "ISE Type Deployment, it should be one of: (single_node, small_deployment, medium_deployment, large_deployment)." | ||
} | ||
|
||
variable "ise_psn_instances" { | ||
type = number | ||
description = "ISE PSN Instances." | ||
default = 0 | ||
} | ||
|
||
variable "ise_base_hostname" { | ||
type = string | ||
description = "ISE Base Hostname." | ||
} | ||
|
||
variable "create_resource_group" { | ||
type = bool | ||
default = true | ||
description = "Determines to create or not a new Resource Group." | ||
} | ||
|
||
variable "create_virtual_network" { | ||
type = bool | ||
default = true | ||
description = "Determines to create or not a new Virtual Network." | ||
} | ||
|
||
variable "create_security_group" { | ||
type = bool | ||
default = true | ||
description = "Determines to create or not a new Security Group." | ||
} | ||
|
||
variable "create_subnet" { | ||
type = bool | ||
default = true | ||
description = "Determines to create or not a new Subnet." | ||
} | ||
|
||
variable "ise_ntp_server" { | ||
description = "ISE Server NTP" | ||
type = string | ||
} | ||
|
||
variable "ise_dns_server" { | ||
description = "ISE Server DNS" | ||
type = string | ||
} | ||
|
||
variable "ise_domain" { | ||
description = "ISE Server Domain" | ||
type = string | ||
} | ||
|
||
variable "ise_timezone" { | ||
description = "ISE Server Timezone" | ||
type = string | ||
} | ||
|
||
variable "source_image_id" { | ||
description = "ISE Source Image Id" | ||
type = string | ||
} |
28 changes: 28 additions & 0 deletions
28
examples/ise-deployment-with-no-network-creation/README.md
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,28 @@ | ||
# ISE Deployment with No ISE Network creation | ||
|
||
## Usage | ||
|
||
To run this example you need to execute: | ||
|
||
```bash | ||
$ terraform init | ||
$ terraform plan -var-file "azure.tfvars" | ||
$ terraform apply -var-file "azure.tfvars" | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run `terraform destroy -var-file "azure.tfvars"` when you don't need these resources. | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 | | ||
| <a name="requirement_azure"></a> [azure](#requirement\_azure) | >= 3.11.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_azure"></a> [azure](#provider\_azure) | >= 3.11.0 | | ||
|
22 changes: 22 additions & 0 deletions
22
examples/ise-deployment-with-no-network-creation/azure.tfvars
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,22 @@ | ||
azure_resource_group_name = "TERRAFORM-TEST-3" | ||
azure_resource_group_location = "South Central US" | ||
azure_virtual_network_name = "TERRAFORM-VNET" | ||
azure_virtual_network_address_space = ["10.1.0.0/16", "172.100.0.0/16"] | ||
azure_virtual_network_dns_servers = ["127.0.0.1", "127.0.0.2"] | ||
azure_subnet_name = "TERRAFORM-VSUBNET-2" | ||
azure_subnet_address_prefixes = ["10.1.0.0/24"] | ||
azure_network_security_group_name = "TERRAFORM-SECURITY-2" | ||
ise_username = "adminIse" | ||
ise_password = "*********" | ||
ise_deployment = "large_deployment" // This can be (single_node, small_deployment, medium_deployment, large_deployment) | ||
ise_psn_instances = 4 | ||
ise_base_hostname = "ISE-32" | ||
ise_dns_server = "208.67.220.220" | ||
ise_domain = "sstcloud.com" | ||
ise_ntp_server = "10.10.0.1" | ||
ise_timezone = "America/Costa_Rica" | ||
source_image_id = "/subscriptions/80c00b4f-3c6e-4eb2-bf09-8ad725a2e1ac/resourceGroups/CLOUD-SHELL-STORAGE-SOUTHCENTRALUS/providers/Microsoft.Compute/images/ise-3.2" | ||
create_resource_group = false | ||
create_virtual_network = false | ||
create_security_group = false | ||
create_subnet = false |
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,26 @@ | ||
module "ise-deployment" { | ||
source = "fmunozmiranda/ise-deployment/azure" | ||
version = "1.0.0" | ||
azure_resource_group_name = var.azure_resource_group_name | ||
azure_resource_group_location = var.azure_resource_group_location | ||
azure_virtual_network_name = var.azure_virtual_network_name | ||
azure_virtual_network_address_space = var.azure_virtual_network_address_space | ||
azure_virtual_network_dns_servers = var.azure_virtual_network_dns_servers | ||
azure_subnet_name = var.azure_subnet_name | ||
azure_subnet_address_prefixes = var.azure_subnet_address_prefixes | ||
azure_network_security_group_name = var.azure_network_security_group_name | ||
ise_username = var.ise_username | ||
ise_password = var.ise_password | ||
ise_deployment = var.ise_deployment | ||
ise_psn_instances = var.ise_psn_instances | ||
ise_base_hostname = var.ise_base_hostname | ||
ise_dns_server = var.ise_dns_server | ||
ise_domain = var.ise_domain | ||
ise_ntp_server = var.ise_ntp_server | ||
ise_timezone = var.ise_timezone | ||
source_image_id = var.source_image_id | ||
create_resource_group = var.create_resource_group | ||
create_virtual_network = var.create_virtual_network | ||
create_security_group = var.create_security_group | ||
create_subnet = var.create_subnet | ||
} |
Oops, something went wrong.