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