From 68cd48c1f4d45fcf36a7a7d0cedf06417ea65cfc Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Thu, 30 May 2024 15:44:53 +0100 Subject: [PATCH] Enable logit on non-prod environments --- terraform/application/application.tf | 3 +++ .../application/config/development/variables.tfvars.json | 3 ++- .../application/config/preproduction/variables.tfvars.json | 3 ++- terraform/application/config/review/variables.tfvars.json | 3 ++- terraform/application/variables.tf | 5 +++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/terraform/application/application.tf b/terraform/application/application.tf index 48e75749da..eda223a746 100644 --- a/terraform/application/application.tf +++ b/terraform/application/application.tf @@ -52,6 +52,7 @@ module "web_application" { docker_image = var.docker_image replicas = var.app_replicas + enable_logit = var.enable_logit } module "worker_application" { @@ -72,4 +73,6 @@ module "worker_application" { docker_image = var.docker_image command = ["bundle", "exec", "sidekiq", "-C", "./config/sidekiq.yml"] probe_command = ["pgrep", "-f", "sidekiq"] + + enable_logit = var.enable_logit } diff --git a/terraform/application/config/development/variables.tfvars.json b/terraform/application/config/development/variables.tfvars.json index 787219eb2a..1e407d8782 100644 --- a/terraform/application/config/development/variables.tfvars.json +++ b/terraform/application/config/development/variables.tfvars.json @@ -5,5 +5,6 @@ "enable_monitoring": false, "external_hostname": "dev.apply-for-qts-in-england.education.gov.uk", "namespace": "tra-development", - "uploads_storage_environment_tag": "Test" + "uploads_storage_environment_tag": "Test", + "enable_logit": true } diff --git a/terraform/application/config/preproduction/variables.tfvars.json b/terraform/application/config/preproduction/variables.tfvars.json index d62cb57a87..e684a43011 100644 --- a/terraform/application/config/preproduction/variables.tfvars.json +++ b/terraform/application/config/preproduction/variables.tfvars.json @@ -5,5 +5,6 @@ "enable_monitoring": false, "external_hostname": "preprod.apply-for-qts-in-england.education.gov.uk", "namespace": "tra-test", - "uploads_storage_environment_tag": "Test" + "uploads_storage_environment_tag": "Test", + "enable_logit": true } diff --git a/terraform/application/config/review/variables.tfvars.json b/terraform/application/config/review/variables.tfvars.json index 3aea2e3332..0190ae0165 100644 --- a/terraform/application/config/review/variables.tfvars.json +++ b/terraform/application/config/review/variables.tfvars.json @@ -5,5 +5,6 @@ "dqt_api_url": "https://dev.teacher-qualifications-api.education.gov.uk", "enable_monitoring": false, "namespace": "tra-development", - "uploads_storage_environment_tag": "Test" + "uploads_storage_environment_tag": "Test", + "enable_logit": true } diff --git a/terraform/application/variables.tf b/terraform/application/variables.tf index 72ab32e927..827b71ed22 100644 --- a/terraform/application/variables.tf +++ b/terraform/application/variables.tf @@ -74,3 +74,8 @@ variable "uploads_storage_account_name" { type = string default = null } + +variable "enable_logit" { + type = bool + default = false +}