Skip to content

Commit

Permalink
Merge pull request #2287 from oracle/release_gh
Browse files Browse the repository at this point in the history
Releasing version 6.24.0
  • Loading branch information
Maxrovr authored Jan 29, 2025
2 parents 4b6f943 + dfbe08d commit fad14b7
Show file tree
Hide file tree
Showing 410 changed files with 19,237 additions and 246 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
## 6.23.0 (Unreleased)
## 6.24.0 (January 29, 2025)

### Added
- Support for External HSM Support ExaDB-C@C
- Support for Ops Insights : Support External MySQL Databases
- Support for DBM : Support External MySQL Databases
- Support for OPSI News Reports - Actionable Insights
- Support DR for cloud native applications running on OKE
### Bug Fix
to use the correct Id for updating options config resource

## 6.23.0 (January 29, 2025)

### Added
- Support for VCNIP - BYOASN (Bring Your Own ASN)
Expand Down
11 changes: 10 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,13 @@ check-module-name:
@sh -c "'$(CURDIR)/scripts/gomodnamecheck.sh'"

buildpyEnv:
cd ./terraform-test-resources/dev_tools/teamcity_scripts/python_script; @echo $(SCRIPT_ARG) ; sh run_python_script.sh
cd ./terraform-test-resources/dev_tools/teamcity_scripts/python_script; @echo $(SCRIPT_ARG) ; sh run_python_script.sh

buildpyEnv:
@if [ -d "./terraform-test-resources" ]; then \
cd ./terraform-test-resources/dev_tools/teamcity_scripts/python_script; \
echo $(SCRIPT_ARG); \
sh run_python_script.sh; \
else \
echo "Skipping script execution: terraform-test-resources submodule not found."; \
fi
13 changes: 9 additions & 4 deletions examples/database/exadata_cc/vm_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ resource "oci_database_vm_cluster" "test_vm_cluster" {
cpu_core_count = "4"
display_name = "testVmCluster"
exadata_infrastructure_id = oci_database_exadata_infrastructure.test_exadata_infrastructure.id
gi_version = data.oci_database_gi_versions.gi_version.gi_versions.0.version
gi_version = "23.0.0.0.0"
ssh_public_keys = [var.ssh_public_key]
vm_cluster_network_id = oci_database_vm_cluster_network.test_vm_cluster_network.id
db_servers = [data.oci_database_db_servers.test_db_servers.db_servers.0.id, data.oci_database_db_servers.test_db_servers.db_servers.1.id]
Expand Down Expand Up @@ -269,7 +269,7 @@ data "oci_database_vm_cluster_recommended_network" "test_vm_cluster_recommended_
resource "oci_database_db_home" "test_db_home_vm_cluster" {
vm_cluster_id = oci_database_vm_cluster.test_vm_cluster.id
source = "VM_CLUSTER_NEW"
db_version = "12.1.0.2"
db_version = "19.0.0.0"
display_name = "createdDbHome"
}

Expand All @@ -295,6 +295,11 @@ resource "oci_database_database" "test_exacc_database"{
type = "NFS"
}
}
encryption_key_location_details {
#Required
hsm_password = "hsmPassword"
provider_type = "EXTERNAL"
}
}
db_home_id = oci_database_db_home.test_db_home_vm_cluster.id
source = "NONE"
Expand Down Expand Up @@ -339,9 +344,9 @@ data "oci_database_vm_clusters" "test_vm_clusters" {
#Optional
exadata_infrastructure_id = oci_database_exadata_infrastructure.test_exadata_infrastructure.id
}

/*
resource "local_file" "test_vm_cluster_network_downloaded_config_file" {
content = data.oci_database_vm_cluster_network_download_config_file.test_vm_cluster_network_download_config_file.content
filename = "${path.module}/vm_cluster_config.txt"
}

*/
73 changes: 73 additions & 0 deletions examples/databasemanagement/mysql/external/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}

provider "oci" {
//version = "5.36.0"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}

variable "compartment_id" {
default = "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"
}

/*Creates an external MySQL database resource */
resource "oci_database_management_external_my_sql_database" "test_external_my_sql_database" {
#Required
compartment_id = var.compartment_id
db_name = "ExampleNameTest"
}

data "oci_database_management_external_my_sql_databases" "test_external_my_sql_databases" {
#Required
compartment_id = var.compartment_id

#Optional
name = "ExampleNameTest"
}

/*Creates a database connecotor resource. Connector requires an external MySQL database to associate with. */
resource "oci_database_management_external_my_sql_database_connector" "test_external_my_sql_database_connector" {
#Required
compartment_id = "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"
connector_details {
#Required
credential_type = "MYSQL_EXTERNAL_NON_SSL_CREDENTIALS"
display_name = "EXAMPLE-Name-Test"
external_database_id = "ocid1.test.oc1..<unique_ID>EXAMPLE-externalDatabase-Value"
host_name = "exampleHost"
macs_agent_id = "ocid1.test.oc1..<unique_ID>EXAMPLE-agent-Value"
network_protocol = "TCP"
port = "10"
ssl_secret_id = "ocid1.test.oc1..<unique_ID>EXAMPLE-secret-Value"
}
is_test_connection_param = "false"
}

data "oci_database_management_external_my_sql_database_connectors" "test_external_my_sql_database_connectors" {
#Required
compartment_id = var.compartment_id

#Optional
name = "ExampleTest"
}

/*To enable/disable database management, provide an external MySQL database OCID and connector OCID.
"true" to enable and "false" to disable. In this example database management is being enabled for the external MySQL database
using the given connector.*/
resource "oci_database_management_external_my_sql_database_external_mysql_databases_management" "test_external_my_sql_database_external_mysql_databases_management" {
#Required

external_my_sql_database_id = "ocid1.test.oc1..<unique_ID>EXAMPLE-database-Value"

enable_external_mysql_database = "true"

#Optional
connector_id ="ocid1.test.oc1..<unique_ID>EXAMPLE-connector-Value"
}
22 changes: 17 additions & 5 deletions examples/databasemanagement/mysql/main.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
// Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0

variable "tenancy_ocid" {}
variable "start_time" {}
variable "end_time" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}

provider "oci" {
// version = "5.36.0"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
Expand All @@ -16,7 +19,8 @@ provider "oci" {
}

variable "compartment_id" {
default = "<compartment.ocid>"

default = "ocid1.test.oc1..<unique_ID>EXAMPLE-compartment-Value"
}

# List managed MySQL database resources in a compartment
Expand All @@ -42,6 +46,14 @@ data "oci_database_management_managed_my_sql_database_sql_data" "test_managed_my
#Required
managed_my_sql_database_id = data.oci_database_management_managed_my_sql_databases.test_managed_my_sql_databases.managed_my_sql_database_collection.0.items.0.id
filter_column = "COUNT_STAR"
start_time = replace(timeadd(timestamp(), "-2h"), "/Z/", ".000Z")
end_time = replace(timestamp(), "/Z/", ".000Z")
}

// The start_time and end_time of the time range to retrieve the SQL data of a Managed Database
//in UTC in ISO-8601 format, for example "2024-04-14T17:23:13.000Z".
start_time = var.start_time
end_time = var.end_time


}



28 changes: 28 additions & 0 deletions examples/disaster_recovery/dr_oke/bucket.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
variable "bucket_name" {
default = "testBucketName_1"
}

variable "bucket_namespace" {
default = "ansh8lvru1zp"
}

data "oci_identity_tenancy" "test_tenancy" {
#Required
tenancy_id = var.tenancy_ocid
}

data "oci_objectstorage_namespace" "test_namespace" {

#Optional
compartment_id = var.compartment_id
}

data "oci_objectstorage_bucket" "test_bucket" {
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
name = var.bucket_name
}

data "oci_objectstorage_bucket" "test_member_bucket" {
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
name = "example-bucket-source"
}
117 changes: 117 additions & 0 deletions examples/disaster_recovery/dr_oke/dr_oke.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0

variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}
variable "compartment_id" {
default = "ocid1.tenancy.oc1..aaaaaaaahowp4zu5z3p3to5mj7vjtlo7zqi2qmbjiij73vfulltlmvtf624a"
}
variable "disassociate_trigger" {
default = 0
}

variable "dr_protection_group_association_peer_region" {
default = "us-ashburn-1"
}

variable "dr_protection_group_association_role" {
default = "STANDBY"
}

variable "dr_protection_group_defined_tags_value" {
default = "value"
}

variable "dr_protection_group_display_name" {
default = "displayName"
}

variable "dr_protection_group_freeform_tags" {
default = { "Department" = "Finance" }
}

variable "dr_protection_group_members_member_type_oke_cluster" {
default = "OKE_CLUSTER"
}

variable "dr_protection_group_state" {
default = "ACTIVE"
}

provider "oci" {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}

resource "oci_disaster_recovery_dr_protection_group" "test_peer" {
#Required
compartment_id = var.compartment_id
display_name = var.dr_protection_group_display_name
log_location {
#Required
bucket = data.oci_objectstorage_bucket.test_bucket.name
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
}

# Add OKE as a member
members {
#Required
member_id = data.oci_containerengine_clusters.test_clusters.clusters[0].id
member_type = var.dr_protection_group_members_member_type_oke_cluster
peer_cluster_id = data.oci_containerengine_clusters.peer_clusters.clusters[0].id
}
}

resource "oci_disaster_recovery_dr_protection_group" "test_dr_protection_group" {
#Required
compartment_id = var.compartment_id
display_name = var.dr_protection_group_display_name
log_location {
#Required
bucket = data.oci_objectstorage_bucket.test_bucket.name
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
}

lifecycle {
ignore_changes = [defined_tags]
}

#Optional
members {
#Required
member_id = data.oci_containerengine_clusters.peer_clusters.clusters[0].id
member_type = var.dr_protection_group_members_member_type_oke_cluster
peer_cluster_id = data.oci_containerengine_clusters.test_clusters.clusters[0].id
}

association {
#Required
role = var.dr_protection_group_association_role

#Optional
peer_id = oci_disaster_recovery_dr_protection_group.test_peer.id
peer_region = var.dr_protection_group_association_peer_region
}

#Optional
disassociate_trigger = var.disassociate_trigger

defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.dr_protection_group_defined_tags_value}")
freeform_tags = var.dr_protection_group_freeform_tags
}

data "oci_disaster_recovery_dr_protection_groups" "test_dr_protection_groups" {
#Required
compartment_id = var.compartment_id

#Optional
display_name = var.dr_protection_group_display_name
dr_protection_group_id = oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id
state = var.dr_protection_group_state
}
30 changes: 30 additions & 0 deletions examples/disaster_recovery/dr_oke/oke_cluster.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0

variable "primary_cluster_name" {
description = "Primary OKE cluster"
type = string
default = "myCluster"
}

variable "peer_cluster_name" {
description = "Peer OKE cluster"
type = string
default = "peerCluster"
}

data "oci_containerengine_clusters" "test_clusters" {
#Required
compartment_id = var.compartment_id

#Optional
name = var.primary_cluster_name
}

data "oci_containerengine_clusters" "peer_clusters" {
#Required
compartment_id = var.compartment_id

#Optional
name = var.peer_cluster_name
}
Loading

0 comments on commit fad14b7

Please sign in to comment.