Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.8.0 #306

Open
wants to merge 37 commits into
base: release-5.0.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3614d9e
commented root -org creation for test
gohilamariappan Sep 2, 2022
20f22c1
tags removed in jenkinsfile for 4.3.0 post install
gohilamariappan Sep 2, 2022
28e7831
channel name updated
gohilamariappan Sep 12, 2022
9bfdb3a
updated yaml for test
gohilamariappan Sep 13, 2022
c351cac
syntax test
gohilamariappan Sep 13, 2022
7764838
test
gohilamariappan Sep 13, 2022
66071e1
user-org updated
gohilamariappan Sep 13, 2022
1747da9
Update main.yml
Haritest Sep 15, 2022
e6c19fb
Update main.yml
Haritest Sep 15, 2022
7f44a14
Update main.yml
Haritest Sep 15, 2022
9d81a12
Update main.yml
Haritest Sep 22, 2022
fe0d762
Update main.yml
Haritest Sep 22, 2022
0a588b2
Update main.yml
Haritest Sep 22, 2022
7a00803
Update main.yml
Haritest Oct 4, 2022
ebf7381
Update main.yml
Haritest Oct 4, 2022
b10589c
Update user_org.yaml
Haritest Oct 4, 2022
5e990a9
Update main.yml
Haritest Oct 4, 2022
bd67ceb
Update main.yml
Haritest Oct 6, 2022
0176535
Update main.yml
Haritest Oct 6, 2022
ceabf9d
Update main.yml
Haritest Oct 16, 2022
543a761
Update main.yml
Haritest Oct 27, 2022
fc94be9
updated search template
gohilamariappan Nov 24, 2022
0670c91
search fuzzy.when.noresult added
Haritest Nov 25, 2022
7610bc2
Updated query value
Radheshhathwar Dec 8, 2022
dff89cb
Merge pull request #70 from Radheshhathwar/release-4.8.0
gohilamariappan Dec 8, 2022
9fec791
Removed additional query atributes
Radheshhathwar Dec 15, 2022
c58dbcb
Merge pull request #72 from Radheshhathwar/release-4.8.0
gohilamariappan Dec 15, 2022
1ac1abf
Changed query value according to Production data
Radheshhathwar Dec 23, 2022
7252c52
Merge pull request #75 from Radheshhathwar/release-4.8.0
gohilamariappan Dec 23, 2022
349e992
added sunbird_mail_server_use_tls
gohilamariappan Jan 17, 2023
f505089
Update search-service_application.conf search.fields.enable.secureSet…
Haritest May 31, 2023
198ff76
Update Jenkinsfile docker push
Haritest Jun 6, 2023
06991f7
Update main.yml cassandra repo updated
Haritest Sep 26, 2023
cd30abe
Update Jenkinsfile 'build-slave' added in node
Haritest Sep 26, 2023
63444c8
Update sunbird_telemetry-service.env telemetry_kafka_compression chan…
Haritest Oct 6, 2023
2f10e1a
Update sunbird_telemetry-service.env typo updated
Haritest Oct 6, 2023
b35fef5
Update Jenkinsfile artifact upload fix
Haritest Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/roles/cassandra/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
user_home: "/home/{{ ansible_ssh_user }}/"
cassandra_repo: 'deb http://www.apache.org/dist/cassandra/debian 311x main'
cassandra_repo_key: 'https://www.apache.org/dist/cassandra/KEYS'
cassandra_repo: 'deb https://debian.cassandra.apache.org 311x main'
cassandra_repo_key: 'https://downloads.apache.org/cassandra/KEYS'
resource_crunch: "yes" # make this value yes if heap size should be quarter of the Server Memory when you are deploying multiple databases, else make this value no to have 50% of the value as per the best practice of cassandra
cassandra_home_directory: "/var/lib/cassandra"
6 changes: 3 additions & 3 deletions ansible/roles/post-install/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1635,9 +1635,9 @@ custodian_org_data:
- { "id": "{{ sunbird_default_channel }}", "field": "{{ sunbird_default_channel }}", "value": "https://{{ domain_name }}/faq" }

default_user_details:
- { "firstName": "creator", "lastName": "", "email": "creator@yopmail.com", "password":"Pass@123" }
- { "firstName": "reviewer", "lastName": "", "email": "reviewer@yopmail.com", "password":"Pass@123" }
- { "firstName": "publisher", "lastName": "", "email": "publisher@yopmail.com", "password":"Pass@123" }
- { "firstName": "creator4", "lastName": "", "email": "creator4@yopmail.com", "password":"Pass@123" }
- { "firstName": "reviewer4", "lastName": "", "email": "reviewer4@yopmail.com", "password":"Pass@123" }
- { "firstName": "publisher4", "lastName": "", "email": "publisher4@yopmail.com", "password":"Pass@123" }

# These variables will get overridden on run time
state_id: ""
Expand Down
98 changes: 49 additions & 49 deletions ansible/roles/post-install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,55 +16,55 @@
- debug:
var: keycloak_access_token

- name: Creating root org
block:
- uri:
url: "https://{{ domain_name }}/api/org/v1/create"
method: POST
headers:
x-authenticated-user-token: "{{ keycloak_access_token }}"
Authorization: "Bearer {{ core_vault_sunbird_api_auth_token }}"
body_format: json
body: |-
{
"request": {
"orgName": "Sunbird",
"channel": "{{ sunbird_default_channel }}",
"description": "Default Channel",
"isTenant": true,
"organisationType":"board"
}
}
register: custodian_org_output
- debug:
var: custodian_org_output
- set_fact:
sunbird_custodian_org_id: "{{ custodian_org_output.json.result.organisationId }}"
- debug:
var: sunbird_custodian_org_id
#- name: Creating root org
# block:
# - uri:
# url: "https://{{ domain_name }}/api/org/v1/create"
# method: POST
# headers:
# x-authenticated-user-token: "{{ keycloak_access_token }}"
# Authorization: "Bearer {{ core_vault_sunbird_api_auth_token }}"
# body_format: json
# body: |-
# {
# "request": {
# "orgName": "Sunbird",
# "channel": "{{ sunbird_default_channel }}",
# "description": "Default Channel",
# "isTenant": true,
# "organisationType":"board"
# }
# }
# register: custodian_org_output
# - debug:
# var: custodian_org_output
# - set_fact:
# sunbird_custodian_org_id: "{{ custodian_org_output.json.result.organisationId }}"
# - debug:
# var: sunbird_custodian_org_id

# Else login won't work
- name: Creating NTP org for login
block:
- uri:
url: "https://{{ domain_name }}/api/org/v1/create"
method: POST
headers:
x-authenticated-user-token: "{{ keycloak_access_token }}"
Authorization: "Bearer {{ core_vault_sunbird_api_auth_token }}"
body_format: json
body: |-
{
"request": {
"orgName":"NTP",
"description":"NTP Organisation for Sunbird",
"isRootOrg": true,
"channel": "ntp",
"organisationType": "board",
"isTenant": true
}
}
#- name: Creating NTP org for login
# block:
# - uri:
# url: "https://{{ domain_name }}/api/org/v1/create"
# method: POST
# headers:
# x-authenticated-user-token: "{{ keycloak_access_token }}"
# Authorization: "Bearer {{ core_vault_sunbird_api_auth_token }}"
# body_format: json
# body: |-
# {
# "request": {
# "orgName":"NTP",
# "description":"NTP Organisation for Sunbird",
# "isRootOrg": true,
# "channel": "ntp",
# "organisationType": "board",
# "isTenant": true
# }
# }

# - import_tasks: knowledge_platform_tasks.yaml
# - import_tasks: user_org.yaml
# - import_tasks: forms.yaml
#- import_tasks: knowledge_platform_tasks.yaml
#- import_tasks: user_org.yaml
#- import_tasks: forms.yaml
40 changes: 0 additions & 40 deletions ansible/roles/post-install/tasks/user_org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "REPORT_ADMIN",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "CONTENT_REVIEWER",
"operation":"add",
Expand All @@ -82,11 +77,6 @@
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "ORG_MANAGEMENT",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "TEACHER_BADGE_ISSUER",
"operation":"add",
Expand All @@ -97,26 +87,11 @@
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "CONTENT_CURATION",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "SYSTEM_ADMINISTRATION",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "ANNOUNCEMENT_SENDER",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "PROGRAM_MANAGER",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "REPORT_VIEWER",
"operation":"add",
Expand All @@ -127,21 +102,6 @@
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "CONTENT_REVIEW",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "CONTENT_CREATION",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "MEMBERSHIP_MANAGEMENT",
"operation":"add",
"scope": [{ "organisationId": "{{ sunbird_custodian_org_id }}" }]
},
{
"role": "COURSE_CREATOR",
"operation":"add",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ installation.id="{{sunbird_installation}}"
# ElasticSearch Configuration
ekstepPlatformApiUserId="search-service"
search.es_conn_info="{{ search_index_host }}"
search.fields.query=["name^100","title^100","lemma^100","code^100","domain","subject","description^10","keywords^100","ageGroup^10","filter^10","theme^10","genre^10","objects^25","contentType^100","language^200","teachingMode^25","skills^10","learningObjective^10","curriculum^100","gradeLevel^100","developer^100","attributions^10","identifier^100","IL_UNIQUE_ID^100","owner^50","board^100","relatedBoards^100","creator^100", "dialcodes^100","text","words","releaseNotes"]
search.fields.query=["name^100", "identifier^100", "purpose^60", "keywords^60", "source^50.0", "owner^50", "creator^20", "language^20.0", "contentType^10", "description^5.0"]
search.fields.date=["lastUpdatedOn","createdOn","versionDate","lastSubmittedOn","lastPublishedOn"]
search.fields.mode_collection=["identifier","name","objectType","contentType","mimeType","size","childNodes","board","subject","medium","gradeLevel","appIcon","resourceType","origin","originData"]
search.batch.size=500
Expand All @@ -347,3 +347,6 @@ compositesearch.index.name="{{ compositesearch_index_name }}"
content.tagging.backward_enable=false
content.tagging.property=["subject","medium"]
search.payload.log_enable=true

search.fields.enable.fuzzy.when.noresult=true
search.fields.enable.secureSettings=true
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ LEARNER_SERVICE_PORT=http://learner-service:9000
sunbird_us_system_setting_url=/api/data/v1/system/settings/list
sunbird_us_org_read_url=/v1/org/read
notification_category_type_config=certificateUpdate
sunbird_mail_server_use_tls="true"


Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ telemetry_local_storage_enabled=true
telemetry_local_storage_type={{sunbird_telemetry_dispatchers}}
telemetry_kafka_broker_list={{sunbird_telemetry_kafka_servers}}
telemetry_kafka_topic={{sunbird_telemetry_kafka_topic}}
telemetry_kafka_compression=snappy
telemetry_kafka_compression=none

# Below is the config to enable Telemetry Proxy. To send telemetry data to ekstep
telemetry_proxy_enabled=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ monitoring_stack:
- elasticsearch-exporter
- logger
- blackbox-exporter
- additional-scrape-configs
# - additional-scrape-configs
- alertrules
- kafka-topic-exporter
- prometheus-redis-exporter
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/pipelines/post-install/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ node() {
jobName = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-1].trim().toLowerCase()
currentWs = sh(returnStdout: true, script: 'pwd').trim()
ansiblePlaybook = "$currentWs/ansible/post-install.yaml"
ansibleExtraArgs = "--vault-password-file /var/lib/jenkins/secrets/vault-pass --tags ${params.tag} -v"
ansibleExtraArgs = "--vault-password-file /var/lib/jenkins/secrets/vault-pass -v"
values.put('currentWs', currentWs)
values.put('env', envDir)
values.put('module', module)
Expand Down
4 changes: 2 additions & 2 deletions pipelines/upload/artifacts/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ node() {
throw err
}
finally {
slack_notify(currentBuild.result)
email_notify()
// slack_notify(currentBuild.result)
// email_notify()
}
}
6 changes: 3 additions & 3 deletions pipelines/upload/docker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node(){
node('build-slave'){
try {
stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
Expand Down Expand Up @@ -37,7 +37,7 @@ node(){
throw err
}
finally {
slack_notify(currentBuild.result)
email_notify()
// slack_notify(currentBuild.result)
// email_notify()
}
}