Skip to content

Commit b689c01

Browse files
skommalaabhijit-paranjpetelakeroberto-sanchez-herreraPM-Darshan
authored
Development (#298)
Merge from development to 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]>
1 parent b54ec6c commit b689c01

13 files changed

+69
-24
lines changed
+5-5
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 = "24.4.1-241017053318"
4+
tf_script_version = "24.4.3-241219063253"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaawd5ti5ldjzdppppi675onvo3mvjcwt64jjey7rib3beau2ngkl2q"
7-
listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaa42huy5647ywxakme23tq4m4a2pplwnjtkger2qlsdabb7og65xlq"
7+
listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaa3wfcdv56fwwvkvo2bmccsl2c2xwj7lnfavs4sy6q23lmxom4mcja"
99

1010
ucm_listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaa653zc2e4fsem5hhwinmfgnv3xp4dmbq6c6gvf45okxf6xz3smhiq"
11-
ucm_listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
12-
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaak2mrnmdiv2g4yc37vq6dhxiswtuuc4sn4543meowfvbntnepcpna"
11+
ucm_listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaakfkcqazhsjyswm3r6bflsk3ci6iwiqpizsqgehhjhiqypn52uobq"
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +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 = "24.4.1-241017053318"
4+
tf_script_version = "24.4.3-241219063253"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaa653zc2e4fsem5hhwinmfgnv3xp4dmbq6c6gvf45okxf6xz3smhiq"
7-
listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaak2mrnmdiv2g4yc37vq6dhxiswtuuc4sn4543meowfvbntnepcpna"
7+
listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaakfkcqazhsjyswm3r6bflsk3ci6iwiqpizsqgehhjhiqypn52uobq"
99

+3-4
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 = "24.4.1-241017053318"
4+
tf_script_version = "24.4.3-241219063253"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaalcwal6mfwjbezzqyj3waoxrvigml4n3lcn3hfday3ozetjqn25a"
7-
listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaa3tpmkcjmenrphbc5jci2sjmc4fcxummfqw72xv72ci6ndbyf2qnq"
9-
7+
listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaachefwpa57fwzf47la6fc65ihxow6scpt7c3omacq5rbljztpm4ba"
+5-5
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 = "24.4.1-241017053318"
4+
tf_script_version = "24.4.3-241219063253"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaajl5w3d76x5vdc4n7oqjpsxh4jtwivclvvp6gj4em3kufju6sftga"
7-
listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaazqkife3vsvjc2mdnapumkehzhedip7vn3pblclu2rlhplcsu4z2a"
7+
listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaa5mhs4bdlsre7vlczzcdtz2a57shlfrw4k7c3r6quhtiijosqb3hq"
99

1010
ucm_listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaq2vkow7zwkxg6ky4zxsnckdlfgtgmg7i4kkyev3y6zyo72mpkgza"
11-
ucm_listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
12-
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaaruq5xvtwyn3g63kuzf2wyuwonyyxsibqf3ojmtuyphx2lu6g7gdq"
11+
ucm_listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
12+
ucm_instance_image_id = "ocid1.image.oc1..aaaaaaaaqbh7qqdgsv54p7dirm3oqx2zvr7qtosvercgoicqfj2txjpudthq"
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +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 = "24.4.1-241017053318"
4+
tf_script_version = "24.4.3-241219063253"
55
use_marketplace_image = true
66
listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaq2vkow7zwkxg6ky4zxsnckdlfgtgmg7i4kkyev3y6zyo72mpkgza"
7-
listing_resource_version = "24.4.1-ol8.8-23.12.13-241017-1"
8-
instance_image_id = "ocid1.image.oc1..aaaaaaaaruq5xvtwyn3g63kuzf2wyuwonyyxsibqf3ojmtuyphx2lu6g7gdq"
7+
listing_resource_version = "24.4.3-ol8.8-23.12.13-241219-1"
8+
instance_image_id = "ocid1.image.oc1..aaaaaaaaqbh7qqdgsv54p7dirm3oqx2zvr7qtosvercgoicqfj2txjpudthq"
99

terraform/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ module "compute" {
631631
wls_server_startup_args = var.wls_server_startup_args
632632
wls_existing_vcn_id = var.wls_existing_vcn_id
633633
create_policies = var.create_policies
634+
place_all_compute_in_same_ad = var.place_all_compute_in_same_ad
634635

635636
# Secured Production Mode
636637
configure_secure_mode = var.configure_secure_mode

terraform/modules/compute/wls_compute/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "availability_domain" {
2626
description = "The label of the availability domain where the compute will be created"
2727
}
2828

29+
variable "place_all_compute_in_same_ad" {
30+
type = bool
31+
description = "Set to true if you want to use the same Availability Domain for all Compute instances as the WebLogic Administration Server's Compute instance. Otherwise, instances will be distributed across Availability Domains."
32+
default = false
33+
}
34+
2935
variable "instance_image_id" {
3036
type = string
3137
description = "The OCID of the image used to create the compute instance"

terraform/modules/compute/wls_compute/wls_compute.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "wls-instances" {
1111

1212
instance_params = { for x in range(var.num_vm_instances) : "${local.host_label}-${format("%02d", x)}" => {
1313

14-
availability_domain = var.use_regional_subnet ? local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)] : var.availability_domain
14+
availability_domain = var.use_regional_subnet ? (var.place_all_compute_in_same_ad ? var.availability_domain : local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)] ) : var.availability_domain
1515

1616
compartment_id = var.compartment_id
1717
display_name = "${local.host_label}-${x}"

terraform/modules/compute/wls_compute/wls_volume.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module "middleware-volume" {
55
source = "../volume"
66
bv_params = { for x in range(var.num_vm_instances) : "${var.resource_name_prefix}-mw-block-${format("%02d", x)}" => {
7-
ad = var.use_regional_subnet ? local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)] : var.availability_domain
7+
ad = var.use_regional_subnet ? (var.place_all_compute_in_same_ad ? var.availability_domain : local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)]) : var.availability_domain
88
compartment_id = var.compartment_id
99
display_name = "${var.resource_name_prefix}-mw-block-${x}"
1010
bv_size = var.volume_size
@@ -19,7 +19,7 @@ module "middleware-volume" {
1919
module "data-volume" {
2020
source = "../volume"
2121
bv_params = { for x in range(var.num_vm_instances) : "${var.resource_name_prefix}-data-block-${format("%02d", x)}" => {
22-
ad = var.use_regional_subnet ? local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)] : var.availability_domain
22+
ad = var.use_regional_subnet ? (var.place_all_compute_in_same_ad ? var.availability_domain : local.ad_names[(x + local.admin_ad_index) % length(local.ad_names)]) : var.availability_domain
2323
compartment_id = var.compartment_id
2424
display_name = "${var.resource_name_prefix}-data-block-${x}"
2525
bv_size = var.volume_size

terraform/modules/policies/locals.tf

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ locals {
4949
cloning_policy_statement2 = "Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect compartments in tenancy"
5050
cloning_policy_statement = compact([local.cloning_policy_statement1, local.cloning_policy_statement2])
5151

52+
# These policy statements are required for enabling the plugin
53+
plugin_policy_statement1 = "Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to manage instance-agent-plugins in compartment id ${var.compartment_id}"
54+
plugin_policy_statement2 = "Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use wlms-managed-instance-plugins in tenancy"
55+
plugin_policy_statement = compact([local.plugin_policy_statement1, local.plugin_policy_statement2])
56+
5257
#Policies for WLS instance principal dynamic group
5358
autoscaling_statement1 = var.use_autoscaling ? "Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use repos in tenancy" : ""
5459
autoscaling_statement2 = var.use_autoscaling ? "Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to manage functions-family in compartment id ${var.compartment_id}" : ""
@@ -124,7 +129,7 @@ locals {
124129
secure_mode_statement = compact([local.secure_mode_statement1, local.secure_mode_statement2, local.secure_mode_statement3, local.secure_mode_statement4, local.secure_mode_statement5, local.secure_mode_secrets_policy_statement1, local.secure_mode_secrets_policy_statement2])
125130

126131
#TODO: When other categories with more statements are added here, concat them with service_statements
127-
policy_statements = concat(local.service_statements, local.cloning_policy_statement, local.autoscaling_statements, local.secure_mode_statement)
132+
policy_statements = concat(local.service_statements, local.cloning_policy_statement, local.plugin_policy_statement, local.autoscaling_statements, local.secure_mode_statement)
128133

129134
reserved_ips_info = var.compartment_id == "" ? [{ id = var.resource_name_prefix }] : []
130135

terraform/network_variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ variable "wls_availability_domain_name" {
7575
default = ""
7676
}
7777

78+
variable "place_all_compute_in_same_ad" {
79+
type = bool
80+
description = "Set to true if you want to use the same Availability Domain for all Compute instances as the WebLogic Administration Server's Compute instance. Otherwise, instances will be distributed across Availability Domains."
81+
default = false
82+
}
83+
7884
variable "assign_weblogic_public_ip" {
7985
type = bool
8086
description = "Set to true if the WebLogic compute instances will be created in a public subnet and should have a public IP"

terraform/schema.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ groupings:
9696
#- ${image_mode}
9797
#- ${terms_and_conditions}
9898
- ${wls_availability_domain_name}
99+
- ${place_all_compute_in_same_ad}
99100
- ${wls_subnet_id}
100101
- ${wls_subnet_cidr}
101102
- ${existing_admin_server_nsg_id}
@@ -458,6 +459,19 @@ variables:
458459
- ${subnet_span}
459460
- "Regional Subnet"
460461

462+
place_all_compute_in_same_ad:
463+
visible:
464+
and:
465+
- ${orm_create_mode}
466+
- eq:
467+
- ${subnet_span}
468+
- "Regional Subnet"
469+
type: boolean
470+
required: true
471+
default: false
472+
title: "Use Same Availability Domain for all Compute Instances"
473+
description: "Use the same Availability Domain for all Compute instances as that of the WebLogic Administration Server's Compute instance. If this option is not selected, the compute instances will be distributed across Availability Domains."
474+
461475
wls_node_count:
462476
type: integer
463477
title: "Node Count"

terraform/schema_14110.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ groupings:
6969
#- ${image_mode}
7070
#- ${terms_and_conditions}
7171
- ${wls_availability_domain_name}
72+
- ${place_all_compute_in_same_ad}
7273
- ${wls_subnet_id}
7374
- ${wls_subnet_cidr}
7475
- ${existing_admin_server_nsg_id}
@@ -456,6 +457,19 @@ variables:
456457
- ${subnet_span}
457458
- "Regional Subnet"
458459

460+
place_all_compute_in_same_ad:
461+
visible:
462+
and:
463+
- ${orm_create_mode}
464+
- eq:
465+
- ${subnet_span}
466+
- "Regional Subnet"
467+
type: boolean
468+
required: true
469+
default: false
470+
title: "Use Same Availability Domain for all Compute Instances"
471+
description: "Use the same Availability Domain for all Compute instances as that of the WebLogic Administration Server's Compute instance. If this option is not selected, the compute instances will be distributed across Availability Domains."
472+
459473
wls_node_count:
460474
type: integer
461475
title: "Node Count"

0 commit comments

Comments
 (0)