From 44e1f7f516a7e97b8c013fb9fd1a09f6ed2ae1d4 Mon Sep 17 00:00:00 2001 From: surabhi-mahawar <surabhi.mahawar@aurigait.com> Date: Wed, 6 Apr 2022 18:57:04 +0530 Subject: [PATCH] env variables for redis (#3278) --- .../roles/stack-sunbird/templates/orchestrator.env | 10 ++++++++++ ansible/roles/stack-sunbird/templates/transformer.env | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ansible/roles/stack-sunbird/templates/orchestrator.env b/ansible/roles/stack-sunbird/templates/orchestrator.env index 6409e92ef..bd6b974a1 100644 --- a/ansible/roles/stack-sunbird/templates/orchestrator.env +++ b/ansible/roles/stack-sunbird/templates/orchestrator.env @@ -38,3 +38,13 @@ CAMPAIGN_ADMIN_TOKEN={{uci_api_admin_token}} # API Key for Fusionauth. More details on how to generate this here -> https://fusionauth.io/docs/v1/tech/apis/authentication/#api-key-authentication # Note - You will need access to UI to generate this the first time. FUSIONAUTH_KEY={{fusionauth_service_admin_key}} + + +#Environment +ENV={{env}} + +#Redis +REDIS_HOST={{sunbird_redis_host}} +REDIS_PASS={{sunbird_redis_pass | default('')}} +REDIS_PORT={{sunbird_redis_port | default(6379)}} +REDIS_DB_INDEX={{redis_db_index_uci | default('7')}} diff --git a/ansible/roles/stack-sunbird/templates/transformer.env b/ansible/roles/stack-sunbird/templates/transformer.env index 7b44b3744..30963cb81 100644 --- a/ansible/roles/stack-sunbird/templates/transformer.env +++ b/ansible/roles/stack-sunbird/templates/transformer.env @@ -52,4 +52,13 @@ NETCORE_WHATSAPP_SOURCE={{uci_netcore_whatsapp_source}} NETCORE_WHATSAPP_URI={{uci_netcore_whatsapp_uri | default('https://waapi.pepipost.com/api/v2/')}} #Telemetry -TELEMETRY_EVENT_PDATA_ID={{uci_env | default(env)}}.uci.{{sunbird_instance}} \ No newline at end of file +TELEMETRY_EVENT_PDATA_ID={{uci_env | default(env)}}.uci.{{sunbird_instance}} + +#Environment +ENV={{env}} + +#Redis +REDIS_HOST={{sunbird_redis_host}} +REDIS_PASS={{sunbird_redis_pass | default('')}} +REDIS_PORT={{sunbird_redis_port | default(6379)}} +REDIS_DB_INDEX={{redis_db_index_uci | default('7')}} \ No newline at end of file -- GitLab