fix(packer): AWS images
[csit.git] / fdio.infra.terraform / terraform-aws-3n-aws-c5n / variables.tf
1 variable "vault-name" {
2   default = "dynamic-aws-creds-vault-fdio-csit-jenkins"
3 }
4
5 variable "region" {
6   description = "AWS Region."
7   type        = string
8   default     = "eu-central-1"
9 }
10
11 variable "resource_prefix" {
12   description = "Resources name prefix."
13   type        = string
14   default     = "csit-2n-aws-c5n"
15 }
16
17 variable "testbed_name" {
18   description = "Testbed name."
19   type        = string
20   default     = "testbed1"
21 }
22
23 # Variables for Private Key
24 variable "private_key_algorithm" {
25   description = "The name of the algorithm to use for the key."
26   type        = string
27   default     = "ED25519"
28 }
29
30 # Variables for Placement Group
31 variable "placement_group_strategy" {
32   description = "The placement strategy. Can be cluster, partition or spread."
33   type        = string
34   default     = "cluster"
35 }
36
37 # Variables for Instance
38 variable "tg_ami" {
39   description = "AMI to use for the instance."
40   type        = string
41   default     = "ami-095fecdfcd0bf387d"
42 }
43
44 variable "tg_associate_public_ip_address" {
45   description = "Whether to associate a public IP address with an instance in a VPC."
46   type        = bool
47   default     = true
48 }
49
50 variable "tg_instance_initiated_shutdown_behavior" {
51   description = "Shutdown behavior for the instance."
52   type        = string
53   default     = "terminate"
54 }
55
56 variable "tg_instance_type" {
57   description = "The instance type to use for the instance."
58   type        = string
59   default     = "c5n.4xlarge"
60 }
61
62 variable "tg_private_ip" {
63   description = "Private IP address to associate with the instance in a VPC."
64   type        = string
65   default     = "192.168.0.10"
66 }
67
68 variable "tg_source_dest_check" {
69   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
70   type        = bool
71   default     = false
72 }
73
74 variable "sut1_ami" {
75   description = "AMI to use for the instance."
76   type        = string
77   default     = "ami-0b6ae87e32b40fb1b"
78 }
79
80 variable "sut1_associate_public_ip_address" {
81   description = "Whether to associate a public IP address with an instance in a VPC."
82   type        = bool
83   default     = true
84 }
85
86 variable "sut1_instance_initiated_shutdown_behavior" {
87   description = "Shutdown behavior for the instance."
88   type        = string
89   default     = "terminate"
90 }
91
92 variable "sut1_instance_type" {
93   description = "The instance type to use for the instance."
94   type        = string
95   default     = "c5n.4xlarge"
96 }
97
98 variable "sut1_private_ip" {
99   description = "Private IP address to associate with the instance in a VPC."
100   type        = string
101   default     = "192.168.0.11"
102 }
103
104 variable "sut1_source_dest_check" {
105   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
106   type        = bool
107   default     = false
108 }
109
110 variable "sut2_ami" {
111   description = "AMI to use for the instance."
112   type        = string
113   default     = "ami-07898402cb1fd6561"
114 }
115
116 variable "sut2_associate_public_ip_address" {
117   description = "Whether to associate a public IP address with an instance in a VPC."
118   type        = bool
119   default     = true
120 }
121
122 variable "sut2_instance_initiated_shutdown_behavior" {
123   description = "Shutdown behavior for the instance."
124   type        = string
125   default     = "terminate"
126 }
127
128 variable "sut2_instance_type" {
129   description = "The instance type to use for the instance."
130   type        = string
131   default     = "c5n.4xlarge"
132 }
133
134 variable "sut2_private_ip" {
135   description = "Private IP address to associate with the instance in a VPC."
136   type        = string
137   default     = "192.168.0.12"
138 }
139
140 variable "sut2_source_dest_check" {
141   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
142   type        = bool
143   default     = false
144 }
145
146 # Variables for Network Interface
147 variable "tg_if1_private_ip" {
148   description = "List of private IPs to assign to the ENI without regard to order."
149   type        = string
150   default     = "192.168.10.254"
151 }
152
153 variable "tg_if2_private_ip" {
154   description = "List of private IPs to assign to the ENI without regard to order."
155   type        = string
156   default     = "192.168.20.254"
157 }
158
159 variable "destination_cidr_block_tg_if1" {
160   description = "The destination CIDR block."
161   type        = string
162   default     = "10.0.0.0/24"
163 }
164
165 variable "destination_cidr_block_tg_if2" {
166   description = "The destination CIDR block."
167   type        = string
168   default     = "20.0.0.0/24"
169 }
170
171 variable "sut1_if1_private_ip" {
172   description = "List of private IPs to assign to the ENI without regard to order."
173   type        = string
174   default     = "192.168.10.11"
175 }
176
177 variable "sut1_if2_private_ip" {
178   description = "List of private IPs to assign to the ENI without regard to order."
179   type        = string
180   default     = "200.0.0.101"
181 }
182
183 variable "sut2_if1_private_ip" {
184   description = "List of private IPs to assign to the ENI without regard to order."
185   type        = string
186   default     = "200.0.0.102"
187 }
188
189 variable "sut2_if2_private_ip" {
190   description = "List of private IPs to assign to the ENI without regard to order."
191   type        = string
192   default     = "192.168.20.11"
193 }
194
195 # Variables for Null Resource
196 variable "first_run_commands" {
197   description = "List of private IPs to assign to the ENI without regard to order."
198   type        = list(string)
199   default = [
200     "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
201     "sudo systemctl restart sshd",
202     "sudo useradd --create-home -s /bin/bash provisionuser",
203     "echo 'provisionuser:Csit1234' | sudo chpasswd",
204     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
205     "sudo useradd --create-home -s /bin/bash testuser",
206     "echo 'testuser:Csit1234' | sudo chpasswd",
207     "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
208   ]
209 }
210
211 # Variables for Null Resource
212 variable "ansible_topology_path" {
213   description = "Ansible topology path."
214   type        = string
215   default     = "../../fdio.infra.ansible/cloud_topology.yaml"
216 }