generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
db_variables.tf
166 lines (140 loc) · 4.74 KB
/
db_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
163
164
165
166
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
# Variable used in UI only
variable "add_JRF" {
type = bool
description = "Set to true to create WebLogic domain with JRF"
default = false
}
# Variable used in UI only
variable "db_strategy" {
type = string
description = "The type of database to use for a JRF domain."
default = "No Database"
}
# Variable used in UI only
variable "use_oci_db_connection_string" {
type = bool
description = "Set to true to use a connection string to connect to the database"
default = false
}
variable "oci_db_connection_string" {
type = string
description = "Oracle database connection string to connect to database. Example: //<scan_hostname>.<host_domain_name>:<db_port>/<pdb_or_sid>.<Host Domain Name>"
default = ""
}
variable "oci_db_user" {
type = string
description = "The user name used to connect to the OCI database"
default = ""
}
# Variable used in UI only
variable "oci_db_secret_compartment_id" {
type = string
description = "The OCID of the compartment of the vault secret with the OCI database password"
default = ""
}
variable "oci_db_password_id" {
type = string
description = "The OCID of the vault secret with the password for the OCI database"
default = ""
}
variable "oci_db_port" {
type = number
description = "The listener port for the OCI database"
default = 1521
}
variable "oci_db_compartment_id" {
type = string
description = "The OCID of the compartment of the OCI database"
default = ""
}
variable "oci_db_network_compartment_id" {
type = string
description = "The OCID of the compartment in which the DB System VCN is found"
default = ""
}
variable "oci_db_dbsystem_id" {
type = string
description = "The OCID of the OCI database system"
default = ""
}
# Variable used in UI only
variable "oci_db_dbhome_id" {
type = string
description = "The OCID of the OCI database home"
default = ""
}
# Variable used in UI only
variable "oci_db_dbhome_major_version" {
type = string
description = "Version of Database home in the DB System"
default = ""
}
variable "oci_db_database_id" {
type = string
description = "The OCID of the OCI database"
default = ""
}
variable "oci_db_pdb_service_name" {
type = string
description = "The name of the pluggable database (PDB) in which to provision the schemas for a JRF-enabled WebLogic Server domain. This is required for Oracle Database 12c or later"
default = ""
}
variable "oci_db_existing_vcn_id" {
type = string
description = "The OCID of the VCN used by the OCI database"
default = ""
}
variable "atp_db_id" {
type = string
description = "The OCID of the ATP database"
default = ""
}
variable "atp_db_compartment_id" {
type = string
description = "The OCID of the compartment where the ATP database is located"
default = ""
}
variable "atp_db_level" {
type = string
description = "The ATP database level. Allowed values are low, tp, tpurgent"
default = "low"
validation {
condition = contains(["low", "tp", "tpurgent"], var.atp_db_level)
error_message = "WLSC-ERROR: Invalid value for atp_db_level. Allowed values are low, tp and tpurgent."
}
}
# Variable used in UI only
variable "atp_db_secret_compartment_id" {
type = string
description = "The OCID of compartment of the vault secret containing the password for the ATP database"
default = ""
}
variable "atp_db_password_id" {
type = string
description = "The OCID of the vault secret containing the password for the ATP database"
default = ""
}
variable "atp_db_network_compartment_id" {
type = string
description = "The OCID of the compartment in which the ATP database private endpoint VCN is found"
default = ""
}
variable "atp_db_existing_vcn_id" {
type = string
description = "The OCID of the VCN used by the ATP database private endpoint"
default = ""
}
# Variable used in UI only
variable "atp_db_uses_private_endpoint" {
type = bool
description = "Indicates if the ATP database uses private endpoint for network access"
default = false
}
#This variable is used for both OCI database and ATP database with private endpoint
variable "db_existing_vcn_add_secrule" {
type = bool
description = "Set to true to add a security list to the database subnet (for OCI DB) or a security rule to the network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
default = true
}