Skip to content

Commit 8dc113b

Browse files
authored
Merge pull request #4 from Keysight/cloud
Terraform Contributions from Keysight Cloud IST
2 parents e2070fc + 7b0e406 commit 8dc113b

File tree

79 files changed

+1760
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1760
-6
lines changed

aws/Deployment/Terraform/BPS/BPS-on-AWS-1-App-1-Agent-1-VPC-1-Public-Subnet-1-Private-Subnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates a topology with a single virtual private cloud having a
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables

aws/Deployment/Terraform/BPS/BPS-on-AWS-1-App-1-Agent-1-VPC-1-Public-Subnet-2-Private-Subnets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates a topology with a single virtual private cloud having a
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables

aws/Deployment/Terraform/BPS/BPS-on-AWS-1-App-1-Agent-Add-On/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates resources that will be attached to an existing network t
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables

aws/Deployment/Terraform/NP/BPS-on-AWS-1-Agent-1-VPC-1-Public-Subnet-1-Private-Subnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates a topology with a single virtual private cloud having a
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables

aws/Deployment/Terraform/NP/BPS-on-AWS-1-Agent-1-VPC-1-Public-Subnet-2-Private-Subnets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates a topology with a single virtual private cloud having a
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables

aws/Deployment/Terraform/NP/BPS-on-AWS-1-Agent-Add-On/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This deployment creates resources that will be attached to an existing network t
77
```
88
terraform.required.auto.tfvars
99
```
10-
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
1111
Otherwise, Terraform will prompt the user to supply input arguents via cli.
1212

1313
## Optional Variables
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# BPS-on-Azure-1-App-1-Agent-1-Vnet-1-Public-Subnet-1-Private-Subnet
2+
3+
## Description
4+
This deployment creates a topology with a single virtual network having a single public facing subnet and a single private subnet.
5+
6+
## Required Variables
7+
```
8+
terraform.required.auto.tfvars
9+
```
10+
You **MUST** uncomment all lines in this file and replace values to match your particular environment.
11+
Otherwise, Terraform will prompt the user to supply input arguents via cli.
12+
13+
## Optional Variables
14+
```
15+
terraform.optional.auto.tfvars
16+
```
17+
You **MAY** uncomment one or more lines as needed in this file and replace values to match your particular environment.
18+
19+
## Required Usage
20+
```
21+
terraform init
22+
terraform apply -auto-approve
23+
terraform destroy -auto-approve
24+
```
25+
26+
## Optional Usage
27+
```
28+
terraform validate
29+
terraform plan
30+
terraform state list
31+
terraform output
32+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "azurerm_subscription" "current" {}
2+
3+
data "azurerm_subscriptions" "available" {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
locals {
2+
AgentVmSize = var.AgentVmSize
3+
Agent1Eth2IpAddresses = [ "10.0.2.22", "10.0.2.23", "10.0.2.24", "10.0.2.25", "10.0.2.26", "10.0.2.27", "10.0.2.28", "10.0.2.29", "10.0.2.30", "10.0.2.31" ]
4+
Agent1InstanceId = "agent1"
5+
AppTag = "bps"
6+
AppVmSize = var.AppVmSize
7+
PublicSecurityRuleSourceIpPrefixes = var.PublicSecurityRuleSourceIpPrefixes
8+
ResourceGroupLocation = var.ResourceGroupLocation
9+
ResourceGroupName = var.ResourceGroupName
10+
SharedImageGalleryName = var.SharedImageGalleryName
11+
SharedImageGalleryResourceGroupName = var.SharedImageGalleryResourceGroupName
12+
SubscriptionId = var.SubscriptionId
13+
UserEmailTag = var.UserEmailTag
14+
UserLoginTag = var.UserLoginTag
15+
UserProjectTag = var.UserProjectTag
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module "App" {
2+
source = "armdupre/module-bps-app/azurerm"
3+
version = "10.0.1"
4+
Eth0SubnetId = module.Vnet.PublicSubnet.id
5+
ResourceGroupLocation = azurerm_resource_group.ResourceGroup.location
6+
ResourceGroupName = azurerm_resource_group.ResourceGroup.name
7+
SharedImageGalleryName = local.SharedImageGalleryName
8+
SharedImageGalleryResourceGroupName = local.SharedImageGalleryResourceGroupName
9+
UserEmailTag = local.UserEmailTag
10+
UserLoginTag = local.UserLoginTag
11+
UserProjectTag = local.UserProjectTag
12+
VmSize = local.AppVmSize
13+
depends_on = [
14+
module.Agent1,
15+
module.Vnet
16+
]
17+
}
18+
19+
module "Agent1" {
20+
source = "armdupre/module-bps-agent/azurerm"
21+
version = "10.0.1"
22+
Eth0SubnetId = module.Vnet.PublicSubnet.id
23+
Eth1SubnetId = module.Vnet.PrivateSubnet.id
24+
Eth2IpAddresses = local.Agent1Eth2IpAddresses
25+
Eth2SubnetId = module.Vnet.PrivateSubnet.id
26+
InstanceId = local.Agent1InstanceId
27+
ResourceGroupLocation = azurerm_resource_group.ResourceGroup.location
28+
ResourceGroupName = azurerm_resource_group.ResourceGroup.name
29+
SharedImageGalleryName = local.SharedImageGalleryName
30+
SharedImageGalleryResourceGroupName = local.SharedImageGalleryResourceGroupName
31+
UserEmailTag = local.UserEmailTag
32+
UserLoginTag = local.UserLoginTag
33+
UserProjectTag = local.UserProjectTag
34+
VmSize = local.AgentVmSize
35+
depends_on = [
36+
module.Vnet
37+
]
38+
}
39+
40+
resource "azurerm_resource_group" "ResourceGroup" {
41+
name = local.ResourceGroupName
42+
location = local.ResourceGroupLocation
43+
}

0 commit comments

Comments
 (0)