Skip to content

Commit 2cb6db7

Browse files
PM-Darshanskommalaabhijit-paranjpetelakeroberto-sanchez-herrera
authored
Stack Provisioning to consider OCI Dynamic Group and Policies propaga… (#253)
Testing shown in Orahub --------- Co-authored-by: Sarada Kommalapati <[email protected]> Co-authored-by: Abhijit Paranjpe <[email protected]> Co-authored-by: telake <[email protected]> Co-authored-by: Roberto Sanchez Herrera <[email protected]>
1 parent da2aef9 commit 2cb6db7

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

terraform/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023, Oracle and/or its affiliates.
1+
# 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

44
### Removing network validation script from provisioning flow temporarily.
@@ -609,6 +609,7 @@ module "compute" {
609609
wls_domain_name = format("%s_domain", local.service_name_prefix)
610610
wls_server_startup_args = var.wls_server_startup_args
611611
wls_existing_vcn_id = var.wls_existing_vcn_id
612+
create_policies = var.create_policies
612613

613614
#The following two are for adding a dependency on the peering module
614615
wls_vcn_peering_dns_resolver_id = element(flatten(concat(module.vcn-peering[*].wls_vcn_dns_resolver_id, [""])), 0)

terraform/modules/compute/wls_compute/variables.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023, Oracle and/or its affiliates.
1+
# 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

44
variable "tenancy_id" {
@@ -16,6 +16,11 @@ variable "compartment_id" {
1616
description = "The OCID of the compartment where the compute will be created"
1717
}
1818

19+
variable "create_policies" {
20+
type = bool
21+
description = "Set to true to create OCI IAM policies and dynamic groups required by the WebLogic for OCI stack. If this is set to false, the policies and dynamic groups need to be created manually"
22+
}
23+
1924
variable "availability_domain" {
2025
type = string
2126
description = "The label of the availability domain where the compute will be created"

terraform/modules/compute/wls_compute/wls_compute.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ module "wls-instances" {
6767
wls_subnet_cidr = local.wls_subnet_cidr
6868
wls_edition = var.wls_edition
6969
is_bastion_instance_required = var.is_bastion_instance_required
70+
create_policies = var.create_policies
7071

7172
user_data = data.template_cloudinit_config.config.rendered
7273
mode = var.mode

terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023, Oracle and/or its affiliates.
1+
# 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

44
variable "tenancy_ocid" {

0 commit comments

Comments
 (0)