Skip to content

Commit 1d37ada

Browse files
Merge pull request #1762 from oracle/release_gh
Releasing version 4.107.0
2 parents fbc2100 + e1a01ec commit 1d37ada

File tree

295 files changed

+14558
-167
lines changed

Some content is hidden

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

295 files changed

+14558
-167
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 4.107.0 (February 08, 2023)
2+
3+
### Added
4+
- Support for ADB-S: New ECPU-based SKUs for ADW and ATP
5+
- Support for Operations Insights : Customizable configuration
6+
- Support for ADB-D & ADB-CC | Autonomous Data Guard v3
7+
- Support for ADB-D | Oracle Home Version Control
8+
- Support for Devops Deploy Helm Attestation with helm args and helm diff
9+
### Bug Fix
10+
- Fix oci_core_instance to enable updating KMS Key id associated with the boot volume
11+
- Resource Discovery is not getting detected for Custom table resource in metering_computation service
12+
113
## 4.106.0 (January 31, 2023)
214

315
### Added

examples/compute/instance/instance.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ variable "ssh_public_key" {
2525
variable "ssh_private_key" {
2626
}
2727

28+
variable "kms_key_ocid" {
29+
}
30+
2831
provider "oci" {
2932
tenancy_ocid = var.tenancy_ocid
3033
user_ocid = var.user_ocid
@@ -123,6 +126,7 @@ resource "oci_core_instance" "test_instance" {
123126
# Otherwise, the default boot volume size of the image is used.
124127
# This should only be specified when source_type is set to "image".
125128
#boot_volume_size_in_gbs = "60"
129+
kms_key_id = var.kms_key_ocid
126130
}
127131

128132
# Apply the following flag only if you wish to preserve the attached boot volume upon destroying this instance

examples/database/adb/autonomous_database.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ resource "oci_database_autonomous_database" "test_autonomous_database" {
5757
autonomous_maintenance_schedule_type = var.autonomous_database_autonomous_maintenance_schedule_type
5858
}
5959

60+
resource "oci_database_autonomous_database" "test_autonomous_database_ecpu" {
61+
admin_password = random_string.autonomous_database_admin_password.result
62+
compartment_id = var.compartment_ocid
63+
compute_count = "2.0"
64+
compute_model = "ECPU"
65+
data_storage_size_in_tbs = "1"
66+
db_name = "adbEcpu"
67+
db_version = "19c"
68+
license_model = "LICENSE_INCLUDED"
69+
is_free_tier = "false"
70+
}
71+
6072
resource "oci_database_autonomous_database" "test_autonomous_database_apex" {
6173
admin_password = random_string.autonomous_database_admin_password.result
6274
compartment_id = var.compartment_ocid

examples/database/atp-d/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ resource "oci_database_autonomous_container_database" "test_autonomous_container
5353
weeks_of_month = ["2"]
5454
}
5555
rotate_key_trigger = "true"
56+
version_preference = "LATEST_RELEASE_UPDATE"
5657
}
5758

5859
resource "random_string" "autonomous_database_admin_password" {

examples/database/exadata_cc/adbd-dg/main.tf

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ resource "oci_database_exadata_infrastructure" "primary_exadata_infrastructure"
3939
cloud_control_plane_server1 = "10.32.88.1"
4040
cloud_control_plane_server2 = "10.32.88.3"
4141
compartment_id = var.compartment_ocid
42+
storage_count = 3
43+
compute_count = 2
4244

4345
contacts {
4446
email = "shravan.thatikonda@oracle.com"
@@ -65,6 +67,8 @@ resource "oci_database_exadata_infrastructure" "standby_exadata_infrastructure"
6567
cloud_control_plane_server1 = "10.32.88.1"
6668
cloud_control_plane_server2 = "10.32.88.3"
6769
compartment_id = var.compartment_ocid
70+
storage_count = 3
71+
compute_count = 2
6872

6973
contacts {
7074
email = "johndoe@acme.com"
@@ -112,10 +116,13 @@ resource "oci_database_vm_cluster_network" "primary_vm_cluster_network" {
112116
nodes {
113117
hostname = "myprefix2-cghdm1"
114118
ip = "192.169.19.18"
119+
db_server_id = data.oci_database_db_servers.primary_db_servers.db_servers.0.id
115120
}
116121
nodes {
117122
hostname = "myprefix2-cghdm2"
118123
ip = "192.169.19.20"
124+
db_server_id = data.oci_database_db_servers.primary_db_servers.db_servers.1.id
125+
119126
}
120127
vlan_id = "11"
121128
}
@@ -129,12 +136,14 @@ resource "oci_database_vm_cluster_network" "primary_vm_cluster_network" {
129136
ip = "192.168.19.10"
130137
vip = "192.168.19.11"
131138
vip_hostname = "myprefix1-r64zc1-vip"
139+
db_server_id = data.oci_database_db_servers.primary_db_servers.db_servers.0.id
132140
}
133141
nodes {
134142
hostname = "primaryprefix1-r64zc2"
135143
ip = "192.168.19.14"
136144
vip = "192.168.19.15"
137145
vip_hostname = "primaryprefix1-r64zc2-vip"
146+
db_server_id = data.oci_database_db_servers.primary_db_servers.db_servers.1.id
138147
}
139148
vlan_id = "10"
140149
}
@@ -175,10 +184,12 @@ resource "oci_database_vm_cluster_network" "standby_vm_cluster_network" {
175184
nodes {
176185
hostname = "myprefix2-cghdm1"
177186
ip = "192.169.19.18"
187+
db_server_id = data.oci_database_db_servers.standby_db_servers.db_servers.0.id
178188
}
179189
nodes {
180190
hostname = "myprefix2-cghdm2"
181191
ip = "192.169.19.20"
192+
db_server_id = data.oci_database_db_servers.standby_db_servers.db_servers.1.id
182193
}
183194
vlan_id = "11"
184195
}
@@ -192,13 +203,18 @@ resource "oci_database_vm_cluster_network" "standby_vm_cluster_network" {
192203
ip = "192.168.19.10"
193204
vip = "192.168.19.11"
194205
vip_hostname = "standbyprefix1-r64zc1-vip"
195-
}
206+
db_server_id = data.oci_database_db_servers.standby_db_servers.db_servers.0.id
207+
208+
}
196209
nodes {
197210
hostname = "standbyprefix1-r64zc2"
198211
ip = "192.168.19.14"
199212
vip = "192.168.19.15"
200213
vip_hostname = "standbyprefix1-r64zc2-vip"
201-
}
214+
db_server_id = data.oci_database_db_servers.standby_db_servers.db_servers.1.id
215+
216+
}
217+
202218
vlan_id = "10"
203219
}
204220
#Optional
@@ -217,8 +233,8 @@ resource "oci_database_autonomous_vm_cluster" "primary_autonomous_vm_cluster" {
217233
display_name = "PrimaryVmCluster"
218234
exadata_infrastructure_id = oci_database_exadata_infrastructure.primary_exadata_infrastructure.id
219235
vm_cluster_network_id = oci_database_vm_cluster_network.primary_vm_cluster_network.id
220-
cpu_core_count_per_node = "6"
221-
autonomous_data_storage_size_in_tbs = "1.0"
236+
cpu_core_count_per_node = "10"
237+
autonomous_data_storage_size_in_tbs = "2.0"
222238
memory_per_oracle_compute_unit_in_gbs = "12"
223239
total_container_databases = "2"
224240
#Optional
@@ -240,8 +256,8 @@ resource "oci_database_autonomous_vm_cluster" "standby_autonomous_vm_cluster" {
240256
display_name = "StandbyVmCluster"
241257
exadata_infrastructure_id = oci_database_exadata_infrastructure.standby_exadata_infrastructure.id
242258
vm_cluster_network_id = oci_database_vm_cluster_network.standby_vm_cluster_network.id
243-
cpu_core_count_per_node = "6"
244-
autonomous_data_storage_size_in_tbs = "1.0"
259+
cpu_core_count_per_node = "10"
260+
autonomous_data_storage_size_in_tbs = "2.0"
245261
memory_per_oracle_compute_unit_in_gbs = "12"
246262
total_container_databases = "2"
247263
#Optional
@@ -340,6 +356,26 @@ resource "oci_database_autonomous_container_database_dataguard_association_opera
340356
depends_on = [
341357
oci_database_autonomous_container_database_dataguard_association_operation.failover]
342358
}
359+
360+
resource "oci_database_autonomous_container_database_dataguard_association" dgresource{
361+
autonomous_container_database_id = oci_database_autonomous_container_database.dg_autonomous_container_database.id
362+
autonomous_container_database_dataguard_association_id = data.oci_database_autonomous_container_database_dataguard_associations.primary_autonomous_dg_associations.autonomous_container_database_dataguard_associations[0].id
363+
is_automatic_failover_enabled = false
364+
protection_mode = "MAXIMUM_AVAILABILITY"
365+
fast_start_fail_over_lag_limit_in_seconds = null
366+
}
367+
368+
data "oci_database_db_servers" "primary_db_servers" {
369+
#Required
370+
compartment_id = var.compartment_ocid
371+
exadata_infrastructure_id = oci_database_exadata_infrastructure.primary_exadata_infrastructure.id
372+
}
373+
374+
data "oci_database_db_servers" "standby_db_servers" {
375+
#Required
376+
compartment_id = var.compartment_ocid
377+
exadata_infrastructure_id = oci_database_exadata_infrastructure.standby_exadata_infrastructure.id
378+
}
343379
#### End Resources ####
344380
#######################
345381

examples/database/exadata_cc/adbd-dg/outputs.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ output "primary_autonomous_dg_role" {
4141

4242
output "standby_autonomous_dg_role" {
4343
value = data.oci_database_autonomous_container_database_dataguard_association.standby_autonomous_dg_association.role
44-
}
44+
}
45+

examples/database/exadata_cc/adbd/acd.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ resource "oci_database_autonomous_container_database" "autonomous_container_data
2323
}
2424
patch_model = "RELEASE_UPDATES"
2525
service_level_agreement_type = "STANDARD"
26+
version_preference = "LATEST_RELEASE_UPDATE"
2627
}

examples/devops/deployment_service/deploy_helm_artifact/deploy_helm_artifact.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ resource "oci_devops_deploy_artifact" "test_deploy_helm_artifact" {
6161
argument_substitution_mode = "NONE"
6262
deploy_artifact_source {
6363
deploy_artifact_source_type = "HELM_CHART"
64-
chart_url = "iad.ocir.io/ax022wvgmjpq/fake"
64+
chart_url = "oci://iad.ocir.io/ax022wvgmjpq/fake"
6565
deploy_artifact_version = "0.1"
6666
}
6767
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
/*
2+
This example demonstrates the various ways a helm chart artifact can be created and specifically,
3+
the options available for having a signed helm chart verified per
4+
https://helm.sh/docs/topics/provenance/.
5+
*/
6+
7+
variable "tenancy_ocid" {
8+
}
9+
10+
variable "user_ocid" {
11+
}
12+
13+
variable "fingerprint" {
14+
}
15+
16+
variable "private_key_path" {
17+
}
18+
19+
variable "region" {
20+
}
21+
22+
variable "vault_secret_public_key_ocid" {
23+
}
24+
25+
provider "oci" {
26+
region = var.region
27+
tenancy_ocid = var.tenancy_ocid
28+
user_ocid = var.user_ocid
29+
fingerprint = var.fingerprint
30+
private_key_path = var.private_key_path
31+
}
32+
33+
34+
# OCID of the DevOps project.
35+
variable "project_id" {
36+
}
37+
38+
39+
locals {
40+
chart_url = "oci://iad.ocir.io/namespace/repository/chart-name"
41+
chart_version = "0.0.1"
42+
vault_secret_public_key_ocid = var.vault_secret_public_key_ocid
43+
public_key = "" // Add the public key here
44+
}
45+
46+
47+
resource "oci_devops_deploy_artifact" "helm_chart_implicit_no_public_key" {
48+
#Required
49+
argument_substitution_mode = "SUBSTITUTE_PLACEHOLDERS"
50+
deploy_artifact_source {
51+
#Required
52+
deploy_artifact_source_type = "HELM_CHART"
53+
54+
#Optional
55+
chart_url = local.chart_url
56+
deploy_artifact_version = local.chart_version
57+
}
58+
deploy_artifact_type = "HELM_CHART"
59+
project_id = var.project_id
60+
61+
#Optional
62+
description = "helm chart artifact with no public key"
63+
display_name = "helmChartWithImplicitNoPublicKey"
64+
}
65+
66+
67+
resource "oci_devops_deploy_artifact" "helm_chart_no_public_key" {
68+
#Required
69+
argument_substitution_mode = "SUBSTITUTE_PLACEHOLDERS"
70+
deploy_artifact_source {
71+
#Required
72+
deploy_artifact_source_type = "HELM_CHART"
73+
74+
#Optional
75+
chart_url = local.chart_url
76+
deploy_artifact_version = local.chart_version
77+
78+
helm_verification_key_source {
79+
verification_key_source_type = "NONE"
80+
}
81+
}
82+
deploy_artifact_type = "HELM_CHART"
83+
project_id = var.project_id
84+
85+
#Optional
86+
description = "helm chart artifact with no public key"
87+
display_name = "helmChartWithNoPublicKey"
88+
89+
}
90+
91+
92+
93+
resource "oci_devops_deploy_artifact" "helm_chart_vault_public_key" {
94+
#Required
95+
argument_substitution_mode = "SUBSTITUTE_PLACEHOLDERS"
96+
deploy_artifact_source {
97+
#Required
98+
deploy_artifact_source_type = "HELM_CHART"
99+
100+
#Optional
101+
chart_url = local.chart_url
102+
deploy_artifact_version = local.chart_version
103+
104+
helm_verification_key_source {
105+
verification_key_source_type = "VAULT_SECRET"
106+
vault_secret_id = local.vault_secret_public_key_ocid
107+
}
108+
}
109+
deploy_artifact_type = "HELM_CHART"
110+
project_id = var.project_id
111+
112+
#Optional
113+
description = "helm chart artifact with vault public key"
114+
display_name = "helmChartVaultPublicKey"
115+
116+
117+
}
118+
119+
120+
resource "oci_devops_deploy_artifact" "helm_chart_inline_public_key" {
121+
#Required
122+
argument_substitution_mode = "SUBSTITUTE_PLACEHOLDERS"
123+
deploy_artifact_source {
124+
#Required
125+
deploy_artifact_source_type = "HELM_CHART"
126+
127+
#Optional
128+
chart_url = local.chart_url
129+
deploy_artifact_version = local.chart_version
130+
131+
helm_verification_key_source {
132+
verification_key_source_type = "INLINE_PUBLIC_KEY"
133+
current_public_key = local.public_key
134+
previous_public_key = local.public_key
135+
}
136+
}
137+
deploy_artifact_type = "HELM_CHART"
138+
project_id = var.project_id
139+
140+
#Optional
141+
description = "helm chart artifact with inline public keys"
142+
display_name = "helmChartInlinePublicKeys"
143+
144+
}
145+
146+
data "oci_devops_deploy_artifact" "retrieve_artifact_with_vault_public_key" {
147+
deploy_artifact_id = oci_devops_deploy_artifact.helm_chart_vault_public_key.id
148+
}
149+
150+
data "oci_devops_deploy_artifact" "retrieve_artifact_with_inline_public_key" {
151+
deploy_artifact_id = oci_devops_deploy_artifact.helm_chart_inline_public_key.id
152+
}
153+
154+
data "oci_devops_deploy_artifact" "retrieve_artifact_with_no_public_key" {
155+
deploy_artifact_id = oci_devops_deploy_artifact.helm_chart_no_public_key.id
156+
}
157+
158+
data "oci_devops_deploy_artifact" "retrieve_artifact_implicit_no_public_key" {
159+
deploy_artifact_id = oci_devops_deploy_artifact.helm_chart_implicit_no_public_key.id
160+
}
161+
162+
163+
output helm_chart_implicit_no_public_key {
164+
value = data.oci_devops_deploy_artifact.retrieve_artifact_implicit_no_public_key
165+
}
166+
167+
output helm_chart_no_public_key {
168+
value = data.oci_devops_deploy_artifact.retrieve_artifact_with_no_public_key
169+
}
170+
171+
output helm_chart_vault_public_key {
172+
value = data.oci_devops_deploy_artifact.retrieve_artifact_with_vault_public_key
173+
}
174+
175+
output helm_chart_inline_public_key {
176+
value = data.oci_devops_deploy_artifact.retrieve_artifact_with_inline_public_key
177+
}
178+

0 commit comments

Comments
 (0)