Skip to content

Commit 1fdc12f

Browse files
author
Sarada Kommalapati
committed
2 parents 4284776 + f3bca08 commit 1fdc12f

29 files changed

+460
-37
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.3.1-250719002626"
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.3.1-ol8.8-23.12.13-250719-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaau76znd35hrciub7wfojcgfq435bqpehv4ry4fcmom74b7l7zw4ta"
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.3.1-ol8.8-23.12.13-250719-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaajf5gc2zhxbzbfhvnujt6k2do3rd4wfjqspuq6gmtm2qhhberjttq"
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.3.1-250719002626"
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.3.1-ol8.8-23.12.13-250719-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaajf5gc2zhxbzbfhvnujt6k2do3rd4wfjqspuq6gmtm2qhhberjttq"
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.3.1-250719002626"
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.3.1-ol8.8-23.12.13-250719-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaajzkamkicy6azk2deaudb363i7z7elwniunootc3v6755p3kfjv3a"
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.3.1-250719002626"
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.3.1-ol8.8-23.12.13-250719-1"
8+
instance_image_id = "ocid1"
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.3.1-ol8.8-23.12.13-250719-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaa45odr7hkyw7dm7x3ho2s57iywvwahf5654njhpb7f6fvziz4w42q"
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.3.1-250719002626"
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.3.1-ol8.8-23.12.13-250719-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaa45odr7hkyw7dm7x3ho2s57iywvwahf5654njhpb7f6fvziz4w42q"

terraform/locals.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ 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 == "" ? var.compartment_ocid : var.profile_compartment_id
200+
profile_name = var.profile_name == "" ? format("%s_profile", local.service_name_prefix) : var.profile_name
201+
193202

194203
# Secured Production Mode
195204
preserve_boot_properties = var.configure_secure_mode ? var.preserve_boot_properties : true

terraform/main.tf

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ 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
242+
profile_compartment_id = var.profile_compartment_id
243+
241244
ocir_auth_token_id = var.ocir_auth_token_id
242245
add_fss = var.add_fss
243246
add_load_balancer = local.add_load_balancer
@@ -483,6 +486,9 @@ module "validators" {
483486
wls_secondary_admin_password_id = local.wls_secondary_admin_password_id
484487
administration_port = var.administration_port
485488
ms_administration_port = var.ms_administration_port
489+
490+
profile_ocid = local.profile_ocid
491+
select_existing_profile = local.select_existing_profile
486492
}
487493

488494
module "fss" {
@@ -588,6 +594,13 @@ module "observability-autoscaling" {
588594
}
589595
}
590596

597+
module "observability-osmh"{
598+
source = "./modules/observability/osmh"
599+
count = local.create_profile ? 1 : 0
600+
tenancy_id = var.tenancy_ocid
601+
display_name = local.profile_name
602+
compartment_id = local.profile_compartment_id
603+
}
591604

592605
module "compute" {
593606
source = "./modules/compute/wls_compute"
@@ -606,8 +619,7 @@ module "compute" {
606619
wls_subnet_id = var.wls_subnet_id
607620
region = var.region
608621
ssh_public_key = var.ssh_public_key
609-
compute_nsg_ids = local.compute_nsg_ids
610-
622+
compute_nsg_ids = local.compute_nsg_ids
611623
tenancy_id = var.tenancy_ocid
612624
tf_script_version = var.tf_script_version
613625
use_regional_subnet = local.use_regional_subnet
@@ -632,6 +644,7 @@ module "compute" {
632644
wls_server_startup_args = var.wls_server_startup_args
633645
wls_existing_vcn_id = var.wls_existing_vcn_id
634646
create_policies = var.create_policies
647+
enable_osmh = var.enable_osmh
635648
place_all_compute_in_same_ad = var.place_all_compute_in_same_ad
636649

637650
# Secured Production Mode
@@ -704,6 +717,8 @@ module "compute" {
704717
log_group_id = element(concat(module.observability-common[*].log_group_id, [""]), 0)
705718
use_oci_logging = var.use_oci_logging
706719

720+
profile_ocid = var.profile_ocid == "" ? (element(concat(module.observability-osmh[*].profile_ocid, [""]), 0)) : var.profile_ocid
721+
707722
use_apm_service = local.use_apm_service
708723
apm_domain_compartment_id = local.apm_domain_compartment_id
709724
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/idcs_variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,19 @@ variable "idcs_cloudgate_config_file" {
7474
variable "idcs_cloudgate_docker_image_tar" {
7575
type = string
7676
description = "Path of the binary file with the container image to run IDCS cloudgate container in the WebLogic VM"
77-
default = "/u01/zips/jcs/app_gateway_docker/23.4.44/app-gateway-docker-image.tar.gz"
77+
default = "/u01/zips/jcs/app_gateway_docker/25.1.03/app-gateway-docker-image.tar.gz"
7878
}
7979

8080
variable "idcs_cloudgate_docker_image_version" {
8181
type = string
8282
description = "Version of the container image to run IDCS cloudgate container in the WebLogic VM"
83-
default = "23.4.44-2310291619"
83+
default = "25.1.03-2501230623"
8484
}
8585

8686
variable "idcs_cloudgate_docker_image_name" {
8787
type = string
8888
description = "Name of the container image to run IDCS cloudgate container in the WebLogic VM"
89-
default = "idcs-appgateway-docker"
89+
default = "idcs-appgateway-docker_linux_x86_64"
9090
}
9191

9292
variable "lbip" {

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+
}

0 commit comments

Comments
 (0)