From b2a85711a66978f8f522a8de2b96a0f4aff0c433 Mon Sep 17 00:00:00 2001
From: Rajesh Rajendran <rjshrjndrn@users.noreply.github.com>
Date: Thu, 25 Feb 2021 11:56:49 +0000
Subject: [PATCH] variable fixes (#2282)

* Override env specific additional configs

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>

* Adding default variable for overrides
---
 .../stack-sunbird/templates/content-service_application.conf | 5 ++++-
 .../templates/taxonomy-service_application.conf              | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ansible/roles/stack-sunbird/templates/content-service_application.conf b/ansible/roles/stack-sunbird/templates/content-service_application.conf
index 5c64557d5..7576982fc 100644
--- a/ansible/roles/stack-sunbird/templates/content-service_application.conf
+++ b/ansible/roles/stack-sunbird/templates/content-service_application.conf
@@ -565,4 +565,7 @@ channel.content.primarycategories=["Explanation Content", "Learning Resource", "
 channel.collection.primarycategories=["Course", "Digital Textbook", "Content Playlist", "Question paper"]
 channel.asset.primarycategories=["Asset"]
 
-objectcategorydefinition.keyspace="{{ cassandra_keyspace_prefix }}_category_store"
\ No newline at end of file
+objectcategorydefinition.keyspace="{{ cassandra_keyspace_prefix }}_category_store"
+
+# This will override all content service application configs from ansible
+{{content_service_config_override|d('')}}
diff --git a/ansible/roles/stack-sunbird/templates/taxonomy-service_application.conf b/ansible/roles/stack-sunbird/templates/taxonomy-service_application.conf
index 61ef4d58d..b1b5e90ae 100644
--- a/ansible/roles/stack-sunbird/templates/taxonomy-service_application.conf
+++ b/ansible/roles/stack-sunbird/templates/taxonomy-service_application.conf
@@ -386,4 +386,7 @@ languageCode {
   tamil : "ta"
   telugu : "te"
 }
-objectcategorydefinition.keyspace="{{ cassandra_keyspace_prefix }}_category_store"
\ No newline at end of file
+objectcategorydefinition.keyspace="{{ cassandra_keyspace_prefix }}_category_store"
+
+# This will override all taxonamy service application configs from ansible
+{{taxonamy_service_config_override|d('')}}
-- 
GitLab