feat(Packer): Introduce AMI packer images
[csit.git] / fdio.infra.terraform / 3n_aws_c5n / deploy / variables.tf
1 variable "region" {
2   description = "AWS Region"
3   type        = string
4 }
5
6 variable "vault-name" {
7   default = "dynamic-aws-creds-vault-admin"
8 }
9
10 variable "ami_image_tg" {
11   description = "AWS AMI image name for TG"
12   type        = string
13 }
14
15 variable "ami_image_sut" {
16   description = "AWS AMI image name for SUT"
17   type        = string
18 }
19
20 variable "testbed_name" {
21   description = "Testbed name"
22   type        = string
23 }
24
25 variable "instance_initiated_shutdown_behavior" {
26   description = "Shutdown behavior for the instance"
27   type        = string
28   default     = "terminate"
29 }
30
31 variable "instance_type" {
32   description = "AWS instance type"
33   type        = string
34 }
35
36 variable "avail_zone" {
37   description = "AWS availability zone"
38   type        = string
39 }
40
41 variable "topology_name" {
42   description = "Prefix used when creating a topology file"
43   type        = string
44   default     = "3n_aws_c5n"
45 }
46
47 variable "environment_name" {
48   description = "Environment name - used for Environment tag"
49   type        = string
50   default     = "CSIT-AWS"
51 }
52
53 variable "resources_name_prefix" {
54   description = "Resource prefix - used for Name tag"
55   type        = string
56   default     = "CSIT_3n_aws_c5n"
57 }
58
59 variable "first_run_commands" {
60   description = "Commands to run after deployment via remote-exec"
61   type        = list(string)
62   default     = [""]
63 }
64
65 variable "ansible_file_path" {
66   description = "Path to Ansible playbook"
67   type        = string
68   default     = "../../fdio.infra.ansible/site.yaml"
69 }
70
71 variable "ansible_python_executable" {
72   description = "Path to Python interpreter"
73   type        = string
74   default     = "/usr/bin/python3"
75 }
76
77 variable "ansible_topology_path" {
78   description = "Path to Ansible playbook which creates a topology file"
79   type        = string
80   default     = "../../fdio.infra.ansible/cloud_topology.yaml"
81 }
82
83 variable "ansible_provision_pwd" {
84   description = "Password used for ansible provisioning (ansible_ssh_pass)"
85   type        = string
86   default     = "Csit1234"
87 }
88
89 # Base VPC CIDRs
90 variable "vpc_cidr_mgmt" {
91   description = "Management CIDR block"
92   type        = string
93   default     = "192.168.0.0/24"
94 }
95 variable "vpc_cidr_b" {
96   description = "CIDR block B"
97   type        = string
98   default     = "192.168.10.0/24"
99 }
100 variable "vpc_cidr_c" {
101   description = "CIDR block C"
102   type        = string
103   default     = "200.0.0.0/24"
104 }
105 variable "vpc_cidr_d" {
106   description = "CIDR block D"
107   type        = string
108   default     = "192.168.20.0/24"
109 }
110
111 # Trex Dummy CIDRs
112 variable "trex_dummy_cidr_port_0" {
113   description = "TREX dummy CIDR"
114   type        = string
115   default     = "10.0.0.0/24"
116 }
117 variable "trex_dummy_cidr_port_1" {
118   description = "TREX dummy CIDR"
119   type        = string
120   default     = "20.0.0.0/24"
121 }
122
123 # IPs
124 variable "tg_if1_ip" {
125   description = "TG IP on interface 1"
126   type        = string
127   default     = "192.168.10.254"
128 }
129 variable "tg_if2_ip" {
130   description = "TG IP on interface 2"
131   type        = string
132   default     = "192.168.20.254"
133 }
134 variable "dut1_if1_ip" {
135   description = "DUT IP on interface 1"
136   type        = string
137   default     = "192.168.10.11"
138 }
139 variable "dut1_if2_ip" {
140   description = "DUT IP on interface 2"
141   type        = string
142   default     = "200.0.0.101"
143 }
144 variable "dut2_if1_ip" {
145   description = "DUT2 IP on interface 1"
146   type        = string
147   default     = "200.0.0.102"
148 }
149 variable "dut2_if2_ip" {
150   description = "DUT2 IP on interface 2"
151   type        = string
152   default     = "192.168.20.11"
153 }
154 variable "tg_mgmt_ip" {
155   description = "TG management interface IP"
156   type        = string
157   default     = "192.168.0.10"
158 }
159 variable "dut1_mgmt_ip" {
160   description = "DUT1 management interface IP"
161   type        = string
162   default     = "192.168.0.11"
163 }
164 variable "dut2_mgmt_ip" {
165   description = "DUT2 management interface IP"
166   type        = string
167   default     = "192.168.0.12"
168 }