-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
101 lines (80 loc) · 1.67 KB
/
variables.tf
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
variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "compartment_ocid" {}
variable "region" {}
variable "availablity_domain_name" {}
variable "ssh_public_key" {
default = ""
}
variable "VCN-CIDR" {
default = "10.0.0.0/16"
}
variable "WebSubnet-CIDR" {
default = "10.0.1.0/24"
}
variable "LBSubnet-CIDR" {
default = "10.0.2.0/24"
}
variable "BastionSubnet-CIDR" {
default = "10.0.3.0/24"
}
variable "lb_shape" {
default = "flexible"
}
variable "flex_lb_min_shape" {
default = 10
}
variable "flex_lb_max_shape" {
default = 100
}
variable "VCNname" {
default = "FoggyKitchenVCN"
}
variable "Shape" {
default = "VM.Standard.E3.Flex"
}
variable "FlexShapeOCPUS" {
default = 1
}
variable "FlexShapeMemory" {
default = 10
}
variable "webservice_ports" {
default = ["80", "443"]
}
variable "bastion_ports" {
default = ["22"]
}
variable "NumberOfNodes" {
default = 3
}
variable "instance_os" {
description = "Operating system for compute instances"
default = "Oracle Linux"
}
variable "linux_os_version" {
description = "Operating system version for all Linux instances"
default = "7.9"
}
variable "client_cidr_block_allow_list" {
default = "0.0.0.0/0"
}
variable "max_session_ttl_in_seconds" {
default = 1800
}
# Dictionary Locals
locals {
compute_flexible_shapes = [
"VM.Standard.E3.Flex",
"VM.Standard.E4.Flex",
"VM.Standard.A1.Flex",
"VM.Optimized3.Flex"
]
}
# Checks if is using Flexible Compute Shapes
locals {
is_flexible_node_shape = contains(local.compute_flexible_shapes, var.Shape)
is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false
}