Skip to content

Commit 1beb9e1

Browse files
authored
Merge pull request #954 from terraform-providers/release_gh
v3.58.0 release changes
2 parents 9b77377 + fddb680 commit 1beb9e1

File tree

90 files changed

+2602
-191
lines changed

Some content is hidden

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

90 files changed

+2602
-191
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
## 3.58.0 (Unreleased)
2+
3+
### Added
4+
- Support for `description` field in networking routing rules in `oci_core_route_table` and `oci_core_security_list`
5+
- Support for Stop/Start Digital Assistant Instance
6+
- Support for `oci_database_database` resource for exadata infrastructure
7+
28
## 3.57.0 (January 09, 2020)
39

410
### Added

examples/database/db_systems/db_exadata/resources.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,21 @@ resource "oci_database_exadata_iorm_config" "test_exadata_iorm_config" {
5959
share = 1
6060
}
6161
}
62+
63+
resource "oci_database_database" "test_database" {
64+
#Required
65+
database {
66+
admin_password = "${var.db_admin_password}"
67+
db_name = "${var.second_db_name}"
68+
character_set = "${var.character_set}"
69+
ncharacter_set = "${var.n_character_set}"
70+
db_workload = "${var.db_workload}"
71+
72+
db_backup_config {
73+
auto_backup_enabled = false
74+
}
75+
}
76+
77+
db_home_id = "${data.oci_database_db_homes.db_homes.db_homes.0.db_home_id}"
78+
source = "NONE"
79+
}

examples/database/db_systems/db_exadata/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ variable "db_name" {
3131
default = "aTFdb"
3232
}
3333

34+
variable "second_db_name" {
35+
default = "aTFdb2"
36+
}
37+
3438
variable "db_version" {
3539
default = "12.1.0.2"
3640
}

examples/networking/route_table/route_table.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ variable "private_key_path" {}
77
variable "compartment_ocid" {}
88
variable "region" {}
99

10+
variable "route_table_route_rules_description" {
11+
default = "description"
12+
}
13+
1014
provider "oci" {
1115
tenancy_ocid = "${var.tenancy_ocid}"
1216
user_ocid = "${var.user_ocid}"
@@ -34,6 +38,7 @@ resource "oci_core_route_table" "example_route_table" {
3438
display_name = "exampleRouteTable"
3539

3640
route_rules {
41+
description = "${var.route_table_route_rules_description}"
3742
destination = "0.0.0.0/0"
3843
destination_type = "CIDR_BLOCK"
3944
network_entity_id = "${oci_core_internet_gateway.example_ig.id}"

examples/networking/security_list/security_list.tf

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ variable "private_key_path" {}
99
variable "compartment_ocid" {}
1010
variable "region" {}
1111

12+
variable "security_list_egress_security_rules_description" {
13+
default = "description"
14+
}
15+
16+
variable "security_list_ingress_security_rules_description" {
17+
default = "description"
18+
}
19+
1220
provider "oci" {
1321
tenancy_ocid = "${var.tenancy_ocid}"
1422
user_ocid = "${var.user_ocid}"
@@ -40,8 +48,9 @@ resource "oci_core_security_list" "example_security_list" {
4048

4149
// allow outbound udp traffic on a port range
4250
egress_security_rules {
51+
description = "${var.security_list_egress_security_rules_description}"
4352
destination = "0.0.0.0/0"
44-
protocol = "17" // udp
53+
protocol = "17" // udp
4554
stateless = true
4655

4756
udp_options {
@@ -71,9 +80,10 @@ resource "oci_core_security_list" "example_security_list" {
7180

7281
// allow inbound icmp traffic of a specific type
7382
ingress_security_rules {
74-
protocol = 1
75-
source = "0.0.0.0/0"
76-
stateless = true
83+
description = "${var.security_list_ingress_security_rules_description}"
84+
protocol = 1
85+
source = "0.0.0.0/0"
86+
stateless = true
7787

7888
icmp_options {
7989
type = 3

examples/oracle_digital_assistant/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ variable "fingerprint" {}
66
variable "private_key_path" {}
77
variable "region" {}
88

9+
variable "oda_instance_state" {
10+
default = "INACTIVE"
11+
}
12+
913
variable "compartment_ocid" {}
1014

1115
provider "oci" {
@@ -21,6 +25,9 @@ resource "oci_oda_oda_instance" "TFOdaInstance" {
2125
shape_name = "DEVELOPMENT"
2226
description = "test instance"
2327
display_name = "TestInstance"
28+
29+
#Optional
30+
state = "${var.oda_instance_state}"
2431
}
2532

2633
data "oci_oda_oda_instances" "TFOdaInstances" {

examples/osmanagement/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ resource "null_resource" "remote-exec" {
115115
inline = [
116116
"sudo -E wget http://yum-${var.region}.oracle.com/yum-${var.region}-ol7.repo",
117117
"sudo yum-config-manager --enable ol7_oci_included",
118-
"sudo yum --enablerepo ol7_oci_included install osms-agent",
118+
"sudo yum -y --enablerepo ol7_oci_included install osms-agent",
119119
]
120120
}
121121
}
@@ -257,9 +257,9 @@ data "oci_osmanagement_managed_instance" "test_managed_instance" {
257257
}
258258

259259
output "managed_instance_output" {
260-
value = ["${data.oci_osmanagement_managed_instance.test_managed_instance}"]
260+
value = ["${data.oci_osmanagement_managed_instance.test_managed_instance.managed_instance_groups}"]
261261
}
262262

263263
output "managed_instance_groups_output" {
264-
value = ["${data.oci_osmanagement_managed_instance_groups.test_managed_instance_groups}"]
264+
value = ["${data.oci_osmanagement_managed_instance_groups.test_managed_instance_groups.display_name}"]
265265
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce
77
github.com/hashicorp/terraform v0.12.4-0.20190628193153-a74738cd35fc
88
github.com/mitchellh/cli v1.0.0
9-
github.com/oracle/oci-go-sdk v15.0.0+incompatible
9+
github.com/oracle/oci-go-sdk v15.1.0+incompatible
1010
github.com/stretchr/objx v0.1.1 // indirect
1111
github.com/stretchr/testify v1.3.0
1212
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ github.com/oracle/oci-go-sdk v14.0.0+incompatible h1:DqmXj/YCn1RLTBO4wKNdZ5lTT6D
342342
github.com/oracle/oci-go-sdk v14.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
343343
github.com/oracle/oci-go-sdk v15.0.0+incompatible h1:DN9mJZUJMm2IKY9z+lDg7Hz6e+ns1PtWSSbQ8PrmOmw=
344344
github.com/oracle/oci-go-sdk v15.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
345+
github.com/oracle/oci-go-sdk v15.1.0+incompatible h1:J+ZPaUim4XZqjdZK13GDsdtu/arw8NzFZGVdQzlrFZo=
346+
github.com/oracle/oci-go-sdk v15.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
345347
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
346348
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
347349
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

oci/core_route_table_resource.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ func CoreRouteTableResource() *schema.Resource {
7777
Computed: true,
7878
Deprecated: FieldDeprecatedForAnother("cidr_block", "destination"),
7979
},
80+
"description": {
81+
Type: schema.TypeString,
82+
Optional: true,
83+
Computed: true,
84+
},
8085
"destination": {
8186
Type: schema.TypeString,
8287
Optional: true,
@@ -367,6 +372,11 @@ func (s *CoreRouteTableResourceCrud) mapToRouteRule(fieldKeyFormat string) (oci_
367372
result.DestinationType = tmp
368373
}
369374

375+
if description, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "description")); ok && description != "" {
376+
tmp := description.(string)
377+
result.Description = &tmp
378+
}
379+
370380
cidrBlockChanged := false
371381
cidrBlock, cidrBlockPresent := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "cidr_block"))
372382
if cidrBlockPresent && s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "cidr_block")) {
@@ -406,6 +416,10 @@ func RouteRuleToMap(obj oci_core.RouteRule) map[string]interface{} {
406416
result["cidr_block"] = string(*obj.CidrBlock)
407417
}
408418

419+
if obj.Description != nil {
420+
result["description"] = string(*obj.Description)
421+
}
422+
409423
if obj.Destination != nil {
410424
result["destination"] = string(*obj.Destination)
411425
}
@@ -434,6 +448,9 @@ func routeRulesHashCodeForSets(v interface{}) int {
434448
} else if destinationPresent && destination != "" {
435449
buf.WriteString(fmt.Sprintf("%v-", destination))
436450
}
451+
if description, ok := m["description"]; ok && description != "" {
452+
buf.WriteString(fmt.Sprintf("%v-", description))
453+
}
437454
if destinationPresent && destination != "" {
438455
buf.WriteString(fmt.Sprintf("%v-", destination))
439456
} else if cidrBlockPresent && cidrBlock != "" {

0 commit comments

Comments
 (0)