From 5af3463e69c51bde26414d185460cccb49dbb51e Mon Sep 17 00:00:00 2001 From: John Ake Date: Fri, 24 May 2024 15:07:34 +0100 Subject: [PATCH] Onboard service to Logit.io --- terraform/aks/application.tf | 2 ++ terraform/aks/variables.tf | 2 ++ terraform/aks/workspace_variables/development.tfvars.json | 3 ++- terraform/aks/workspace_variables/preproduction.tfvars.json | 1 + terraform/aks/workspace_variables/review.tfvars.json | 3 ++- terraform/aks/workspace_variables/test.tfvars.json | 3 ++- 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/terraform/aks/application.tf b/terraform/aks/application.tf index bbf9ecc9..b2f5ab37 100644 --- a/terraform/aks/application.tf +++ b/terraform/aks/application.tf @@ -23,6 +23,7 @@ module "web_application" { kubernetes_secret_name = module.application_configuration.kubernetes_secret_name docker_image = var.app_docker_image + enable_logit = var.enable_logit max_memory = var.memory_max replicas = var.replicas web_external_hostnames = var.gov_uk_host_names @@ -65,4 +66,5 @@ module "worker_application" { probe_command = ["pgrep", "-f", "sidekiq"] max_memory = var.worker_memory_max replicas = var.worker_replicas + enable_logit = var.enable_logit } diff --git a/terraform/aks/variables.tf b/terraform/aks/variables.tf index 1251ce05..7b1258b4 100644 --- a/terraform/aks/variables.tf +++ b/terraform/aks/variables.tf @@ -40,6 +40,8 @@ variable "deploy_azure_backing_services" { description = "Deploy real Azure backing services like databases, as opposed to containers inside of AKS" } +variable "enable_logit" { default = false } + variable "enable_monitoring" { type = bool default = false diff --git a/terraform/aks/workspace_variables/development.tfvars.json b/terraform/aks/workspace_variables/development.tfvars.json index d37a981b..4bee25bf 100644 --- a/terraform/aks/workspace_variables/development.tfvars.json +++ b/terraform/aks/workspace_variables/development.tfvars.json @@ -8,5 +8,6 @@ "service_short": "faltrn", "app_key_vault": "s189t01-faltrn-dv-app-kv", "inf_vault_name": "s189t01-faltrn-dv-inf-kv", - "key_vault_resource_group": "s189t01-faltrn-dv-rg" + "key_vault_resource_group": "s189t01-faltrn-dv-rg", + "enable_logit": true } diff --git a/terraform/aks/workspace_variables/preproduction.tfvars.json b/terraform/aks/workspace_variables/preproduction.tfvars.json index d37f5882..35121121 100644 --- a/terraform/aks/workspace_variables/preproduction.tfvars.json +++ b/terraform/aks/workspace_variables/preproduction.tfvars.json @@ -16,6 +16,7 @@ "contact_group": [288912] } }, + "enable_logit": true, "inf_vault_name": "s189t01-faltrn-pp-inf-kv", "key_vault_resource_group": "s189t01-faltrn-pp-rg" } diff --git a/terraform/aks/workspace_variables/review.tfvars.json b/terraform/aks/workspace_variables/review.tfvars.json index 918a38e8..65d1c0a3 100644 --- a/terraform/aks/workspace_variables/review.tfvars.json +++ b/terraform/aks/workspace_variables/review.tfvars.json @@ -10,5 +10,6 @@ "enable_postgres_ssl": false, "inf_vault_name": "s189t01-faltrn-rv-inf-kv", "app_vault_name": "s189t01-faltrn-rv-app-kv", - "key_vault_resource_group": "s189t01-faltrn-rv-rg" + "key_vault_resource_group": "s189t01-faltrn-rv-rg", + "enable_logit": true } diff --git a/terraform/aks/workspace_variables/test.tfvars.json b/terraform/aks/workspace_variables/test.tfvars.json index e2faa7d1..488b3fef 100644 --- a/terraform/aks/workspace_variables/test.tfvars.json +++ b/terraform/aks/workspace_variables/test.tfvars.json @@ -8,5 +8,6 @@ "service_short": "faltrn", "app_key_vault": "s189t01-faltrn-ts-app-kv", "inf_vault_name": "s189t01-faltrn-ts-inf-kv", - "key_vault_resource_group": "s189t01-faltrn-ts-rg" + "key_vault_resource_group": "s189t01-faltrn-ts-rg", + "enable_logit": true }