-
Notifications
You must be signed in to change notification settings - Fork 22
/
variables.tf
162 lines (150 loc) · 3.28 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
variable "tenancy_ocid" {}
variable "region" {}
variable "compartment_ocid" {}
variable "user_email" {}
variable "user_ocid" {
default = ""
}
variable "fingerprint" {
default = ""
}
variable "private_key_path" {
default = ""
}
variable "public_ssh_key" {
default = ""
}
# Compute
variable "num_nodes" {
default = 2
}
variable "memory_in_gbs" {
default = 12
}
variable "ocpus" {
default = 2
}
variable "generate_public_ssh_key" {
default = true
}
variable "instance_shape" {
default = "VM.Standard.A1.Flex"
}
variable "image_operating_system" {
default = "Oracle Linux"
}
variable "image_operating_system_version" {
default = "8"
}
variable "instance_visibility" {
default = "Public"
}
variable "is_pv_encryption_in_transit_enabled" {
default = false
}
# Network Details
variable "lb_shape" {
default = "flexible"
}
variable "lb_compartment_ocid" {
default = ""
}
variable "create_secondary_vcn" {
default = false
}
variable "create_lpg_policies_for_group" {
default = false
}
variable "user_admin_group_for_lpg_policy" {
default = "Administrators"
}
variable "network_cidrs" {
type = map(string)
default = {
MAIN-VCN-CIDR = "10.1.0.0/16"
MAIN-SUBNET-REGIONAL-CIDR = "10.1.21.0/24"
MAIN-LB-SUBNET-REGIONAL-CIDR = "10.1.22.0/24"
LB-VCN-CIDR = "10.2.0.0/16"
LB-SUBNET-REGIONAL-CIDR = "10.2.22.0/24"
ALL-CIDR = "0.0.0.0/0"
}
}
# Autonomous Database
variable "autonomous_database_name" {
default = "OciSwarmDB"
}
variable "autonomous_database_db_version" {
default = "19c"
}
variable "autonomous_database_license_model" {
default = "LICENSE_INCLUDED"
}
variable "autonomous_database_is_free_tier" {
default = true
}
variable "autonomous_database_cpu_core_count" {
default = 1
}
variable "autonomous_database_data_storage_size_in_tbs" {
default = 1
}
variable "autonomous_database_visibility" {
default = "Public"
}
variable "oracle_client_version" {
default = "19.10"
}
# Encryption (OCI Vault/Key Management/KMS)
variable "use_encryption_from_oci_vault" {
default = false
}
variable "create_new_encryption_key" {
default = true
}
variable "encryption_key_id" {
default = ""
}
variable "create_vault_policies_for_group" {
default = false
}
variable "user_admin_group_for_vault_policy" {
default = "Administrators"
}
variable "vault_display_name" {
default = "OciSwarm Vault"
}
variable "vault_type" {
type = list
default = ["DEFAULT", "VIRTUAL_PRIVATE"]
}
variable "vault_key_display_name" {
default = "OciSwarm Key"
}
variable "vault_key_key_shape_algorithm" {
default = "AES"
}
variable "vault_key_key_shape_length" {
default = 32
}
# Always Free only or support other shapes
variable "use_only_always_free_elegible_resources" {
default = true
}
# ORM Schema visual control variables
variable "show_advanced" {
default = false
}
# Object Storage
variable "object_storage_oci_swarm_media_compartment_ocid" {
default = ""
}
variable "object_storage_oci_swarm_media_visibility" {
default = "Public"
}
# OciSwarm Services
variable "services_in_mock_mode" {
default = "carts,orders,users"
}