diff options
author | 2024-12-04 09:12:26 +0100 | |
---|---|---|
committer | 2024-12-04 12:26:16 +0000 | |
commit | 57bcbde2382d82d9e21379b2e8811a5c80ab74c1 (patch) | |
tree | 419d7b518192dea0822f8cef7536758d203fa9aa /fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf | |
parent | 7022a1451be7cc76df0a362351f130de52cb6eae (diff) |
feat(infra): AWS -> Nobleoper-241202
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: I95f2945597eeacb01e04ae0b40dc2bba667dcf91
(cherry picked from commit 0ebc52457569ad77cfa5b1c322d0d28baeea9777)
(cherry picked from commit c573ac71a79bb430be3ad8d2d8e1447119dc9af0)
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf')
-rw-r--r-- | fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf | 216 |
1 files changed, 0 insertions, 216 deletions
diff --git a/fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf b/fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf deleted file mode 100644 index 3ad51afeba..0000000000 --- a/fdio.infra.terraform/terraform-aws-3n-c7gn/variables.tf +++ /dev/null @@ -1,216 +0,0 @@ -variable "vault-name" { - default = "dynamic-aws-creds-vault-fdio-csit-jenkins" -} - -variable "region" { - description = "AWS Region." - type = string - default = "eu-west-1" -} - -variable "resource_prefix" { - description = "Resources name prefix." - type = string - default = "csit-3n-c7gn" -} - -variable "testbed_name" { - description = "Testbed name." - type = string - default = "testbed1" -} - -# Variables for Private Key -variable "private_key_algorithm" { - description = "The name of the algorithm to use for the key." - type = string - default = "ED25519" -} - -# Variables for Placement Group -variable "placement_group_strategy" { - description = "The placement strategy. Can be cluster, partition or spread." - type = string - default = "cluster" -} - -# Variables for Instance -variable "tg_ami" { - description = "AMI to use for the instance." - type = string - default = "ami-0b5aa26a6e4192705" -} - -variable "tg_associate_public_ip_address" { - description = "Whether to associate a public IP address with an instance in a VPC." - type = bool - default = true -} - -variable "tg_instance_initiated_shutdown_behavior" { - description = "Shutdown behavior for the instance." - type = string - default = "terminate" -} - -variable "tg_instance_type" { - description = "The instance type to use for the instance." - type = string - default = "c6in.4xlarge" -} - -variable "tg_private_ip" { - description = "Private IP address to associate with the instance in a VPC." - type = string - default = "192.168.0.10" -} - -variable "tg_source_dest_check" { - description = "Controls if traffic is routed to the instance when the destination address does not match the instance." - type = bool - default = false -} - -variable "sut1_ami" { - description = "AMI to use for the instance." - type = string - default = "ami-08930f71bd0be1085" -} - -variable "sut1_associate_public_ip_address" { - description = "Whether to associate a public IP address with an instance in a VPC." - type = bool - default = true -} - -variable "sut1_instance_initiated_shutdown_behavior" { - description = "Shutdown behavior for the instance." - type = string - default = "terminate" -} - -variable "sut1_instance_type" { - description = "The instance type to use for the instance." - type = string - default = "c7gn.4xlarge" -} - -variable "sut1_private_ip" { - description = "Private IP address to associate with the instance in a VPC." - type = string - default = "192.168.0.11" -} - -variable "sut1_source_dest_check" { - description = "Controls if traffic is routed to the instance when the destination address does not match the instance." - type = bool - default = false -} - -variable "sut2_ami" { - description = "AMI to use for the instance." - type = string - default = "ami-08930f71bd0be1085" -} - -variable "sut2_associate_public_ip_address" { - description = "Whether to associate a public IP address with an instance in a VPC." - type = bool - default = true -} - -variable "sut2_instance_initiated_shutdown_behavior" { - description = "Shutdown behavior for the instance." - type = string - default = "terminate" -} - -variable "sut2_instance_type" { - description = "The instance type to use for the instance." - type = string - default = "c7gn.4xlarge" -} - -variable "sut2_private_ip" { - description = "Private IP address to associate with the instance in a VPC." - type = string - default = "192.168.0.12" -} - -variable "sut2_source_dest_check" { - description = "Controls if traffic is routed to the instance when the destination address does not match the instance." - type = bool - default = false -} - -# Variables for Network Interface -variable "tg_if1_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "192.168.10.254" -} - -variable "tg_if2_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "192.168.20.254" -} - -variable "destination_cidr_block_tg_if1" { - description = "The destination CIDR block." - type = string - default = "10.0.0.0/24" -} - -variable "destination_cidr_block_tg_if2" { - description = "The destination CIDR block." - type = string - default = "20.0.0.0/24" -} - -variable "sut1_if1_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "192.168.10.11" -} - -variable "sut1_if2_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "200.0.0.101" -} - -variable "sut2_if1_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "200.0.0.102" -} - -variable "sut2_if2_private_ip" { - description = "List of private IPs to assign to the ENI without regard to order." - type = string - default = "192.168.20.11" -} - -# Variables for Null Resource -variable "first_run_commands" { - description = "List of private IPs to assign to the ENI without regard to order." - type = list(string) - default = [ - "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config", - "sudo systemctl restart sshd", - "sudo useradd --create-home -s /bin/bash provisionuser", - "echo 'provisionuser:Csit1234' | sudo chpasswd", - "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers", - "sudo useradd --create-home -s /bin/bash testuser", - "echo 'testuser:Csit1234' | sudo chpasswd", - "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers" - ] -} - -# Variables for Null Resource -variable "ansible_topology_path" { - description = "Ansible topology path." - type = string - default = "../../fdio.infra.ansible/cloud_topology.yaml" -} |