Skip to content

Commit ac1bd3c

Browse files
skommalaabhijit-paranjpetelakeroberto-sanchez-herreraPM-Darshan
authored
Development (#318)
Merge from development into main --------- Co-authored-by: Abhijit Paranjpe <[email protected]> Co-authored-by: telake <[email protected]> Co-authored-by: Roberto Sanchez Herrera <[email protected]> Co-authored-by: P M Darshan <[email protected]> Co-authored-by: C R Aniruddh Srivatsa <[email protected]> Co-authored-by: Mahuwa Barman <[email protected]> Co-authored-by: Chintamani Bhat <[email protected]> Co-authored-by: Sarada Kommalapati <[email protected]> Co-authored-by: Adrian Padilla Duarte <[email protected]> Co-authored-by: Mahuwa-Barman <[email protected]> Co-authored-by: srjanaki <[email protected]> Co-authored-by: ManviGupta-prog <[email protected]> Co-authored-by: Ananya Tripathi <[email protected]>
1 parent 67cb3b7 commit ac1bd3c

23 files changed

+421
-31
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Copyright (c) 2023,2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
tf_script_version = "25.1.3-250310205030"
4+
tf_script_version = "25.2.1-250501174252"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaawd5ti5ldjzdppppi675onvo3mvjcwt64jjey7rib3beau2ngkl2q"
7-
listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaa2vaqsz6evogb5jr2dhpdlbyqcnyydpcdljpi5plemo2roru6ld3a"
7+
listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaajrz5nejct4fotwr32os5vstdxmqei6kmdg3pdbawmb5z45do7z3a"
99

1010
ucm_listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaa653zc2e4fsem5hhwinmfgnv3xp4dmbq6c6gvf45okxf6xz3smhiq"
11-
ucm_listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
12-
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaat4dyc73wuxeccdsegmjgdbt7v3xxtdcwo6hgbvdep5xe2mybvmva"
11+
ucm_listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaaoz7wfnqx73jwv7wi7ygvl6u7ibqkx5fkxtuojslub2zg3rt243ya"
13+
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Copyright (c) 2023,2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
tf_script_version = "25.1.3-250310205030"
4+
tf_script_version = "25.2.1-250501174252"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaa653zc2e4fsem5hhwinmfgnv3xp4dmbq6c6gvf45okxf6xz3smhiq"
7-
listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaat4dyc73wuxeccdsegmjgdbt7v3xxtdcwo6hgbvdep5xe2mybvmva"
7+
listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaaoz7wfnqx73jwv7wi7ygvl6u7ibqkx5fkxtuojslub2zg3rt243ya"
9+
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (c) 2023,2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
tf_script_version = "25.1.3-250310205030"
4+
tf_script_version = "25.2.1-250501174252"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaalcwal6mfwjbezzqyj3waoxrvigml4n3lcn3hfday3ozetjqn25a"
7-
listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaa3qzkazz7it2emgju5btaccnkro6wbz6mmbw7np3im6nky7srqsva"
7+
listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaanbgbtvim2nr2qzg2w5ojoizpbynwjxlxkwdoxlr2wh2254t5sklq"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Copyright (c) 2023,2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
tf_script_version = "25.1.3-250310205030"
4+
tf_script_version = "25.2.1-250501174252"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaajl5w3d76x5vdc4n7oqjpsxh4jtwivclvvp6gj4em3kufju6sftga"
7-
listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaa3qzkazz7it2emgju5btaccnkro6wbz6mmbw7np3im6nky7srqsva"
7+
listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaamoezz5gwft4hyerr2er6y3cy2gpqyucuyvwuwqixwmdyqonegfwa"
99

1010
ucm_listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaq2vkow7zwkxg6ky4zxsnckdlfgtgmg7i4kkyev3y6zyo72mpkgza"
11-
ucm_listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
12-
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaab346dek7j74rmxvm2hx2cquyncuvrxzwxyyswiqek4mwg52o4iia"
11+
ucm_listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaaphngemq3h2c3tt4wym5oofln7vhyp7cwk2jko7bsqhrxoezdccma"
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Copyright (c) 2023,2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

4-
tf_script_version = "25.1.3-250310205030"
4+
tf_script_version = "25.2.1-250501174252"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaq2vkow7zwkxg6ky4zxsnckdlfgtgmg7i4kkyev3y6zyo72mpkgza"
7-
listing_resource_version = "25.1.3-ol8.8-23.12.13-250310-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaab346dek7j74rmxvm2hx2cquyncuvrxzwxyyswiqek4mwg52o4iia"
9-
7+
listing_resource_version = "25.2.1-ol8.8-23.12.13-250501-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaaphngemq3h2c3tt4wym5oofln7vhyp7cwk2jko7bsqhrxoezdccma"

terraform/locals.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ locals {
190190
is_rms_private_endpoint_required = var.is_rms_private_endpoint_required && var.wls_existing_vcn_id != "" && var.wls_subnet_id != "" && !local.assign_weblogic_public_ip ? true : false
191191
add_new_rms_private_endpoint = local.is_rms_private_endpoint_required && var.add_rms_private_endpoint == "Create New Resource Manager Endpoint" ? true : false
192192
add_existing_rms_private_endpoint = local.is_rms_private_endpoint_required && var.add_rms_private_endpoint == "Use Existing Resource Manager Endpoint" ? true : false
193+
194+
# OS Management Hub
195+
enable_osmh = var.enable_osmh
196+
select_existing_profile = var.select_existing_profile
197+
create_profile = (local.enable_osmh && !local.select_existing_profile) ? true : false
198+
profile_ocid = local.select_existing_profile ? var.profile_ocid : ""
199+
profile_compartment_id = var.profile_compartment_id
200+
profile_name = var.profile_name
193201

194202
# Secured Production Mode
195203
preserve_boot_properties = var.configure_secure_mode ? var.preserve_boot_properties : true

terraform/main.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ module "policies" {
238238
use_apm_service = local.use_apm_service
239239
apm_domain_compartment_id = local.apm_domain_compartment_id
240240
use_autoscaling = var.use_autoscaling
241+
enable_osmh = var.enable_osmh
241242
ocir_auth_token_id = var.ocir_auth_token_id
242243
add_fss = var.add_fss
243244
add_load_balancer = local.add_load_balancer
@@ -588,6 +589,13 @@ module "observability-autoscaling" {
588589
}
589590
}
590591

592+
module "observability-osmh"{
593+
source = "./modules/observability/osmh"
594+
count = local.create_profile ? 1 : 0
595+
tenancy_id = var.tenancy_ocid
596+
display_name = var.profile_name
597+
compartment_id = local.profile_compartment_id
598+
}
591599

592600
module "compute" {
593601
source = "./modules/compute/wls_compute"
@@ -606,8 +614,7 @@ module "compute" {
606614
wls_subnet_id = var.wls_subnet_id
607615
region = var.region
608616
ssh_public_key = var.ssh_public_key
609-
compute_nsg_ids = local.compute_nsg_ids
610-
617+
compute_nsg_ids = local.compute_nsg_ids
611618
tenancy_id = var.tenancy_ocid
612619
tf_script_version = var.tf_script_version
613620
use_regional_subnet = local.use_regional_subnet
@@ -632,6 +639,7 @@ module "compute" {
632639
wls_server_startup_args = var.wls_server_startup_args
633640
wls_existing_vcn_id = var.wls_existing_vcn_id
634641
create_policies = var.create_policies
642+
enable_osmh = var.enable_osmh
635643
place_all_compute_in_same_ad = var.place_all_compute_in_same_ad
636644

637645
# Secured Production Mode
@@ -704,6 +712,8 @@ module "compute" {
704712
log_group_id = element(concat(module.observability-common[*].log_group_id, [""]), 0)
705713
use_oci_logging = var.use_oci_logging
706714

715+
profile_ocid = var.profile_ocid == "" ? (element(concat(module.observability-osmh[*].profile_ocid, [""]), 0)) : var.profile_ocid
716+
707717
use_apm_service = local.use_apm_service
708718
apm_domain_compartment_id = local.apm_domain_compartment_id
709719
apm_domain_id = var.apm_domain_id

terraform/modules/compute/instance/instance.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ resource "oci_core_instance" "these" {
5959
}
6060

6161
lifecycle {
62-
ignore_changes = [metadata, shape, shape_config, source_details, defined_tags, freeform_tags]
62+
ignore_changes = [metadata, shape, shape_config, source_details, defined_tags, freeform_tags, agent_config]
6363
}
6464
}

terraform/modules/compute/wls_compute/observability_variables.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@ variable "scaleout_notification_topic_id" {
8888
type = string
8989
description = "The OCID of the notification topic for scale out operation"
9090
}
91+
variable "profile_ocid"{
92+
type = string
93+
description = "The OCID of the created profile"
94+
}
95+
variable "enable_osmh"{
96+
type = bool
97+
description = "Indicating that OSMH is enabled"
98+
}

terraform/modules/compute/wls_compute/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,5 @@ variable "certificate_id" {
351351
type = string
352352
description = "The OCID of the SSL certificate to configure a secure WebLogic domain"
353353
default = ""
354-
}
354+
}
355+

0 commit comments

Comments
 (0)