This repository was archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
88 lines (70 loc) · 1.66 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
## Copyright © 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.0"
}
variable "VCN-CIDR" {
default = "10.0.0.0/16"
}
variable "Subnet-CIDR" {
default = "10.0.1.0/24"
}
variable "instance_name" {
default = "cockroach"
}
variable "instance_shape" {
default = "VM.Standard.E3.Flex"
}
variable "instance_flex_shape_ocpus" {
default = 1
}
variable "instance_flex_shape_memory" {
default = 10
}
variable "ssh_public_key" {
default = ""
}
variable "lb_shape" {
default = "flexible"
}
variable "flex_lb_min_shape" {
default = "10"
}
variable "flex_lb_max_shape" {
default = "100"
}
variable "instance_count" {
default = 3
}
locals {
fault_domains_per_ad = 3
}
# OS Images
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"
}
# Dictionary Locals
locals {
compute_flexible_shapes = [
"VM.Standard.E3.Flex",
"VM.Standard.E4.Flex"
]
}
# Checks if is using Flexible Compute Shapes
locals {
is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false
is_flexible_node_shape = contains(local.compute_flexible_shapes, var.instance_shape)
}