@@ -38,6 +38,7 @@ module "network-vcn-config" {
3838 wls_expose_admin_port = var. wls_expose_admin_port
3939 wls_admin_port_source_cidr = var. wls_admin_port_source_cidr
4040 wls_ms_content_port = var. is_idcs_selected ? var. idcs_cloudgate_port : var. wls_ms_extern_ssl_port
41+ assign_backend_public_ip = local. assign_weblogic_public_ip
4142
4243 wls_security_list_name = ! local. assign_weblogic_public_ip ? " bastion-security-list" : " wls-security-list"
4344 wls_subnet_cidr = local. wls_subnet_cidr
@@ -56,7 +57,7 @@ module "network-vcn-config" {
5657 create_nat_gateway = var. is_idcs_selected && var. wls_vcn_name != " "
5758 create_service_gateway = var. wls_vcn_name != " "
5859 create_internet_gateway = var. wls_vcn_name != " "
59- lb_destination_cidr = var. is_lb_private ? var . bastion_subnet_cidr : " 0.0.0.0/0"
60+ lb_destination_cidr = var. is_lb_private ? local . bastion_subnet_cidr : " 0.0.0.0/0"
6061 add_fss = var. add_fss
6162 add_existing_mount_target = local. add_existing_mount_target
6263 add_existing_fss = var. add_existing_fss
@@ -78,7 +79,7 @@ module "network-vcn-config" {
7879
7980module "network-lb-nsg" {
8081 source = " ./modules/network/nsg"
81- count = local. use_existing_lb ? 0 : local. add_load_balancer && var . lb_subnet_1_cidr != " " ? 1 : 0
82+ count = local. use_existing_lb ? 0 : local. add_load_balancer && local . lb_subnet_1_subnet_cidr != " " ? 1 : 0
8283 compartment_id = local. network_compartment_id
8384 vcn_id = local. vcn_id
8485 nsg_name = " ${ local . service_name_prefix } -lb-nsg"
@@ -91,7 +92,7 @@ module "network-lb-nsg" {
9192
9293module "network-bastion-nsg" {
9394 source = " ./modules/network/nsg"
94- count = var. is_bastion_instance_required && var. existing_bastion_instance_id == " " && var . bastion_subnet_cidr != " " ? 1 : 0
95+ count = var. is_bastion_instance_required && var. existing_bastion_instance_id == " " && local . bastion_subnet_cidr != " " ? 1 : 0
9596 compartment_id = local. network_compartment_id
9697 vcn_id = local. vcn_id
9798 nsg_name = " ${ local . service_name_prefix } -bastion-nsg"
@@ -104,7 +105,7 @@ module "network-bastion-nsg" {
104105
105106module "network-mount-target-nsg" {
106107 source = " ./modules/network/nsg"
107- count = var. add_fss && var . mount_target_subnet_cidr != " " ? 1 : 0
108+ count = var. add_fss && local . mount_target_subnet_cidr != " " ? 1 : 0
108109 compartment_id = local. network_compartment_id
109110 vcn_id = local. vcn_id
110111 nsg_name = " ${ local . service_name_prefix } -mount-target-nsg"
@@ -117,7 +118,7 @@ module "network-mount-target-nsg" {
117118
118119module "network-compute-admin-nsg" {
119120 source = " ./modules/network/nsg"
120- count = var . wls_subnet_cidr != " " ? 1 : 0
121+ count = local . wls_subnet_cidr != " " ? 1 : 0
121122 compartment_id = local. network_compartment_id
122123 vcn_id = local. vcn_id
123124 nsg_name = " ${ local . service_name_prefix } -admin-server-nsg"
@@ -130,7 +131,7 @@ module "network-compute-admin-nsg" {
130131
131132module "network-compute-managed-nsg" {
132133 source = " ./modules/network/nsg"
133- count = var . wls_subnet_cidr != " " ? 1 : 0
134+ count = local . wls_subnet_cidr != " " ? 1 : 0
134135 compartment_id = local. network_compartment_id
135136 vcn_id = local. vcn_id
136137 nsg_name = " ${ local . service_name_prefix } -managed-server-nsg"
@@ -363,7 +364,7 @@ module "validators" {
363364 existing_vcn_id = var. wls_existing_vcn_id
364365 wls_subnet_cidr = var. wls_subnet_cidr
365366 lb_subnet_1_cidr = var. lb_subnet_1_cidr
366- bastion_subnet_cidr = var . bastion_subnet_cidr
367+ bastion_subnet_cidr = local . bastion_subnet_cidr
367368 assign_public_ip = local. assign_weblogic_public_ip
368369 is_bastion_instance_required = var. is_bastion_instance_required
369370 existing_bastion_instance_id = var. existing_bastion_instance_id
0 commit comments