Skip to content

Commit 4c938d0

Browse files
Merge pull request #1088 from terraform-providers/release_merge_v3.80.0
Release merge v3.80.0
2 parents 75459a9 + 6ba6824 commit 4c938d0

File tree

172 files changed

+5591
-347
lines changed

Some content is hidden

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

172 files changed

+5591
-347
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
## 3.80.0 (Unreleased)
2+
3+
### Added
4+
- Support resource discovery for `waas` resources
5+
- Support resource discovery for `database` resources: exadata infrastructures, vm clusters, backup destinations, databases, database backups
6+
- Support resource discovery for `dns` resources
7+
- Support addition of File Server capability to `oci_integration_integration_instance`
8+
- Support for MultiVM-Gen 2 Exadata Cloud at Customer
9+
- Support for `dbVersion` field added to Autonomous Database back resource
10+
- Support for patch and patch history in `database_vm_cluster`
11+
- Support resource discovery for `monitoring` resources
12+
- Support resource discovery for `identity` resources
13+
- Support resource discovery for `dataflow` resources
14+
- Added `oci_dns_rrset` resource to support DNS RRSet
15+
16+
### Fixed
17+
- updated `static_routes` attribute to be empty in `oci_core_ipsec` resource
18+
219
## 3.79.0 (June 03, 2020)
320

421
### Added

examples/database/exadata_cc/vm_cluster.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ resource "oci_database_vm_cluster" "test_vm_cluster" {
9292
is_local_backup_enabled = "false"
9393
is_sparse_diskgroup_enabled = "false"
9494
license_model = "LICENSE_INCLUDED"
95+
data_storage_size_in_tbs = "84"
96+
db_node_storage_size_in_gbs = "120"
97+
memory_size_in_gbs = "60"
9598
}
9699

97100
data "oci_database_vm_cluster_recommended_network" "test_vm_cluster_recommended_network" {

examples/dns/rrset.tf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
resource "oci_dns_rrset" "rrset-a" {
2+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
3+
domain = "${oci_dns_zone.zone3.name}"
4+
rtype = "A"
5+
6+
items {
7+
domain = "${oci_dns_zone.zone3.name}"
8+
rtype = "A"
9+
rdata = "192.168.0.3"
10+
ttl = 3600
11+
}
12+
13+
items {
14+
domain = "${oci_dns_zone.zone3.name}"
15+
rtype = "A"
16+
rdata = "192.168.0.4"
17+
ttl = 3600
18+
}
19+
}
20+
21+
resource "oci_dns_rrset" "rrset-aaaa" {
22+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
23+
domain = "${oci_dns_zone.zone3.name}"
24+
rtype = "AAAA"
25+
26+
items {
27+
domain = "${oci_dns_zone.zone3.name}"
28+
rtype = "AAAA"
29+
rdata = "0000:0000:8a2e:0000:0000:0370:0000:0000"
30+
ttl = 3600
31+
}
32+
}
33+
34+
resource "oci_dns_rrset" "rrset-cname" {
35+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
36+
domain = "el.${oci_dns_zone.zone3.name}"
37+
rtype = "CNAME"
38+
39+
items {
40+
domain = "el.${oci_dns_zone.zone3.name}"
41+
rtype = "CNAME"
42+
rdata = "${oci_dns_zone.zone3.name}"
43+
ttl = 86400
44+
}
45+
}

examples/dns/zone.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ resource "oci_dns_zone" "zone1" {
1717
zone_type = "PRIMARY"
1818
}
1919

20+
resource "oci_dns_zone" "zone3" {
21+
compartment_id = "${var.compartment_ocid}"
22+
name = "${data.oci_identity_tenancy.tenancy.name}-${random_string.random_prefix.result}-tf-example3-primary.oci-dns1"
23+
zone_type = "PRIMARY"
24+
}
25+
2026
resource "oci_dns_tsig_key" "test_tsig_key" {
2127
algorithm = "hmac-sha1"
2228
compartment_id = "${var.compartment_ocid}"

examples/integration/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ resource "oci_integration_integration_instance" "test_integration_instance" {
3333
"bar-key" = "value"
3434
}
3535

36-
idcs_at = "${var.integration_instance_idcs_access_token}"
37-
state = "ACTIVE"
36+
idcs_at = "${var.integration_instance_idcs_access_token}"
37+
is_file_server_enabled = true
38+
state = "ACTIVE"
3839
}
3940

4041
data "oci_integration_integration_instances" "test_integration_instances" {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
88
github.com/hashicorp/terraform v0.12.4-0.20190628193153-a74738cd35fc
99
github.com/mitchellh/cli v1.0.0
10-
github.com/oracle/oci-go-sdk v19.4.0+incompatible
10+
github.com/oracle/oci-go-sdk v20.0.0+incompatible
1111
github.com/stretchr/objx v0.1.1 // indirect
1212
github.com/stretchr/testify v1.3.0
1313
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ github.com/oracle/oci-go-sdk v19.3.0+incompatible h1:gslDF/UZ5bXLh3oZoEyCPolOMS3
449449
github.com/oracle/oci-go-sdk v19.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
450450
github.com/oracle/oci-go-sdk v19.4.0+incompatible h1:9C9TQzYDbylb/dlDLwr9CL3EWK9EN8GvoVcYeFkjIXA=
451451
github.com/oracle/oci-go-sdk v19.4.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
452+
github.com/oracle/oci-go-sdk v20.0.0+incompatible h1:PdKuaDT0DKwG7YMDpwjqsogpLhXt4z7Uxdabssvaucc=
453+
github.com/oracle/oci-go-sdk v20.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
452454
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
453455
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
454456
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

oci/core_ipsec_resource.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ func (s *CoreIpSecConnectionResourceCrud) Create() error {
216216
request.FreeformTags = objectMapToStringMap(freeformTags.(map[string]interface{}))
217217
}
218218

219+
request.StaticRoutes = []string{}
219220
if staticRoutes, ok := s.D.GetOkExists("static_routes"); ok {
220221
interfaces := staticRoutes.([]interface{})
221222
tmp := make([]string, len(interfaces))
@@ -224,9 +225,7 @@ func (s *CoreIpSecConnectionResourceCrud) Create() error {
224225
tmp[i] = interfaces[i].(string)
225226
}
226227
}
227-
if len(tmp) != 0 || s.D.HasChange("static_routes") {
228-
request.StaticRoutes = tmp
229-
}
228+
request.StaticRoutes = tmp
230229
}
231230

232231
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "core")
@@ -298,6 +297,7 @@ func (s *CoreIpSecConnectionResourceCrud) Update() error {
298297
tmp := s.D.Id()
299298
request.IpscId = &tmp
300299

300+
request.StaticRoutes = []string{}
301301
if staticRoutes, ok := s.D.GetOkExists("static_routes"); ok {
302302
interfaces := staticRoutes.([]interface{})
303303
tmp := make([]string, len(interfaces))
@@ -306,9 +306,7 @@ func (s *CoreIpSecConnectionResourceCrud) Update() error {
306306
tmp[i] = interfaces[i].(string)
307307
}
308308
}
309-
if len(tmp) != 0 || s.D.HasChange("static_routes") {
310-
request.StaticRoutes = tmp
311-
}
309+
request.StaticRoutes = tmp
312310
}
313311

314312
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "core")

oci/database_autonomous_database_backup_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package oci
55

66
import (
77
"fmt"
8+
"strconv"
89
"testing"
910

1011
"github.com/hashicorp/terraform/helper/resource"
@@ -56,6 +57,8 @@ func TestDatabaseAutonomousDatabaseBackupResource_basic(t *testing.T) {
5657
datasourceName := "data.oci_database_autonomous_database_backups.test_autonomous_database_backups"
5758
singularDatasourceName := "data.oci_database_autonomous_database_backup.test_autonomous_database_backup"
5859

60+
var resId string
61+
5962
resource.Test(t, resource.TestCase{
6063
PreCheck: func() { testAccPreCheck(t) },
6164
Providers: map[string]terraform.ResourceProvider{
@@ -69,6 +72,16 @@ func TestDatabaseAutonomousDatabaseBackupResource_basic(t *testing.T) {
6972
Check: resource.ComposeAggregateTestCheckFunc(
7073
resource.TestCheckResourceAttrSet(resourceName, "autonomous_database_id"),
7174
resource.TestCheckResourceAttr(resourceName, "display_name", "Monthly Backup"),
75+
76+
func(s *terraform.State) (err error) {
77+
resId, err = fromInstanceState(s, resourceName, "id")
78+
if isEnableExportCompartment, _ := strconv.ParseBool(getEnvSettingWithDefault("enable_export_compartment", "false")); isEnableExportCompartment {
79+
if errExport := testExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil {
80+
return errExport
81+
}
82+
}
83+
return err
84+
},
7285
),
7386
},
7487

oci/database_autonomous_exadata_infrastructure_resource.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,13 @@ func (s *DatabaseAutonomousExadataInfrastructureResourceCrud) SetData() error {
588588
s.D.Set("next_maintenance_run_id", *s.Res.NextMaintenanceRunId)
589589
}
590590

591-
nsgIds := []interface{}{}
592-
for _, item := range s.Res.NsgIds {
593-
nsgIds = append(nsgIds, item)
591+
if s.Res.NsgIds != nil {
592+
nsgIds := []interface{}{}
593+
for _, item := range s.Res.NsgIds {
594+
nsgIds = append(nsgIds, item)
595+
}
596+
s.D.Set("nsg_ids", schema.NewSet(literalTypeHashCodeForSets, nsgIds))
594597
}
595-
s.D.Set("nsg_ids", schema.NewSet(literalTypeHashCodeForSets, nsgIds))
596-
597598
if s.Res.Shape != nil {
598599
s.D.Set("shape", *s.Res.Shape)
599600
}

0 commit comments

Comments
 (0)