forked from OCI-KS/oci-arch-db-migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
147 lines (114 loc) · 2.46 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
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
## 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
# Variables
variable "tenancy_ocid" {}
variable "compartment_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}
variable "availablity_domain_name" {}
variable "release" {
description = "Reference Architecture Release (OCI Architecture Center)"
default = "1.1"
}
# 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 = "8"
}
variable "instance_shape" {
default = "VM.Standard.E3.Flex"
}
variable "instance_shape_flex_ocpus" {
default = 1
}
variable "instance_shape_flex_memory" {
default = 10
}
variable "ssh_public_key" {
default = ""
}
variable "db_system_shape" {
default = "Exadata.Quarter2.92"
}
variable "db_system_cpu_core_count" {
default = "2"
}
variable "db_edition" {
default = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"
}
variable "db_admin_password" {
}
variable "db_name" {
default = "aTFdb"
}
variable "db_version" {
default = "12.2.0.1"
}
variable "db_home_display_name" {
default = "MyTFDBHome"
}
variable "db_disk_redundancy" {
default = "HIGH"
}
variable "db_system_display_name" {
default = "MyTFDBSystem"
}
variable "db_cluster_name" {
default = "TestCluster"
}
variable "hostname" {
default = "myoracledb"
}
variable "host_user_name" {
default = "opc"
}
variable "n_character_set" {
default = "AL16UTF16"
}
variable "character_set" {
default = "AL32UTF8"
}
variable "db_workload" {
default = "OLTP"
}
variable "pdb_name" {
default = "pdbName"
}
variable "data_storage_size_in_gb" {
default = "256"
}
variable "license_model" {
default = "LICENSE_INCLUDED"
}
variable "node_count" {
default = "1"
}
variable "data_storage_percentage" {
default = "40"
}
variable "db_auto_backup_enabled" {
default = "true"
}
variable "db_auto_backup_window" {
default = "SLOT_TWO"
}
variable "db_recovery_window_in_days" {
default = "45"
}
# 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)
}