diff --git a/ansible/roles/ml-analytics-service/defaults/main.yml b/ansible/roles/ml-analytics-service/defaults/main.yml index b85fe27059..e01e13b6e0 100755 --- a/ansible/roles/ml-analytics-service/defaults/main.yml +++ b/ansible/roles/ml-analytics-service/defaults/main.yml @@ -138,4 +138,6 @@ ml_analytics_batch_cron_hour: "{{ ml_batch_cron_hour | default('18') }}" ml_analytics_nvsk_cron_minute: "{{ ml_nvsk_cron_minute | default('30') }}" ml_analytics_nvsk_cron_hour: "{{ ml_nvsk_cron_hour | default('7') }}" ml_analytics_nvsk_cron_weekday: "{{ ml_nvsk_cron_weekday | default('4') }}" -ml_analytics_faust_applications_list: "'observations/py_observation_streaming observations/', 'observations/py_observation_evidence_streaming observations/', 'survey/py_survey_streaming survey/', 'survey/py_survey_evidence_streaming survey/'" \ No newline at end of file +ml_analytics_faust_applications_list: "'observations/py_observation_streaming observations/', 'observations/py_observation_evidence_streaming observations/', 'survey/py_survey_streaming survey/', 'survey/py_survey_evidence_streaming survey/'" +ml_capture_user_profile : "{{ ml_capture_user_profile | default('True') }}" +ml_capture_organisation_name : "{{ ml_capture_organisation_name | default('True') }}" diff --git a/ansible/roles/ml-analytics-service/templates/config.j2 b/ansible/roles/ml-analytics-service/templates/config.j2 index 201e9ab8b5..5f76393859 100644 --- a/ansible/roles/ml-analytics-service/templates/config.j2 +++ b/ansible/roles/ml-analytics-service/templates/config.j2 @@ -178,7 +178,7 @@ survey_rollup = {{ ml_analytics_survey_rollup_output_dir }} survey_status = {{ ml_analytics_survey_status_output_dir }} -observation_sub_ids = {{ ml_analytics_observation_submission_id_filepath }} +observation_sub_ids = {{ ml_analytics_observation_submission_id_filepath }} observation_druid_data = {{ ml_analytics_observation_batchupdate_output_dir }} @@ -188,6 +188,10 @@ survey_druid_data = {{ml_analytics_survey_batchupdate_output_dir}} program_text_file = {{ml_analytics_project_program}} +CAPTURE_USER_PROFILE = {{ ml_capture_user_profile }} + +CAPTURE_ORGANISATION_NAME = {{ ml_capture_organisation_name }} + [SLACK] token = {{ml_slack_token}} diff --git a/ansible/roles/stack-sunbird/templates/ml-analytics-service.conf b/ansible/roles/stack-sunbird/templates/ml-analytics-service.conf index 707dc83e6f..97a35a4fa8 100644 --- a/ansible/roles/stack-sunbird/templates/ml-analytics-service.conf +++ b/ansible/roles/stack-sunbird/templates/ml-analytics-service.conf @@ -213,6 +213,10 @@ survey_druid_data = /opt/sparkjobs/source/survey/ program_text_file = /opt/sparkjobs/ml-analytics-service/projects/program_ids.txt +CAPTURE_USER_PROFILE = {{ ml_capture_user_profile | default('True') }} + +CAPTURE_ORGANISATION_NAME = {{ ml_capture_organisation_name | default('True') }} + [SLACK] token = {{ ml_analytics_slack_token | default('') }}