-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
84 lines (66 loc) · 1.58 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
## Copyright (c) 2020, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}
variable "compartment_ocid" {}
variable "availablity_domain_name" {}
variable "release" {
description = "Reference Architecture Release (OCI Architecture Center)"
default = "1.1"
}
variable "VCN-CIDR" {
default = "10.0.0.0/16"
}
variable "Subnet-CIDR" {
default = "10.0.1.0/24"
}
variable "redis-prefix" {
default = "redis"
}
variable "redis_version" {
default = "5.0.7"
}
variable "redis_port1" {
default = "6379"
}
variable "redis_port2" {
default = "16379"
}
variable "sentinel_port" {
default = "26379"
}
variable "ssh_public_key" {
default = ""
}
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 "instance_shape" {
description = "Instance Shape"
default = "VM.Standard.E3.Flex"
}
variable "instance_flex_shape_ocpus" {
default = 1
}
variable "instance_flex_shape_memory" {
default = 10
}
# Dictionary Locals
locals {
compute_flexible_shapes = [
"VM.Standard.E3.Flex",
"VM.Standard.E4.Flex"
]
}
# Checks if is using Flexible Compute Shapes
locals {
is_flexible_node_shape = contains(local.compute_flexible_shapes, var.instance_shape)
}