diff options
author | pmikus <pmikus@cisco.com> | 2021-09-07 07:01:36 +0000 |
---|---|---|
committer | pmikus <pmikus@cisco.com> | 2021-09-07 07:01:36 +0000 |
commit | 80a4b408b1bec92f51813c5b758d7b2739f665ed (patch) | |
tree | 6f8b989ee1e2e6489bc2bde3a7e52787b252193d /fdio.infra.terraform/2n_aws_c5n/main.tf | |
parent | 16770f5d50d0e1f9f82901e19b106fc1b88c41b8 (diff) |
Terraform: Cleanup
+ Use terraform fmt to format
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I32bd2f81c5838722506d44a8ff8ab48da204643a
Diffstat (limited to 'fdio.infra.terraform/2n_aws_c5n/main.tf')
-rw-r--r-- | fdio.infra.terraform/2n_aws_c5n/main.tf | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/fdio.infra.terraform/2n_aws_c5n/main.tf b/fdio.infra.terraform/2n_aws_c5n/main.tf index 1aebabd3de..a39eff64a8 100644 --- a/fdio.infra.terraform/2n_aws_c5n/main.tf +++ b/fdio.infra.terraform/2n_aws_c5n/main.tf @@ -1,35 +1,35 @@ module "deploy" { - source = "./deploy" + source = "./deploy" # Parameters starting with var. can be set using "TF_VAR_*" environment variables # or -var parameter when running "terraform apply", for default values see ./variables.tf - testbed_name = var.testbed_name - topology_name = "2n_aws_c5n" - environment_name = "CSIT-AWS" - resources_name_prefix = "CSIT_2n_aws_c5n" + testbed_name = var.testbed_name + topology_name = "2n_aws_c5n" + environment_name = "CSIT-AWS" + resources_name_prefix = "CSIT_2n_aws_c5n" # AWS general - region = var.region - avail_zone = var.avail_zone - instance_type = var.instance_type - ami_image = var.ami_image + region = var.region + avail_zone = var.avail_zone + instance_type = var.instance_type + ami_image = var.ami_image # AWS Network - vpc_cidr_mgmt = "192.168.0.0/24" - vpc_cidr_b = "192.168.10.0/24" - vpc_cidr_c = "200.0.0.0/24" - vpc_cidr_d = "192.168.20.0/24" + vpc_cidr_mgmt = "192.168.0.0/24" + vpc_cidr_b = "192.168.10.0/24" + vpc_cidr_c = "200.0.0.0/24" + vpc_cidr_d = "192.168.20.0/24" - tg_mgmt_ip = "192.168.0.10" - dut1_mgmt_ip = "192.168.0.11" + tg_mgmt_ip = "192.168.0.10" + dut1_mgmt_ip = "192.168.0.11" - tg_if1_ip = "192.168.10.254" - tg_if2_ip = "192.168.20.254" - dut1_if1_ip = "192.168.10.11" - dut1_if2_ip = "192.168.20.11" + tg_if1_ip = "192.168.10.254" + tg_if2_ip = "192.168.20.254" + dut1_if1_ip = "192.168.10.11" + dut1_if2_ip = "192.168.20.11" - trex_dummy_cidr_port_0 = "10.0.0.0/24" - trex_dummy_cidr_port_1 = "20.0.0.0/24" + trex_dummy_cidr_port_0 = "10.0.0.0/24" + trex_dummy_cidr_port_1 = "20.0.0.0/24" # Ansible ansible_python_executable = "/usr/bin/python3" @@ -39,7 +39,7 @@ module "deploy" { # First run # TODO: Remove the testuser creation when added to user_add ansible role - first_run_commands = [ + first_run_commands = [ "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", "sudo systemctl restart sshd", "sudo useradd --create-home -s /bin/bash provisionuser", |