aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/2n_aws_c5n/deploy/variables.tf
blob: 57c5b69f8e50098889780940438583040193699f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
variable "region" {
  description = "AWS Region"
  type        = string
}

variable "vault-name" {
  default = "dynamic-aws-creds-vault-admin"
}

variable "ami_image_tg" {
  description = "AWS AMI image name for TG"
  type        = string
}

variable "ami_image_sut" {
  description = "AWS AMI image name for SUT"
  type        = string
}

variable "testbed_name" {
  description = "Testbed name"
  type        = string
}

variable "instance_initiated_shutdown_behavior" {
  description = "Shutdown behavior for the instance"
  type        = string
  default     = "terminate"
}

variable "instance_type" {
  description = "AWS instance type"
  type        = string
}

variable "avail_zone" {
  description = "AWS availability zone"
  type        = string
}

variable "topology_name" {
  description = "Prefix used when creating a topology file"
  type        = string
  default     = "2n_aws_c5n"
}

variable "environment_name" {
  description = "Environment name - used for Environment tag"
  type        = string
  default     = "CSIT-AWS"
}

variable "resources_name_prefix" {
  description = "Resource prefix - used for Name tag"
  type        = string
  default     = "CSIT_2n_aws_c5n"
}

variable "first_run_commands" {
  description = "Commands to run after deployment via remote-exec"
  type        = list(string)
  default     = [""]
}

variable "ansible_file_path" {
  description = "Path to Ansible playbook"
  type        = string
  default     = "../../fdio.infra.ansible/site.yaml"
}

variable "ansible_python_executable" {
  description = "Path to Python interpreter"
  type        = string
  default     = "/usr/bin/python3"
}

variable "ansible_topology_path" {
  description = "Path to Ansible playbook which creates a topology file"
  type        = string
  default     = "../../fdio.infra.ansible/cloud_topology.yaml"
}

variable "ansible_provision_pwd" {
  description = "Password used for ansible provisioning (ansible_ssh_pass)"
  type        = string
  default     = "Csit1234"
}

# Base VPC CIDRs
variable "vpc_cidr_mgmt" {
  description = "Management CIDR block"
  type        = string
  default     = "192.168.0.0/24"
}
variable "vpc_cidr_b" {
  description = "CIDR block B"
  type        = string
  default     = "192.168.10.0/24"
}
variable "vpc_cidr_c" {
  description = "CIDR block C"
  type        = string
  default     = "200.0.0.0/24"
}
variable "vpc_cidr_d" {
  description = "CIDR block D"
  type        = string
  default     = "192.168.20.0/24"
}

# Trex Dummy CIDRs
variable "trex_dummy_cidr_port_0" {
  description = "TREX dummy CIDR"
  type        = string
  default     = "10.0.0.0/24"
}
variable "trex_dummy_cidr_port_1" {
  description = "TREX dummy CIDR"
  type        = string
  default     = "20.0.0.0/24"
}

# IPs
variable "tg_if1_ip" {
  description = "TG IP on interface 1"
  type        = string
  default     = "192.168.10.254"
}
variable "tg_if2_ip" {
  description = "TG IP on interface 2"
  type        = string
  default     = "192.168.20.254"
}
variable "dut1_if1_ip" {
  description = "DUT IP on interface 1"
  type        = string
  default     = "192.168.10.11"
}
variable "dut1_if2_ip" {
  description = "DUT IP on interface 1"
  type        = string
  default     = "192.168.20.11"
}
variable "tg_mgmt_ip" {
  description = "TG management interface IP"
  type        = string
  default     = "192.168.0.10"
}
variable "dut1_mgmt_ip" {
  description = "DUT management interface IP"
  type        = string
  default     = "192.168.0.11"
}