diff --git a/ibm_catalog.json b/ibm_catalog.json index fa6cbb1d..96dd8e26 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -276,7 +276,12 @@ "key": "member_host_flavor" }, { - "key": "auto_scaling" + "key": "auto_scaling", + "custom_config": { + "type": "code_editor", + "grouping": "deployment", + "original_grouping": "deployment" + } }, { "key": "service_endpoints", @@ -710,7 +715,12 @@ "key": "member_host_flavor" }, { - "key": "auto_scaling" + "key": "auto_scaling", + "custom_config": { + "type": "code_editor", + "grouping": "deployment", + "original_grouping": "deployment" + } }, { "key": "deletion_protection" diff --git a/solutions/fully-configurable/main.tf b/solutions/fully-configurable/main.tf index e902ed30..478b56c8 100644 --- a/solutions/fully-configurable/main.tf +++ b/solutions/fully-configurable/main.tf @@ -447,8 +447,8 @@ locals { code_engine_project_name = local.code_engine_project_id != null ? null : (var.prefix != null && var.prefix != "") ? "${var.prefix}-${var.kibana_code_engine_new_project_name}" : var.kibana_code_engine_new_project_name code_engine_app_name = (var.prefix != null && var.prefix != "") ? "${var.prefix}-${var.kibana_code_engine_new_app_name}" : var.kibana_code_engine_new_app_name kibana_version = var.enable_kibana_dashboard ? jsondecode(data.http.es_metadata[0].response_body).version.number : null - kibana_system_password = var.enable_kibana_dashboard ? random_password.kibana_system_password[0].result : null - kibana_app_login_password = var.enable_kibana_dashboard ? random_password.kibana_app_login_password[0].result : null + kibana_system_password = var.enable_kibana_dashboard ? startswith(random_password.kibana_system_password[0].result, "-") ? "J${substr(random_password.kibana_system_password[0].result, 1, -1)}" : startswith(random_password.kibana_system_password[0].result, "_") ? "K${substr(random_password.kibana_system_password[0].result, 1, -1)}" : random_password.kibana_system_password[0].result : null + kibana_app_login_password = var.enable_kibana_dashboard ? startswith(random_password.kibana_app_login_password[0].result, "-") ? "J${substr(random_password.kibana_app_login_password[0].result, 1, -1)}" : startswith(random_password.kibana_app_login_password[0].result, "_") ? "K${substr(random_password.kibana_app_login_password[0].result, 1, -1)}" : random_password.kibana_app_login_password[0].result : null } data "http" "es_metadata" { diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index 031775e5..b036876c 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -338,7 +338,28 @@ variable "auto_scaling" { }) }) description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-elasticsearch/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)" - default = null + default = { + disk = { + capacity_enabled = false + free_space_less_than_percent = 10 + io_above_percent = 90 + io_enabled = false + io_over_period = "15m" + rate_increase_percent = 10 + rate_limit_mb_per_member = 3670016 + rate_period_seconds = 900 + rate_units = "mb" + } + memory = { + io_above_percent = 90 + io_enabled = false + io_over_period = "15m" + rate_increase_percent = 10 + rate_limit_mb_per_member = 114688 + rate_period_seconds = 900 + rate_units = "mb" + } + } } ############################################################################# diff --git a/solutions/security-enforced/variables.tf b/solutions/security-enforced/variables.tf index 8cf136bf..f1dd1658 100644 --- a/solutions/security-enforced/variables.tf +++ b/solutions/security-enforced/variables.tf @@ -275,7 +275,28 @@ variable "auto_scaling" { }) }) description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-elasticsearch/tree/main/solutions/fully-configurable/DA-types.md#autoscaling)" - default = null + default = { + disk = { + capacity_enabled = false + free_space_less_than_percent = 10 + io_above_percent = 90 + io_enabled = false + io_over_period = "15m" + rate_increase_percent = 10 + rate_limit_mb_per_member = 3670016 + rate_period_seconds = 900 + rate_units = "mb" + } + memory = { + io_above_percent = 90 + io_enabled = false + io_over_period = "15m" + rate_increase_percent = 10 + rate_limit_mb_per_member = 114688 + rate_period_seconds = 900 + rate_units = "mb" + } + } } #############################################################################