Skip to content

21.7.1.0.1 #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terraform/essbase.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Listing details for the Essbase custom image for Bring Your Own License.
## Copyright (c) 2019 - 2023 Oracle and/or its affiliates.
essbase_listing_id = "ocid1.appcataloglisting.oc1..aaaaaaaaqyxur5zacfln6epkbm46sdu5whf6zepbm43b63rm44d5hnm2ft5a"
essbase_listing_resource_version = "21.6.0.0.1_240807"
essbase_listing_resource_id = "ocid1.image.oc1..aaaaaaaadushb5tgvmc5w2xflif5ofddkqdq6kyy2nh4drorqcitsweyw7zq"
essbase_listing_resource_version = "21.7.1.0.1_250224"
essbase_listing_resource_id = "ocid1.image.oc1..aaaaaaaaoqjqxwwye4gs4ybfm7xfvirvydegnak2idgcqbcay2e5enx2oyfa"
4 changes: 2 additions & 2 deletions terraform/essbase.auto.tfvars.ucm
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# Listing details for the Essbase custom image.
# The resource_id values here should match the build script and oci_images.tf
essbase_listing_id="ocid1.appcataloglisting.oc1..aaaaaaaanstxnoz6uttexhw5jfpqhu4gkwsp2ebmw4i2p7gkq65sr3e7z4gq"
essbase_listing_resource_version="21.6.0.0.1_240807"
essbase_listing_resource_id="ocid1.image.oc1..aaaaaaaaocztyhunwqpdbow2kxpi7xxdnyteq27wey5rcuskwwqb6fendzla"
essbase_listing_resource_version="21.7.1.0.1_250224"
essbase_listing_resource_id="ocid1.image.oc1..aaaaaaaaemmueasoabsu7o3he7ihebixrjoepzywjsegs5uax3g3jjizxrjq"
6 changes: 5 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ locals {
instance_count = var.enable_cluster ? var.instance_count : 1
instance_catalog_storage = var.instance_catalog_storage
instance_smv_server = var.instance_smv_server
instance_register_essbase_url = var.register_essbase_url

create_load_balancer = var.enable_cluster || var.create_load_balancer

Expand Down Expand Up @@ -268,6 +269,8 @@ module "essbase" {

instance_catalog_storage = var.instance_catalog_storage
instance_smv_server = local.instance_smv_server
instance_register_essbase_url = local.instance_register_essbase_url

additional_host_mappings = lookup(local.db_type_host_mappings, local.db_type, [])

identity_provider = var.identity_provider
Expand All @@ -284,6 +287,7 @@ module "essbase" {
enable_monitoring = var.enable_essbase_monitoring
stack_id = local.instance_uuid
stack_display_name = local.resource_name_prefix
stack_version = local.stack_version

notification_topic_id = var.notification_topic_id
}
Expand Down Expand Up @@ -335,4 +339,4 @@ module "upgrade" {
instanceUpgradeShape = var.upgrade_target_instance_shape
bucket_name = "essbase_${local.instance_uuid_short}_metadata"

}
}
4 changes: 4 additions & 0 deletions terraform/modules/essbase-node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ resource "oci_core_instance" "essbase" {
catalog_bucket = jsonencode(var.catalog_bucket)
catalog_storage = jsonencode(var.instance_catalog_storage)
smv_server = jsonencode(tostring(var.instance_smv_server))
stack_info=jsonencode({
register_essbase_url = tostring(var.instance_register_essbase_url),
version = tostring(var.stack_version),
})

volumes = jsonencode({
config = {
Expand Down
11 changes: 11 additions & 0 deletions terraform/modules/essbase-node/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ variable "stack_display_name" {
default = ""
}

variable "stack_version" {
type = string
default = ""
}


// Notification settings
variable "notification_topic_id" {
type = string
Expand Down Expand Up @@ -223,6 +229,11 @@ variable "instance_smv_server" {
default = false
}

variable "instance_register_essbase_url" {
type = bool
default = false
}

variable "metadata_bucket" {
type = object({
id = string
Expand Down
4 changes: 3 additions & 1 deletion terraform/modules/essbase/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ module "essbase-node" {

stack_id = var.stack_id
stack_display_name = var.stack_display_name
stack_version = var.stack_version

enable_monitoring = var.enable_monitoring
enable_embedded_proxy = var.enable_embedded_proxy
notification_topic_id = var.notification_topic_id
Expand Down Expand Up @@ -142,7 +144,7 @@ module "essbase-node" {

instance_catalog_storage = var.instance_catalog_storage
instance_smv_server = var.instance_smv_server

instance_register_essbase_url = var.instance_register_essbase_url

db_type = var.db_type
db_database_id = var.db_database_id
Expand Down
11 changes: 11 additions & 0 deletions terraform/modules/essbase/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ variable "instance_smv_server" {
default = false
}

variable "instance_register_essbase_url" {
type = bool
default = false
}


variable "hostname_label_prefix" {
description = "The hostname for the essbase node"
type = string
Expand Down Expand Up @@ -240,6 +246,11 @@ variable "stack_display_name" {
default = ""
}

variable "stack_version" {
type = string
default = ""
}

// Notification settings
variable "notification_topic_id" {
type = string
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/upgrade/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ output "rcu_schema_prefix"{
}

output "bucket_namespace" {
value = var.instanceUpgrade19c02? data.oci_objectstorage_namespace.objectstorage_ns.namespace: null
value = var.instanceUpgrade19c02? data.oci_objectstorage_namespace.objectstorage_ns.namespace: data.oci_objectstorage_bucket.source_bucket.namespace
}

output "bucket_name" {
Expand Down
49 changes: 45 additions & 4 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.

output "stack_version" {
value = var.stack_version
value = local.stack_version
}

output "stack_id" {
Expand All @@ -22,11 +22,11 @@ output "essbase_node_display_names" {
}

output "essbase_node_public_ips" {
value = var.is_upgrade? [module.upgrade[0].public_ip] : compact(module.essbase[0].nodes[*].public_ip)
value = local.essbase_node_public_ips
}

output "essbase_node_private_ips" {
value = var.is_upgrade? [module.upgrade[0].private_ip]: compact(module.essbase[0].nodes[*].private_ip)
value = local.essbase_node_private_ips
}

output "private_endpoint_db" {
Expand All @@ -42,7 +42,7 @@ output "essbase_url" {
}

output "essbase_external_url" {
value = var.is_upgrade? null: (local.create_load_balancer ? join("", module.load-balancer.*.external_url) : module.essbase[0].external_url)
value = local.essbase_external_url
}

output "essbase_redirect_url" {
Expand Down Expand Up @@ -84,3 +84,44 @@ output "instance_smv_server" {
output "z_messages" {
value = "\n\n*********************\nOracle Essbase stack has been provisioned and is continuing configuration in the background.\nIt may take up to 20 minutes for configuration to complete.\nLog details can be found on the target nodes at /var/log/essbase-init.log.\n*********************\n"
}

locals {

stack_version= var.stack_version
essbase_node_public_ips= var.is_upgrade? [module.upgrade[0].public_ip] : compact(module.essbase[0].nodes[*].public_ip)
essbase_node_private_ips= var.is_upgrade? [module.upgrade[0].private_ip]: compact(module.essbase[0].nodes[*].private_ip)
essbase_external_url= var.is_upgrade? null: (local.create_load_balancer ? join("", module.load-balancer.*.external_url) : module.essbase[0].external_url)

/*stack_id = var.is_upgrade? module.upgrade[0].stack_id : local.instance_uuid
stack_display_name = var.is_upgrade? module.upgrade[0].stack_resource_id : local.resource_name_prefix
essbase_node_ids = var.is_upgrade? [module.upgrade[0].node_id]: compact(module.essbase[0].nodes[*].id)
essbase_node_display_names = var.is_upgrade? [module.upgrade[0].display_name]: compact(module.essbase[0].nodes[*].display_name)
private_endpoint_db= var.create_secure_db ? join("", module.database.*.private_endpoint) : null
essbase_node_domain_names= var.is_upgrade? [module.upgrade[0].domain_name] : compact(module.essbase[0].nodes[*].domain_name)
essbase_url= var.is_upgrade? null: (local.create_load_balancer ? join("", module.load-balancer.*.external_url) : module.essbase[0].external_url)
essbase_redirect_url= var.is_upgrade? null: (var.identity_provider == "idcs" ? (local.create_load_balancer ? format("%s/redirect_uri", join("", module.load-balancer.*.redirect_url_prefix)) : format("%s/redirect_uri", module.essbase[0].external_url)) : "")
essbase_post_logout_redirect_url= var.is_upgrade? null: (var.identity_provider == "idcs" ? (local.create_load_balancer ? format("%s/jet/logout.html", join("", module.load-balancer.*.redirect_url_prefix)) : format("%s/jet/logout.html", module.essbase[0].external_url)) : "")
idcs_tenant= var.is_upgrade? null: ((var.identity_provider == "idcs" && !var.is_upgrade) ? var.idcs_tenant : "")
idcs_client_id= var.is_upgrade? null: ((var.identity_provider == "idcs" && !var.is_upgrade)? var.idcs_client_id : "")
rcu_schema_prefix = var.is_upgrade? module.upgrade[0].rcu_schema_prefix: module.essbase[0].rcu_schema_prefix
backup_bucket_name= var.is_upgrade? module.upgrade[0].backup_bucket_name: module.backup-bucket[0].name
catalog_bucket_name= (var.is_upgrade || (length(module.catalog-bucket) == 0)) ? null : module.catalog-bucket[0].name
metadata_bucket_name= var.is_upgrade? module.upgrade[0].metadata_bucket_name: module.metadata-bucket[0].name
instance_smv_server= var.is_upgrade? null: var.instance_smv_server
z_messages= "\n\n*********************\nOracle Essbase stack has been provisioned and is continuing configuration in the background.\nIt may take up to 20 minutes for configuration to complete.\nLog details can be found on the target nodes at /var/log/essbase-init.log.\n*********************\n"
*/
}

resource "oci_objectstorage_object" "essbase_stack_info" {
bucket = var.is_upgrade? module.upgrade[0].metadata_bucket_name : module.metadata-bucket[0].name
namespace = var.is_upgrade? module.upgrade[0].bucket_namespace : module.metadata-bucket[0].namespace

object = "stack-info.dat"
storage_tier = "InfrequentAccess"
content = jsonencode({
"url" = var.is_upgrade? null : local.essbase_external_url,
"version" = local.stack_version,
"public_ip" = var.is_upgrade? null : local.essbase_node_public_ips,
"private_ip" = var.is_upgrade? null : local.essbase_node_private_ips
})
}
25 changes: 19 additions & 6 deletions terraform/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ groupings:
- ${show_db_advanced_options}
- ${create_secure_db}
- ${db_workload}
- ${register_essbase_url}

- title: "Load Balancer Configuration"
variables:
Expand Down Expand Up @@ -1020,13 +1021,8 @@ variables:
- ${is_upgrade}

instance_smv_server:
<<<<<<< HEAD
title: "Deploy Smart View Server (Preview)"
description: "Check to configure Oracle Smart View server. Oracle Smart View for Office (Mac and Browser) for Essbase is in Preview status."
=======
title: "Deploy Smart View Server"
description: "Select to configure Oracle Smart View for Office (Mac and Browser) for Essbase."
>>>>>>> sankara911-snh_release_216
type: boolean
default: false
required: false
Expand Down Expand Up @@ -1302,7 +1298,24 @@ variables:
- ${use_existing_db}
- ${use_existing_vcn}
- ${is_upgrade}


register_essbase_url:
type: boolean
default: false
required: true
title: Add Essbase URL to Autonomous Database
description: Configure Autonomous Database with Essbase Launch URL automatically. Can be configured post-deployment too.
visible:
and:
- or:
- eq:
- ${existing_db_type}
- "Autonomous Database"
- not:
- ${use_existing_db}
- not:
- ${is_upgrade}

existing_db_type:
title: Database Type
description: Select which database you will use
Expand Down
4 changes: 4 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ variable "instance_smv_server" {
default = false
}

variable "register_essbase_url" {
type = bool
default = false
}

variable "data_volume_size" {
// (gigabytes)
Expand Down
4 changes: 4 additions & 0 deletions terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ terraform {
source = "hashicorp/random"
version = "~> 3.1"
}
template = {
source = "hashicorp/template"
version = "~> 2.1"
}
tls = {
source = "hashicorp/tls"
version = "~> 3.1"
Expand Down