Skip to content

Commit 8cd2a17

Browse files
authored
Merge pull request #2044 from oracle/release_gh
Releasing version 5.29.0
2 parents ed18573 + 0972ee6 commit 8cd2a17

File tree

234 files changed

+2426
-244
lines changed

Some content is hidden

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

234 files changed

+2426
-244
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 5.29.0 (February 14, 2024)
2+
3+
### Added
4+
- Support for ADB-S: Replicating backups across regions for Cross-Region DR
5+
- Support for Logging Analytics Hemlock Release
6+
- Support for Network Path Analyzer: Support Overlapping Cidr
7+
### Bug Fix
8+
- Fix Addon Configuration Update
9+
110
## 5.28.0 (February 07, 2024)
211

312
### Added

examples/container_engine/addons/main.tf

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,22 @@
11
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
22
// Licensed under the Mozilla Public License v2.0
3-
variable "user_ocid" {
4-
}
5-
6-
variable "fingerprint" {
7-
}
8-
9-
variable "private_key_path" {
10-
}
11-
123
variable "region" {
134
default = "us-ashburn-1"
145
}
156

16-
177
variable "tenancy_ocid" {
188
}
199

20-
variable "cluster_id" {
21-
22-
}
23-
24-
variable "kubernetes_version" {
25-
10+
variable "config_file_profile" {
2611
}
2712

2813
variable "compartment_ocid" {
2914
}
3015

3116
provider "oci" {
32-
region = var.region
33-
tenancy_ocid = var.tenancy_ocid
34-
user_ocid = var.user_ocid
35-
fingerprint = var.fingerprint
36-
private_key_path = var.private_key_path
17+
region = var.region
18+
auth = "SecurityToken"
19+
config_file_profile = var.config_file_profile
3720
}
3821

3922
/*
@@ -142,6 +125,7 @@ data "oci_containerengine_cluster_option" "test_cluster_option" {
142125

143126
data "oci_containerengine_node_pool_option" "test_node_pool_option" {
144127
node_pool_option_id = "all"
128+
compartment_id = var.compartment_ocid
145129
}
146130

147131
data "oci_core_images" "shape_specific_images" {
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
resource "random_string" "autonomous_database_admin_password" {
5+
length = 16
6+
min_numeric = 1
7+
min_lower = 1
8+
min_upper = 1
9+
min_special = 1
10+
}
11+
resource "time_sleep" "wait_300_seconds" {
12+
destroy_duration = "5m"
13+
depends_on = [oci_database_autonomous_database.autonomous_database_cross_region_dr_primary]
14+
}
15+
16+
resource "oci_database_autonomous_database" "autonomous_database_cross_region_dr_primary" {
17+
admin_password = random_string.autonomous_database_admin_password.result
18+
compartment_id = var.compartment_id
19+
cpu_core_count = "1"
20+
data_storage_size_in_tbs = "1"
21+
db_name = "adbdb11ff2"
22+
db_version = "19c"
23+
license_model = "LICENSE_INCLUDED"
24+
is_free_tier = "false"
25+
}
26+
27+
resource "oci_database_autonomous_database" "autonomous_database_cross_region_dr_standby" {
28+
#Note: this should be provisioned in another region as the source database.
29+
provider = oci.peer_region
30+
31+
#Required for cross-region standby
32+
compartment_id = var.compartment_id
33+
source = "CROSS_REGION_DISASTER_RECOVERY"
34+
source_id = oci_database_autonomous_database.autonomous_database_cross_region_dr_primary.id
35+
db_name = oci_database_autonomous_database.autonomous_database_cross_region_dr_primary.db_name
36+
is_replicate_automatic_backups = "true"
37+
}
38+
39+
data "oci_database_autonomous_databases" "autonomous_databases" {
40+
filter {
41+
name = "id"
42+
values = [oci_database_autonomous_database.autonomous_database_cross_region_dr_standby.id]
43+
}
44+
45+
filter {
46+
name = "peer_db_ids"
47+
values = [oci_database_autonomous_database.autonomous_database_cross_region_dr_primary.id]
48+
}
49+
50+
filter {
51+
name = "role"
52+
values = ["STANDBY"]
53+
}
54+
55+
#Required
56+
compartment_id = var.compartment_id
57+
58+
#Optional
59+
display_name = oci_database_autonomous_database.autonomous_database_cross_region_dr_standby.display_name
60+
}
61+
62+
output "autonomous_databases" {
63+
value = data.oci_database_autonomous_databases.autonomous_databases.autonomous_databases
64+
}
65+
66+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {
5+
}
6+
7+
variable "user_ocid" {
8+
}
9+
10+
variable "fingerprint" {
11+
}
12+
13+
variable "private_key_path" {
14+
}
15+
16+
variable "region" {
17+
default = "us-phoenix-1"
18+
}
19+
20+
variable "peer_region" {
21+
default = "us-ashburn-1"
22+
}
23+
24+
variable "compartment_id" {
25+
}
26+
27+
provider "oci" {
28+
region = var.region
29+
tenancy_ocid = var.tenancy_ocid
30+
user_ocid = var.user_ocid
31+
fingerprint = var.fingerprint
32+
private_key_path = var.private_key_path
33+
}
34+
35+
provider "oci" {
36+
alias = "peer_region"
37+
region = var.peer_region
38+
tenancy_ocid = var.tenancy_ocid
39+
user_ocid = var.user_ocid
40+
fingerprint = var.fingerprint
41+
private_key_path = var.private_key_path
42+
}

examples/log_analytics/entity.tf renamed to examples/log_analytics/entity/entity.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ resource "oci_log_analytics_log_analytics_entity" "entityOptional" {
2929
entity_type_name = "Host (Linux)"
3030
management_agent_id = var.managed_agent_id
3131
hostname = "aa.domainname.com"
32+
time_last_discovered = "2023-09-12T20:30:00.006Z"
33+
metadata {
34+
items {
35+
name = "environment1"
36+
type = "infrastructure1"
37+
value = "test1"
38+
}
39+
items {
40+
name = "environment2"
41+
type = "infrastructure2"
42+
value = "test2"
43+
}
44+
}
3245
timezone_region = "PST8PDT"
3346
properties = tomap({"JAVA_HOME" = "/usr/java/jdk1.8.0_202-amd64", "version" = "OEL-7uek"})
3447
freeform_tags = tomap({"servicegroup" = "test", "Dept" = "Devops"})

examples/log_analytics/entity_topology/entity_topology.tf renamed to examples/log_analytics/entity/entity_topology.tf

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data "oci_objectstorage_namespace" "ns" {
2626
}
2727

2828
# Sample create entity with required parameters.
29-
resource "oci_log_analytics_log_analytics_entity" "entityRequired" {
29+
resource "oci_log_analytics_log_analytics_entity" "entityTopologyRequired" {
3030
compartment_id = var.compartment_ocid
3131
namespace = data.oci_objectstorage_namespace.ns.namespace
3232
name = "tf-entity-example-topo-req"
@@ -36,12 +36,27 @@ resource "oci_log_analytics_log_analytics_entity" "entityRequired" {
3636
# Get entity topo details of above created entity with required parameters
3737
data "oci_log_analytics_log_analytics_entity_topology" "entityTopoRequiredDetails" {
3838
namespace = data.oci_objectstorage_namespace.ns.namespace
39-
log_analytics_entity_id = oci_log_analytics_log_analytics_entity.entityRequired.id
39+
log_analytics_entity_id = oci_log_analytics_log_analytics_entity.entityTopologyRequired.id
4040
}
4141

4242
# Get entity topo details of above created entity with required parameters
4343
data "oci_log_analytics_log_analytics_entity_topology" "entityTopoOptionalDetails" {
4444
namespace = data.oci_objectstorage_namespace.ns.namespace
45-
log_analytics_entity_id = oci_log_analytics_log_analytics_entity.entityRequired.id
45+
log_analytics_entity_id = oci_log_analytics_log_analytics_entity.entityTopologyRequired.id
4646
state = "ACTIVE"
4747
}
48+
49+
# Sample create entity with optional parameters
50+
resource "oci_log_analytics_log_analytics_entity" "entityTopologyOptional" {
51+
compartment_id = var.compartment_ocid
52+
namespace = data.oci_objectstorage_namespace.ns.namespace
53+
name = "tf-entity-example-opt"
54+
entity_type_name = "Host (Linux)"
55+
metadata {
56+
items {
57+
name = "environment"
58+
type = "infrastructure"
59+
value = "test"
60+
}
61+
}
62+
}

examples/log_analytics/ingest_time_rules/ingest_time_rule.tf

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ resource "oci_log_analytics_namespace_ingest_time_rules_management" "ingest_time
9898
data "oci_log_analytics_namespace_ingest_time_rule" "ingest_time_rule" {
9999
namespace = data.oci_objectstorage_namespace.ns.namespace
100100
ingest_time_rule_id = oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full.id
101-
102-
depends_on = [oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full]
103101
}
104102

105103
# Fetch all ingest time rules in a compartment (with options and filter)
@@ -116,8 +114,6 @@ data "oci_log_analytics_namespace_ingest_time_rules" "ingest_time_rules" {
116114
name = "id"
117115
values = [oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full.id]
118116
}
119-
120-
depends_on = [oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_minimal, oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full]
121117
}
122118

123119
# Fetch all rules (INGEST_TIME and/or SAVED_SEARCH) in a compartment
@@ -127,14 +123,20 @@ data "oci_log_analytics_namespace_rules" "rules" {
127123
display_name = "displayName"
128124
kind = "INGEST_TIME"
129125
state = "ACTIVE"
126+
}
130127

131-
depends_on = [oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_minimal, oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full]
128+
# Fetch all rules (INGEST_TIME and/or SAVED_SEARCH) in a compartment with target_service=MONITORING
129+
data "oci_log_analytics_namespace_rules" "rules_target_monitoring" {
130+
compartment_id = var.compartment_ocid
131+
namespace = data.oci_objectstorage_namespace.ns.namespace
132+
display_name = "displayName"
133+
kind = "INGEST_TIME"
134+
target_service = "MONITORING"
135+
state = "ACTIVE"
132136
}
133137

134138
# Fetch rules summary
135139
data "oci_log_analytics_namespace_rules_summary" "rules_summary" {
136140
compartment_id = var.compartment_ocid
137141
namespace = data.oci_objectstorage_namespace.ns.namespace
138-
139-
depends_on = [oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_minimal, oci_log_analytics_namespace_ingest_time_rule.ingest_time_rule_full]
140-
}
142+
}

examples/log_analytics/object_collection_rule/object_collection_rule.tf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,20 @@ data "oci_objectstorage_namespace" "ns" {
2828
variable "log_analytics_log_group_id" {}
2929
variable "log_analytics_entity_id" {}
3030
variable "object_collection_rule_bucket_name" {}
31+
variable "object_collection_rule_bucket_name_log_events" {}
3132

3233
variable "object_collection_rule_name" {
3334
default = "tf-obj-coll-example-opt"
3435
}
36+
variable "object_collection_rule_name_log_events" {
37+
default = "tf-obj-coll-example-log-events"
38+
}
3539
variable "object_collection_rule_freeform_tags" {
3640
default = { "servicegroup" = "test", "Dept" = "Devops" }
3741
}
42+
variable "object_collection_rule_log_type" {
43+
default = "LOG"
44+
}
3845
variable "object_collection_rule_log_source_name" {
3946
default = "LinuxSyslogSource"
4047
}
@@ -44,6 +51,9 @@ variable "object_collection_rule_description" {
4451
variable "object_collection_rule_collection_type" {
4552
default = "HISTORIC"
4653
}
54+
variable "object_collection_rule_is_force_historic_collection" {
55+
default = "false"
56+
}
4757
variable "object_collection_rule_poll_since" {
4858
default = "2020-04-01T00:00:00.000Z"
4959
}
@@ -107,11 +117,13 @@ resource "oci_log_analytics_log_analytics_object_collection_rule" "objectCollect
107117
namespace = data.oci_objectstorage_namespace.ns.namespace
108118
name = var.object_collection_rule_name
109119
log_group_id = var.log_analytics_log_group_id
120+
log_type = var.object_collection_rule_log_type
110121
log_source_name = var.object_collection_rule_log_source_name
111122
os_bucket_name = var.object_collection_rule_bucket_name
112123
os_namespace = data.oci_objectstorage_namespace.ns.namespace
113124
description = var.object_collection_rule_description
114125
collection_type = var.object_collection_rule_collection_type
126+
is_force_historic_collection = var.object_collection_rule_is_force_historic_collection
115127
log_set = var.object_collection_rule_log_set
116128
log_set_ext_regex = var.object_collection_rule_log_set_ext_regex
117129
log_set_key = var.object_collection_rule_log_set_key
@@ -136,6 +148,24 @@ resource "oci_log_analytics_log_analytics_object_collection_rule" "objectCollect
136148
is_enabled = var.object_collection_rule_is_enabled
137149
}
138150

151+
# Create a object collection rule with optional parameters
152+
resource "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleLogEventsType" {
153+
compartment_id = var.compartment_ocid
154+
namespace = data.oci_objectstorage_namespace.ns.namespace
155+
name = var.object_collection_rule_name_log_events
156+
log_group_id = var.log_analytics_log_group_id
157+
log_source_name = var.object_collection_rule_log_source_name
158+
os_bucket_name = var.object_collection_rule_bucket_name_log_events
159+
os_namespace = data.oci_objectstorage_namespace.ns.namespace
160+
collection_type = var.object_collection_rule_collection_type
161+
log_set = var.object_collection_rule_log_set
162+
poll_since = var.object_collection_rule_poll_since
163+
poll_till = var.object_collection_rule_poll_till
164+
freeform_tags = var.object_collection_rule_freeform_tags
165+
log_type = "LOG_EVENTS"
166+
is_enabled = var.object_collection_rule_is_enabled
167+
}
168+
139169
# Get details of above created object collection rule with optional parameters
140170
data "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleOptionalDetails" {
141171
namespace = data.oci_objectstorage_namespace.ns.namespace

examples/log_analytics/storage_recall/recall.tf

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,22 @@ output "overlapping_recalls_all_status" {
7676
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_all.overlapping_recall_collection[0].items[0].status
7777
}
7878

79+
output "overlapping_recalls_all_collection_id" {
80+
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_all.overlapping_recall_collection[0].items[0].collection_id
81+
}
82+
83+
output "overlapping_recalls_all_recall_id" {
84+
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_all.overlapping_recall_collection[0].items[0].recall_id
85+
}
86+
7987
output "overlapping_recalls_range_status" {
8088
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_range.overlapping_recall_collection[0].items[0].status
81-
}
89+
}
90+
91+
output "overlapping_recalls_range_collection_id" {
92+
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_range.overlapping_recall_collection[0].items[0].collection_id
93+
}
94+
95+
output "overlapping_recalls_range_recall_id" {
96+
value = data.oci_log_analytics_namespace_storage_overlapping_recalls.overlapping_recalls_range.overlapping_recall_collection[0].items[0].recall_id
97+
}

0 commit comments

Comments
 (0)