Skip to content

Commit 7d7dcca

Browse files
authored
Merge pull request #2085 from oracle/release_gh
Releasing version 5.36.0
2 parents b0ade52 + afb46d6 commit 7d7dcca

File tree

143 files changed

+2521
-1292
lines changed

Some content is hidden

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

143 files changed

+2521
-1292
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 5.36.0 (April 03, 2024)
2+
3+
### Added
4+
- Support for Management Agent wait_for_host_id and prevent destroy resource
5+
- Support for Email Delivery: Submit Configuration API
6+
- Support for Support for TLS 1.3
7+
- Support for Telesis IPv6 Single Stack/ Private IP Support
8+
- Support for Cloudguard-Logging Integration for JWCC - Customer Enablement
9+
10+
### Bug Fix
11+
- Remove computed: true from the SecretContent.Name field. Manually add the logic to set both the name and content to null if nothing is provided.
12+
- Handle empty members in DR Protection Group
13+
114
## 5.35.0 (March 27, 2024)
215

316
### Added

examples/cloudguard/data_source/cloud_guard_data_source.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ variable "data_source_freeform_tags" {
2424
default = { "bar-key" = "value" }
2525
}
2626

27+
variable "data_source_status" {
28+
default = "DISABLED"
29+
}
30+
2731
//Has to be unique
2832
variable "data_source_display_name" {
2933
default = "displayName"
@@ -71,7 +75,11 @@ variable "data_source_data_source_details_logging_query_details_key_entities_cou
7175
}
7276

7377
variable "data_source_data_source_details_query_start_time_start_policy_type" {
74-
default = "NO_DELAY_START_POLICY"
78+
default = "ABSOLUTE_TIME_START_POLICY"
79+
}
80+
81+
variable "data_source_data_source_details_query_start_time_query_start_time" {
82+
default = "2023-10-18T12:52:59.817Z"
7583
}
7684

7785
provider "oci" {
@@ -115,10 +123,12 @@ resource "oci_cloud_guard_data_source" "test_data_source" {
115123

116124
query_start_time {
117125
start_policy_type = var.data_source_data_source_details_query_start_time_start_policy_type
126+
query_start_time = var.data_source_data_source_details_query_start_time_query_start_time
118127
}
119128
}
120129

121130
#Optional
122131
defined_tags = { "example-tag-namespace-all.example-tag" = var.data_source_defined_tags_value }
123132
freeform_tags = var.data_source_freeform_tags
133+
status = var.data_source_status
124134
}

examples/email/configuration.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
data "oci_email_configuration" "test_configuration" {
5+
#Required
6+
compartment_id = var.compartment_ocid
7+
}

examples/management_agent/management_agent.tf

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ variable "region" {}
99
variable "compartment_ocid" {}
1010
variable "root_compartment_ocid" {}
1111

12+
variable "shape" {
13+
default = "VM.Standard.E4.Flex"
14+
}
15+
16+
variable "subnet" {
17+
}
1218
provider "oci" {
1319
tenancy_ocid = var.tenancy_ocid
1420
user_ocid = var.user_ocid
@@ -121,4 +127,65 @@ data "oci_management_agent_management_agent_available_histories" "test_managemen
121127
data "oci_management_agent_management_agent_get_auto_upgradable_config" "test_management_agent_get_auto_upgradable_config" {
122128
#Required
123129
compartment_id = var.tenancy_ocid
130+
}
131+
132+
133+
resource "oci_core_instance" "instance" {
134+
135+
agent_config {
136+
is_monitoring_disabled = false
137+
is_management_disabled = false
138+
plugins_config {
139+
desired_state = "ENABLED"
140+
name = "Management Agent"
141+
}
142+
143+
}
144+
145+
availability_domain = data.oci_identity_availability_domains.ads.availability_domains[0].name
146+
compartment_id = var.compartment_ocid
147+
shape = var.shape
148+
shape_config {
149+
ocpus = 1
150+
memory_in_gbs = 8
151+
}
152+
153+
source_details {
154+
source_type = "image"
155+
source_id = data.oci_core_images.compute_images.images[0].id
156+
}
157+
158+
create_vnic_details {
159+
subnet_id = var.subnet
160+
display_name = "example_vnic"
161+
assign_public_ip = false
162+
skip_source_dest_check = false
163+
}
164+
165+
display_name = "Terraform example Agent host"
166+
167+
}
168+
data "oci_identity_availability_domains" "ads" {
169+
compartment_id = var.compartment_ocid
170+
}
171+
data "oci_core_images" "compute_images" {
172+
#Required
173+
compartment_id = var.compartment_ocid
174+
operating_system = "Oracle Autonomous Linux"
175+
operating_system_version = "7.9"
176+
}
177+
178+
179+
data "oci_management_agent_management_agents" "find_compute_agent" {
180+
compartment_id = var.compartment_ocid
181+
host_id = oci_core_instance.instance.id
182+
wait_for_host_id = 10
183+
}
184+
185+
186+
187+
resource "oci_management_agent_management_agent" "test_compute_management_agent" {
188+
freeform_tags = { "TestingTag" : "TestingValue" }
189+
managed_agent_id = data.oci_management_agent_management_agents.find_compute_agent.management_agents[0].id
190+
deploy_plugins_id = [data.oci_management_agent_management_agent_plugins.test_management_agent_plugins.management_agent_plugins.0.id]
124191
}

examples/management_agent/management_agent_data_source.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ resource "oci_management_agent_management_agent_data_source" "add_datasource" {
1515
data "oci_management_agent_management_agent_data_sources" "test_datasource_data" {
1616
management_agent_id = data.oci_management_agent_management_agents.find_agent.management_agents[0].id
1717
name = "PrometheusTestA"
18-
depends_on = [oci_management_agent_management_agent_data_source.add_datasource]
1918
}

examples/network_load_balancer/network_load_balancer_full/nlb_full.tf

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ locals {
4545
######################################################################################################################
4646
# IPV6 Constants
4747
######################################################################################################################
48-
ipv6_cidr_block = oci_core_vcn.vcn1.ipv6cidr_blocks[0] // this ends in 0::/56
48+
ipv6_cidr_block = oci_core_vcn.vcn1.ipv6private_cidr_blocks[0] // this ends in 0::/56
4949
}
5050

5151
provider "oci" {
@@ -69,6 +69,11 @@ resource "oci_core_vcn" "vcn1" {
6969
display_name = "vcn1"
7070
dns_label = "vcn1"
7171
is_ipv6enabled = true
72+
is_oracle_gua_allocation_enabled = false
73+
ipv6private_cidr_blocks = ["2000:1000:1200::/56", "fc00:1000:1200::/56"]
74+
lifecycle {
75+
ignore_changes = [ is_ipv6enabled ]
76+
}
7277
}
7378

7479
resource "oci_core_subnet" "subnet1" {
@@ -94,7 +99,7 @@ resource "oci_core_ipv6" "nlb-ipv6-addr" {
9499

95100
resource "oci_core_subnet" "subnet-ipv6" {
96101
cidr_block = "10.1.21.0/24"
97-
ipv6cidr_block = "${substr(local.ipv6_cidr_block,0,length(local.ipv6_cidr_block)-6)}1::/64"
102+
ipv6cidr_blocks = ["2000:1000:1200:0005::/64"]
98103
display_name = "subnet-ipv6"
99104
dns_label = "subnetipv6"
100105
security_list_ids = [oci_core_security_list.securitylist1.id]
@@ -108,6 +113,22 @@ resource "oci_core_subnet" "subnet-ipv6" {
108113
}
109114
}
110115

116+
resource "oci_core_subnet" "subnet-ipv62" {
117+
cidr_block = "10.1.22.0/24"
118+
ipv6cidr_blocks = ["2000:1000:1200:0001::/64", "fc00:1000:1200:0001::/64"]
119+
display_name = "subnet-ipv62"
120+
dns_label = "subnetipv62"
121+
security_list_ids = [oci_core_security_list.securitylist1.id]
122+
compartment_id = var.compartment_ocid
123+
vcn_id = oci_core_vcn.vcn1.id
124+
route_table_id = oci_core_route_table.routetable-ipv6.id
125+
dhcp_options_id = oci_core_vcn.vcn1.default_dhcp_options_id
126+
127+
provisioner "local-exec" {
128+
command = "sleep 5"
129+
}
130+
}
131+
111132
resource "oci_core_vnic_attachment" "vnic-ipv6" {
112133
#Required
113134
create_vnic_details {
@@ -288,7 +309,10 @@ resource "oci_network_load_balancer_network_load_balancer" "nlb1" {
288309
subnet_id = oci_core_subnet.subnet1.id
289310

290311
display_name = "nlb1"
312+
291313
is_symmetric_hash_enabled = false
314+
315+
assigned_private_ipv4 = "10.1.20.5"
292316
}
293317

294318
resource "oci_network_load_balancer_backend_set" "nlb-bes1" {
@@ -323,7 +347,7 @@ resource "oci_network_load_balancer_backend_set" "nlb-bes2" {
323347
interval_in_millis = 10000
324348
retries = 3
325349
}
326-
depends_on = [oci_network_load_balancer_backend_set.nlb-bes1]
350+
depends_on = [oci_network_load_balancer_backend_set.nlb-bes1]
327351
}
328352

329353
resource "oci_network_load_balancer_backend_set" "nlb-bes3" {
@@ -357,7 +381,7 @@ resource "oci_network_load_balancer_listener" "nlb-listener2" {
357381
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.nlb1.id
358382
name = "udp_listener"
359383
default_backend_set_name = oci_network_load_balancer_backend_set.nlb-bes2.name
360-
port = 80
384+
port = 22
361385
protocol = "UDP"
362386
depends_on = [oci_network_load_balancer_listener.nlb-listener1]
363387
}
@@ -366,7 +390,7 @@ resource "oci_network_load_balancer_listener" "nlb-listener3" {
366390
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.nlb1.id
367391
name = "tcp_and_udp_listener"
368392
default_backend_set_name = oci_network_load_balancer_backend_set.nlb-bes3.name
369-
port = 8080
393+
port = 100
370394
protocol = "TCP_AND_UDP"
371395
depends_on = [oci_network_load_balancer_listener.nlb-listener2]
372396
}
@@ -387,7 +411,7 @@ resource "oci_network_load_balancer_backend" "nlb-be2" {
387411
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.nlb1.id
388412
backend_set_name = oci_network_load_balancer_backend_set.nlb-bes2.name
389413
target_id = oci_core_instance.instance1.id
390-
port = 20
414+
port = 22
391415
is_backup = false
392416
is_drain = false
393417
is_offline = false
@@ -414,11 +438,22 @@ resource "oci_network_load_balancer_network_load_balancer" "nlb-ipv6" {
414438
compartment_id = var.compartment_ocid
415439

416440
subnet_id = oci_core_subnet.subnet-ipv6.id
441+
assigned_ipv6 = "2000:1000:1200:0005:0001:0000:0001:0000"
417442
is_private = false
418443
display_name = "nlb-ipv6"
419444
nlb_ip_version = "IPV4_AND_IPV6"
420445
}
421446

447+
resource "oci_network_load_balancer_network_load_balancer" "nlb-ipv6-subnetIpv6Cidr" {
448+
compartment_id = var.compartment_ocid
449+
450+
subnet_id = oci_core_subnet.subnet-ipv62.id
451+
subnet_ipv6cidr = "fc00:1000:1200:0001::/64"
452+
is_private = false
453+
display_name = "nlb-ipv6-subnetIpv6Cidr"
454+
nlb_ip_version = "IPV4_AND_IPV6"
455+
}
456+
422457
resource "oci_network_load_balancer_backend_set" "nlb-bes-ipv6" {
423458
name = "nlb-bes-ipv6"
424459
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.nlb-ipv6.id
@@ -450,7 +485,7 @@ resource "oci_network_load_balancer_listener" "nlb-listener-ipv6" {
450485
resource "oci_network_load_balancer_backend" "nlb-be-ipv6" {
451486
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.nlb-ipv6.id
452487
backend_set_name = oci_network_load_balancer_backend_set.nlb-bes-ipv6.name
453-
ip_address = "2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789"
488+
ip_address = "2000:1000:1200:0001:0001:1000:0000:0000"
454489
port = 80
455490
is_backup = false
456491
is_drain = false

examples/vault_secret/main.tf

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ resource "oci_vault_secret" "test_secret" {
5454
stage = "CURRENT"
5555
}
5656
key_id = var.kms_key_ocid
57-
secret_name = "TFsample1"
57+
secret_name = "TFsample1e13"
5858
vault_id = var.kms_vault_ocid
5959
}
6060

6161
resource "oci_vault_secret" "test_secret_with_auto_rotation" {
6262
compartment_id = var.compartment_ocid
6363
key_id = var.kms_key_ocid
64-
secret_name = "TFSecretAutoRotation"
64+
secret_name = "TFSecretAutoRotation211"
6565
vault_id = var.kms_vault_ocid
6666

6767
secret_content {
@@ -75,7 +75,7 @@ resource "oci_vault_secret" "test_secret_with_auto_rotation" {
7575
}
7676

7777
rotation_config {
78-
is_scheduled_rotation_enabled = "true"
78+
is_scheduled_rotation_enabled = "false"
7979
rotation_interval = "P90D"
8080
target_system_details {
8181
function_id = var.function_ocid
@@ -87,7 +87,7 @@ resource "oci_vault_secret" "test_secret_with_auto_rotation" {
8787
resource "oci_vault_secret" "test_secret_with_target_system" {
8888
compartment_id = var.compartment_ocid
8989
key_id = var.kms_key_ocid
90-
secret_name = "TFSecretWithTargetSystem"
90+
secret_name = "TFSecretWithTargetSyste2121m"
9191
vault_id = var.kms_vault_ocid
9292

9393
secret_content {
@@ -109,6 +109,21 @@ resource "oci_vault_secret" "test_secret_with_target_system" {
109109
}
110110
}
111111

112+
resource "oci_vault_secret" "test_secret_without_version_name" {
113+
compartment_id = var.compartment_ocid
114+
secret_content {
115+
#Required
116+
content_type = "BASE64"
117+
118+
#Optional
119+
content = "PHZhcj4mbHQ7YmFzZTY0X2VuY29kZWRfc2VjcmV0X2NvbnRlbnRzJmd0OzwvdmFyPg=="
120+
stage = "CURRENT"
121+
}
122+
key_id = var.kms_key_ocid
123+
secret_name = "TFsampleWithoutVersionName212"
124+
vault_id = var.kms_vault_ocid
125+
}
126+
112127

113128
data "oci_vault_secret" "test_secret" {
114129
secret_id = oci_vault_secret.test_secret.id

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ require (
6565
github.com/mitchellh/mapstructure v1.1.2 // indirect
6666
github.com/mitchellh/reflectwalk v1.0.2 // indirect
6767
github.com/oklog/run v1.0.0 // indirect
68-
github.com/oracle/oci-go-sdk/v65 v65.62.0
68+
github.com/oracle/oci-go-sdk/v65 v65.63.0
6969
github.com/pmezard/go-difflib v1.0.0 // indirect
7070
github.com/sony/gobreaker v0.5.0 // indirect
7171
github.com/ulikunitz/xz v0.5.10 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
509509
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
510510
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
511511
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
512-
github.com/oracle/oci-go-sdk/v65 v65.62.0 h1:A+3n6e4TanUK94yvZBqUyK62mvDZ2YC29lJebVKsmcg=
513-
github.com/oracle/oci-go-sdk/v65 v65.62.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0=
512+
github.com/oracle/oci-go-sdk/v65 v65.63.0 h1:Q6eZU2olI+nOMpnrvHtpCE774AS1bYOujv89p4pOi08=
513+
github.com/oracle/oci-go-sdk/v65 v65.63.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0=
514514
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
515515
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
516516
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

internal/globalvar/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
)
99

10-
const Version = "5.35.0"
11-
const ReleaseDate = "2024-03-27"
10+
const Version = "5.36.0"
11+
const ReleaseDate = "2024-04-03"
1212

1313
func PrintVersion() {
1414
log.Printf("[INFO] terraform-provider-oci %s\n", Version)

0 commit comments

Comments
 (0)