Skip to content

Commit 4f0baa0

Browse files
Merge pull request #965 from terraform-providers/release_gh
Merge 3.60.0 into master
2 parents e88d400 + 051c61a commit 4f0baa0

File tree

321 files changed

+31134
-175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+31134
-175
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## 3.59.1 (Unreleased)
1+
## 3.60.0 (Unreleased)
2+
3+
### Added
4+
- Support `shape` property as customer input for `oci_database_data_guard_association`.
5+
26
## 3.59.0 (January 22, 2020)
37

48
### Added

examples/database/dataguard/vm_shape/dataguard.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ resource "oci_database_data_guard_association" "test_data_guard_association" {
111111

112112
#required for NewDbSystem creation_type
113113
display_name = "TFExampleDataGuardAssociationVM"
114+
shape = "VM.Standard2.1"
114115
subnet_id = "${oci_core_subnet.test_subnet.id}"
115116
availability_domain = "${oci_core_subnet.test_subnet.availability_domain}"
116117
nsg_ids = ["${oci_core_network_security_group.test_network_security_group.id}"]

examples/database/db_systems/db_exadata/resources.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "oci_database_db_system" "test_db_system" {
1010
db_home {
1111
database {
1212
admin_password = "${var.db_admin_password}"
13-
db_name = "${var.db_name}"
13+
db_name = "TFdb1Exa"
1414
character_set = "${var.character_set}"
1515
ncharacter_set = "${var.n_character_set}"
1616
db_workload = "${var.db_workload}"
@@ -22,7 +22,7 @@ resource "oci_database_db_system" "test_db_system" {
2222
}
2323

2424
db_version = "${var.db_version}"
25-
display_name = "${var.db_home_display_name}"
25+
display_name = "MyTFDBHome1Exa"
2626
}
2727

2828
disk_redundancy = "${var.db_disk_redundancy}"
@@ -64,7 +64,7 @@ resource "oci_database_database" "test_database" {
6464
#Required
6565
database {
6666
admin_password = "${var.db_admin_password}"
67-
db_name = "${var.second_db_name}"
67+
db_name = "TFdb2Exa"
6868
character_set = "${var.character_set}"
6969
ncharacter_set = "${var.n_character_set}"
7070
db_workload = "${var.db_workload}"

examples/database/db_systems/db_exadata/variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,10 @@ variable "db_admin_password" {
2727
default = "BEstrO0ng_#12"
2828
}
2929

30-
variable "db_name" {
31-
default = "aTFdb"
32-
}
33-
34-
variable "second_db_name" {
35-
default = "aTFdb2"
36-
}
37-
3830
variable "db_version" {
3931
default = "12.1.0.2"
4032
}
4133

42-
variable "db_home_display_name" {
43-
default = "MyTFDBHome"
44-
}
45-
4634
variable "db_disk_redundancy" {
4735
default = "HIGH"
4836
}

examples/database/db_systems/db_vm/main.tf

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,10 @@ variable "db_admin_password" {
2323
default = "BEstrO0ng_#12"
2424
}
2525

26-
variable "db_name" {
27-
default = "aTFdb"
28-
}
29-
3026
variable "db_version" {
3127
default = "19.0.0.0"
3228
}
3329

34-
variable "db_home_display_name" {
35-
default = "MyTFDBHome"
36-
}
37-
3830
variable "db_disk_redundancy" {
3931
default = "NORMAL"
4032
}
@@ -43,10 +35,6 @@ variable "sparse_diskgroup" {
4335
default = true
4436
}
4537

46-
variable "db_system_display_name" {
47-
default = "MyTFDBSystem"
48-
}
49-
5038
variable "hostname" {
5139
default = "myoracledb"
5240
}
@@ -266,7 +254,7 @@ resource "oci_database_db_system" "test_db_system" {
266254
db_home {
267255
database {
268256
admin_password = "${var.db_admin_password}"
269-
db_name = "${var.db_name}"
257+
db_name = "aTFdbVm"
270258
character_set = "${var.character_set}"
271259
ncharacter_set = "${var.n_character_set}"
272260
db_workload = "${var.db_workload}"
@@ -278,7 +266,7 @@ resource "oci_database_db_system" "test_db_system" {
278266
}
279267

280268
db_version = "${var.db_version}"
281-
display_name = "${var.db_home_display_name}"
269+
display_name = "MyTFDBHomeVm"
282270
}
283271

284272
db_system_options {
@@ -289,7 +277,7 @@ resource "oci_database_db_system" "test_db_system" {
289277
shape = "${var.db_system_shape}"
290278
subnet_id = "${oci_core_subnet.subnet.id}"
291279
ssh_public_keys = ["${var.ssh_public_key}"]
292-
display_name = "${var.db_system_display_name}"
280+
display_name = "MyTFDBSystemVM"
293281
hostname = "${var.hostname}"
294282
data_storage_size_in_gb = "${var.data_storage_size_in_gb}"
295283
license_model = "${var.license_model}"

examples/database/db_systems/resources.tf

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "oci_database_db_system" "test_db_system" {
99
db_home {
1010
database {
1111
admin_password = "${var.db_admin_password}"
12-
db_name = "${var.db_name}"
12+
db_name = "aTFdb1"
1313
character_set = "${var.character_set}"
1414
ncharacter_set = "${var.n_character_set}"
1515
db_workload = "${var.db_workload}"
@@ -18,11 +18,6 @@ resource "oci_database_db_system" "test_db_system" {
1818
db_backup_config {
1919
auto_backup_enabled = true
2020
recovery_window_in_days = 10
21-
22-
backup_destination_details {
23-
id = "${oci_database_backup_destination.test_backup_destination_nfs1.id}"
24-
type = "NFS"
25-
}
2621
}
2722

2823
freeform_tags = {
@@ -31,7 +26,7 @@ resource "oci_database_db_system" "test_db_system" {
3126
}
3227

3328
db_version = "${var.db_version}"
34-
display_name = "${var.db_home_display_name}"
29+
display_name = "MyTFDBHome1"
3530
}
3631

3732
disk_redundancy = "${var.db_disk_redundancy}"
@@ -55,29 +50,13 @@ resource "oci_database_db_system" "test_db_system" {
5550
}
5651
}
5752

58-
resource "oci_database_backup_destination" "test_backup_destination_nfs1" {
59-
#Required
60-
compartment_id = "${var.compartment_ocid}"
61-
display_name = "testBackupDestinationNFS"
62-
type = "NFS"
63-
64-
#Optional
65-
connection_string = "connectionString"
66-
67-
freeform_tags = {
68-
"Department" = "Finance"
69-
}
70-
71-
local_mount_point_path = "local_mount_point_path"
72-
}
73-
7453
// The creation of an oci_database_db_system requires that it be created with exactly one oci_database_db_home. Therefore the first db home will have to be a property of the db system resource and any further db homes to be added to the db system will have to be added as first class resources using "oci_database_db_home".
7554
resource "oci_database_db_home" "test_db_home" {
7655
db_system_id = "${oci_database_db_system.test_db_system.id}"
7756

7857
database {
7958
admin_password = "${var.db_admin_password}"
80-
db_name = "${var.db_home_db_name}3"
59+
db_name = "aTFdb2"
8160
character_set = "${var.character_set}"
8261
ncharacter_set = "${var.n_character_set}"
8362
db_workload = "${var.db_workload}"
@@ -89,32 +68,11 @@ resource "oci_database_db_home" "test_db_home" {
8968

9069
db_backup_config {
9170
auto_backup_enabled = true
92-
93-
backup_destination_details {
94-
id = "${oci_database_backup_destination.test_backup_destination_nfs2.id}"
95-
type = "NFS"
96-
}
9771
}
9872
}
9973

10074
db_version = "${var.db_version}"
101-
display_name = "${var.db_home_display_name}"
102-
}
103-
104-
resource "oci_database_backup_destination" "test_backup_destination_nfs2" {
105-
#Required
106-
compartment_id = "${var.compartment_ocid}"
107-
display_name = "testBackupDestinationNFS"
108-
type = "NFS"
109-
110-
#Optional
111-
connection_string = "connectionString"
112-
113-
freeform_tags = {
114-
"Department" = "Finance"
115-
}
116-
117-
local_mount_point_path = "local_mount_point_path"
75+
display_name = "MyTFDBHome2"
11876
}
11977

12078
resource "oci_database_backup" "test_backup" {

examples/database/db_systems/variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,10 @@ variable "db_admin_password" {
3232
default = "BEstrO0ng_#12"
3333
}
3434

35-
variable "db_name" {
36-
default = "aTFdb"
37-
}
38-
39-
variable "db_home_db_name" {
40-
default = "aTFdb2"
41-
}
42-
4335
variable "db_version" {
4436
default = "12.1.0.2"
4537
}
4638

47-
variable "db_home_display_name" {
48-
default = "MyTFDBHome1"
49-
}
50-
5139
variable "db_disk_redundancy" {
5240
default = "HIGH"
5341
}

examples/database/exadata_cc/vm_cluster.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,10 @@ resource "oci_database_backup_destination" "test_backup_destination_nfs" {
167167
type = "NFS"
168168

169169
#Optional
170-
connection_string = "connectionString"
171170

172171
freeform_tags = {
173172
"Department" = "Finance"
174173
}
175-
176174
local_mount_point_path = "local_mount_point_path"
177175
}
178176

examples/datacatalog/main.tf

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
variable "tenancy_ocid" {}
2+
variable "user_ocid" {}
3+
variable "fingerprint" {}
4+
variable "private_key_path" {}
5+
variable "compartment_ocid" {}
6+
variable "compartment_id" {}
7+
variable "region" {}
8+
9+
variable "connection_password" {}
10+
11+
provider "oci" {
12+
region = "${var.region}"
13+
tenancy_ocid = "${var.tenancy_ocid}"
14+
user_ocid = "${var.user_ocid}"
15+
fingerprint = "${var.fingerprint}"
16+
private_key_path = "${var.private_key_path}"
17+
}
18+
19+
resource "oci_datacatalog_catalog" test_oci_datacatalog_catalog {
20+
compartment_id = "${var.compartment_id}"
21+
}
22+
23+
data "oci_datacatalog_catalogs" test_oci_datacatalog_catalogs {
24+
compartment_id = "${var.compartment_ocid}"
25+
}
26+
27+
resource "oci_datacatalog_data_asset" test_oci_datacatalog_dataAsset {
28+
display_name = "test_data_assets"
29+
type_key = "${data.oci_datacatalog_catalog_types.test_catalog_types_dataAsset.type_collection.0.key}"
30+
catalog_id = "${oci_datacatalog_catalog.test_oci_datacatalog_catalog.id}"
31+
32+
properties {
33+
default.host = "jbanford-host"
34+
default.port = "1521"
35+
default.database = "SID"
36+
}
37+
}
38+
39+
#
40+
resource "oci_datacatalog_connection" test_connection {
41+
catalog_id = "${oci_datacatalog_catalog.test_oci_datacatalog_catalog.id}"
42+
type_key = "${data.oci_datacatalog_catalog_types.test_catalog_types_connection.type_collection.0.key}"
43+
data_asset_key = "${oci_datacatalog_data_asset.test_oci_datacatalog_dataAsset.id}"
44+
display_name = "connection_name"
45+
46+
properties {
47+
default.username = "scott"
48+
}
49+
50+
enc_properties {
51+
default.password = "${var.connection_password}"
52+
}
53+
54+
is_default = true
55+
}
56+
57+
data "oci_datacatalog_catalog_types" test_catalog_types_dataAsset {
58+
catalog_id = "${oci_datacatalog_catalog.test_oci_datacatalog_catalog.id}"
59+
type_category = "dataAsset"
60+
name = "Oracle Database"
61+
state = "ACTIVE"
62+
}
63+
64+
data "oci_datacatalog_catalog_types" test_catalog_types_connection {
65+
catalog_id = "${oci_datacatalog_catalog.test_oci_datacatalog_catalog.id}"
66+
type_category = "connection"
67+
name = "Jdbc"
68+
state = "ACTIVE"
69+
}

0 commit comments

Comments
 (0)