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

Deployment devops changes for K8s/Learner - JAPACCOE-2831 #6

Open
wants to merge 86 commits into
base: oci-5.1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
b8b4fc4
csp migration variables update
SadanandGowda Nov 29, 2022
484731b
Issue #ED-354 chore: Update aab firebase upload logic.
swayangjit Dec 8, 2022
d9f0bd9
Merge pull request #3657 from swayangjit/release-5.1.0
G33tha Dec 8, 2022
b14d6de
Release 5.1.0 vars change (#3658)
santhosh-tg Dec 8, 2022
8f5efcd
Issue #IQ-193 feat: updated config of assessment
krgauraw Dec 12, 2022
08abafc
Add a new variable (#3661)
Ashwiniev95 Dec 12, 2022
49bf92d
Merge pull request #3660 from krgauraw/release-5.1.0
G33tha Dec 13, 2022
0c14ae9
Update main.yml
raghupathiguduri Dec 13, 2022
f4f545d
Update shell_script_config.j2
raghupathiguduri Dec 13, 2022
44af6ff
Merge pull request #3662 from raghupathiguduri/patch-20
santhosh-tg Dec 13, 2022
ddeeff6
Update Ingestion Spec
raghupathiguduri Dec 13, 2022
8b2fba0
Merge pull request #3663 from raghupathiguduri/patch-21
santhosh-tg Dec 13, 2022
fb32016
Remove SAS token
raghupathiguduri Dec 14, 2022
2cd7a75
Merge pull request #3664 from raghupathiguduri/patch-22
santhosh-tg Dec 14, 2022
c0873da
Missing vars update (#3666)
raghupathiguduri Dec 14, 2022
c8dd939
LR-110 removed un-necessary prefix
prasadmoka Dec 14, 2022
664eac2
Merge pull request #3668 from prasadmoka/local-5.1.0
santhosh-tg Dec 14, 2022
9c6b12f
Release 5.1.0 - csp changes (#3667)
santhosh-tg Dec 14, 2022
061a993
Add logging level configuration for registry service (#3669)
VISHNUDAS-tunerlabs Dec 14, 2022
fadcdc0
LR-110 added default context
prasadmoka Dec 14, 2022
1b8d338
Merge pull request #3670 from prasadmoka/local-5.1.0
santhosh-tg Dec 14, 2022
95a83a1
Update config.j2 (#3673)
raghupathiguduri Dec 15, 2022
a807916
fix: ED-573 jenkins job to kill spark jobs
beepdot Dec 15, 2022
62e8c40
Merge pull request #3676 from keshavprasadms/release-5.1.0
G33tha Dec 15, 2022
ece7ed3
Update ingestion specs (#3677)
raghupathiguduri Dec 16, 2022
6b868b4
updated jenkins version and plugins (#3679)
saiakhil46 Dec 20, 2022
b61a35f
Issue #ED-592 fix: Pdata version updated (#3678)
Dec 20, 2022
3e1b320
csp migration variables update
SadanandGowda Dec 22, 2022
56ea8f9
csp migration variables update
SadanandGowda Dec 22, 2022
94ec163
Updated template value for dial ansible group (#3681)
gandham-santhosh Dec 22, 2022
6c6eebf
csp migration variables update
SadanandGowda Dec 22, 2022
afe31e6
csp migration variables update
SadanandGowda Dec 22, 2022
c7db90c
csp migration variables update (#3671)
SadanandGowda Dec 22, 2022
1195db5
csp migration variables update
SadanandGowda Dec 22, 2022
90c7e70
Merge branch 'release-5.1.0' into csp_changes
santhosh-tg Dec 22, 2022
ae19cd9
Merge pull request #3682 from SadanandGowda/csp_changes
santhosh-tg Dec 22, 2022
35e9dea
Ansible-postgres-patroni cluster (#3684)
nikhilvarma940 Dec 23, 2022
ba01495
Prashnavali reminder query added
Dec 26, 2022
8a73f68
added new jenkins adhoc job for ml-analytics #ED-569 (#3675)
raghupathiguduri Dec 27, 2022
b2c7600
fix: https:// already part of another url
beepdot Dec 27, 2022
e6110a6
Merge pull request #3686 from keshavprasadms/release-5.1.0
G33tha Dec 27, 2022
3da4be4
fix: updated split logic based on url value
beepdot Dec 27, 2022
d3e9c94
fix: removed https:// url string
beepdot Dec 27, 2022
854398a
fix: update url array index
beepdot Dec 27, 2022
b0333ba
Merge pull request #3687 from keshavprasadms/release-5.1.0
G33tha Dec 27, 2022
045d158
fix: remove hardcoded https from proxy_pass value (#3688)
beepdot Dec 27, 2022
b87d0d3
fix: remove https as its included in the var
beepdot Dec 28, 2022
33d0228
Merge pull request #3690 from keshavprasadms/release-5.1.0
G33tha Dec 28, 2022
15394c4
Project certificate download uris edited (#3691)
VISHNUDAS-tunerlabs Dec 28, 2022
e9978e7
Release 5.1.0 - CSP changes (#3692)
santhosh-tg Dec 29, 2022
13dfc47
ED-621: added placeholder variable
prasadmoka Dec 29, 2022
bf68b0d
removed variable
prasadmoka Dec 29, 2022
fd9a8f4
ED-621: added placeholder variable
prasadmoka Dec 29, 2022
7ea9376
Merge pull request #3694 from prasadmoka/local-5.1.0
saiakhil46 Dec 29, 2022
891b73c
Issue #KN-439 chore: Added the transcripts in cloudstorage_metadata_l…
AmiableAnil Dec 29, 2022
0f8f411
Merge pull request #3695 from AmiableAnil/release-5.1.0
santhosh-tg Dec 29, 2022
389013a
Add gcp vars for service accounts (#3696)
santhosh-tg Dec 30, 2022
fe6b336
Fix the command to get deployed image (#3698)
santhosh-tg Jan 2, 2023
084eb4f
Fix gcp deploy issues (#3699)
santhosh-tg Jan 2, 2023
16e0cd7
Added new variables (#3701)
raghupathiguduri Jan 3, 2023
ea44249
ED-621:updated configurations for release-5.1.0
prasadmoka Jan 5, 2023
1b8fe73
Updated private_repo template with CSP changes (#3689)
saiakhil46 Jan 5, 2023
51fa2e4
Merge pull request #3702 from prasadmoka/local-5.1.0
santhosh-tg Jan 5, 2023
664f931
fix: adding graylog related changes
beepdot Jan 10, 2023
a23919d
Release 5.1.0 (#3697)
santhosh-tg Jan 10, 2023
aab41ed
Merge pull request #3705 from keshavprasadms/release-5.1.0
santhosh-tg Jan 10, 2023
f94a83f
feat: ED-699 adding data to enable opa
beepdot Jan 10, 2023
c9297de
fear: adding required consumers for sessions
beepdot Jan 10, 2023
c4ac371
fix: adding additional set of vars for sessions and graylog
beepdot Jan 10, 2023
ecc5d0c
LR-278 added lern specific variables
prasadmoka Jan 11, 2023
08d628c
LR-278 added placeholder as configurable value
prasadmoka Jan 11, 2023
0776ab7
Merge pull request #3707 from prasadmoka/local-5.1.0
G33tha Jan 11, 2023
72d029c
Merge pull request #3685 from rekhaLuezoid/rekhaDevRelease5.1.0
santhosh-tg Jan 11, 2023
cd47df6
Merge pull request #3706 from keshavprasadms/release-5.1.0
santhosh-tg Jan 12, 2023
3937d5a
#000 | LERN and ED Dataproducts jenkins changes added
kumarks1122 Jan 12, 2023
1ed421f
#000 | LERN and ED Dataproducts jenkins changes added
kumarks1122 Jan 12, 2023
ee7e0a9
Merge pull request #3709 from kumarks1122/release-5.1.0-lern-jenkins-…
santhosh-tg Jan 12, 2023
f6227f3
fix: adding adminutil_learner_api_key consumer
beepdot Jan 13, 2023
eb77fcf
fix: adding adminutls to learner api token
beepdot Jan 13, 2023
1169032
Merge pull request #3710 from keshavprasadms/release-5.1.0
santhosh-tg Jan 13, 2023
6ab6862
Update youtube api key for content service (#3714)
G33tha Jan 17, 2023
e47f716
Merge remote-tracking branch 'upstream/release-5.1.0' into oci-5.1.0-…
ddevadat Jan 20, 2023
93eeb2d
added the missing uploads for desktop faq upload
ddevadat Jan 20, 2023
ccb4806
added CLOUD_STORAGE_ENDPOINT env variable
ddevadat Jan 20, 2023
f64c769
updated the ansible variable for cloud_storage_endpoint
ddevadat Jan 20, 2023
4280f7f
Added storage endpoint variable for stack sunbird learner
ddevadat Jan 22, 2023
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
14 changes: 8 additions & 6 deletions ansible/artifacts-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name: azure-cloud-storage
tasks_from: blob-download.yml
vars:
blob_container_name: "{{ artifacts_container }}"
blob_container_name: "{{ cloud_storage_artifacts_bucketname }}"
blob_file_name: "{{ artifact }}"
local_file_or_folder_path: "{{ artifact_path }}"
storage_account_name: "{{ cloud_artifact_storage_accountname }}"
Expand All @@ -21,6 +21,8 @@
name: gcp-cloud-storage
tasks_from: download.yml
vars:
gcp_storage_service_account_name: "{{ cloud_artifact_storage_accountname }}"
gcp_storage_key_file: "{{ cloud_artifact_storage_secret }}"
gcp_bucket_name: "{{ cloud_storage_artifacts_bucketname }}"
gcp_path: "{{ artifact }}"
local_file_or_folder_path: "{{ artifact_path }}"
Expand All @@ -32,9 +34,9 @@
tasks_from: download.yml
vars:
local_file_or_folder_path: "{{ artifact_path }}"
s3_bucket_name: "{{ aws_artifact_s3_bucket_name }}"
s3_path: "{{ artifacts_container }}/{{ artifact }}"
aws_default_region: "{{ aws_region }}"
aws_access_key_id: "{{ aws_artifact_bucket_access_key }}"
aws_secret_access_key: "{{ aws_artifact_bucket_secret_access_key }}"
s3_bucket_name: "{{ cloud_storage_artifacts_bucketname }}"
s3_path: "{{ artifact }}"
aws_default_region: "{{ cloud_public_storage_region }}"
aws_access_key_id: "{{ cloud_artifact_storage_accountname }}"
aws_secret_access_key: "{{ cloud_artifact_storage_secret }}"
when: cloud_service_provider == "aws"
14 changes: 8 additions & 6 deletions ansible/artifacts-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name: azure-cloud-storage
tasks_from: blob-upload.yml
vars:
blob_container_name: "{{ artifacts_container }}"
blob_container_name: "{{ cloud_storage_artifacts_bucketname }}"
container_public_access: "off"
blob_file_name: "{{ artifact }}"
local_file_or_folder_path: "{{ artifact_path }}"
Expand All @@ -22,6 +22,8 @@
name: gcp-cloud-storage
tasks_from: upload.yml
vars:
gcp_storage_service_account_name: "{{ cloud_artifact_storage_accountname }}"
gcp_storage_key_file: "{{ cloud_artifact_storage_secret }}"
gcp_bucket_name: "{{ cloud_storage_artifacts_bucketname }}"
gcp_path: "{{ artifact }}"
local_file_or_folder_path: "{{ artifact_path }}"
Expand All @@ -33,11 +35,11 @@
tasks_from: upload.yml
vars:
local_file_or_folder_path: "{{ artifact_path }}"
s3_bucket_name: "{{ aws_artifact_s3_bucket_name }}"
s3_path: "{{ artifacts_container }}/{{ artifact }}"
aws_default_region: "{{ aws_region }}"
aws_access_key_id: "{{ aws_artifact_bucket_access_key }}"
aws_secret_access_key: "{{ aws_artifact_bucket_secret_access_key }}"
s3_bucket_name: "{{ cloud_storage_artifacts_bucketname }}"
s3_path: "{{ artifact }}"
aws_default_region: "{{ cloud_public_storage_region }}"
aws_access_key_id: "{{ cloud_artifact_storage_accountname }}"
aws_secret_access_key: "{{ cloud_artifact_storage_secret }}"
when: cloud_service_provider == "aws"

- name: upload artifact to oci oss
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ if(client_id.toLowerCase() === 'android'){
"telemetry": {
"pdata": {
"id": pdataId,
"ver": "5.0.0",
"ver": "5.1.0",
"pid": "sunbird-portal"
}
}
Expand Down Expand Up @@ -2687,7 +2687,6 @@ if(client_id.toLowerCase() === 'android'){
function stringToHTML(str) {
let parser = new DOMParser();
let doc = parser.parseFromString(str, 'text/html');
console.log('Doc parse => ', doc); // TODO: log!
return doc?.body?.innerText || document.createElement('body');
}

Expand Down
30 changes: 12 additions & 18 deletions ansible/assets-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@
- hosts: localhost
vars_files:
- ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml']
# The vars: section is added for the below reason
# 1. Introduce a common variable for various clouds. In case of azure, it refers to container name, in case of aws / gcp, it refers to folder name
# 2. We want to avoid too many new variable introduction / replacement in first phase. Hence we will reuse the existing variable defined in private repo
# or other default files and just assign the value to the newly introduced common variable
# 3. After few releases, we will remove the older variables and use only the new variables across the repos
vars:
player_cdn_storage: "{{ player_cdn_container }}"
# Azure
tasks:
- name: this block consists of tasks related to azure storage
block:
- name: set common azure variables
set_fact:
blob_container_name: "{{ player_cdn_storage }}"
blob_container_name: "{{ cloud_storage_playercdn_bucketname }}"
container_public_access: "container"
blob_container_folder_path: ""
storage_account_name: "{{ cloud_public_storage_accountname }}"
storage_account_key: "{{ cloud_public_storage_secret }}"
storage_account_sas_token: "{{ azure_public_storage_account_sas }}"

- name: delete files and folders from azure storage using azcopy
include_role:
Expand All @@ -40,11 +32,11 @@
block:
- name: set common aws variables
set_fact:
s3_bucket_name: "{{ aws_public_s3_bucket_name }}"
s3_path: "{{ player_cdn_storage }}"
aws_default_region: "{{ aws_region }}"
aws_access_key_id: "{{ aws_public_bucket_access_key }}"
aws_secret_access_key: "{{ aws_public_bucket_secret_access_key }}"
s3_bucket_name: "{{ cloud_storage_playercdn_bucketname }}"
s3_path: ""
aws_default_region: "{{ cloud_public_storage_region }}"
aws_access_key_id: "{{ cloud_public_storage_accountname }}"
aws_secret_access_key: "{{ cloud_public_storage_secret }}"

- name: delete files and folders from s3
include_role:
Expand All @@ -64,10 +56,12 @@
block:
- name: set common gcloud variables
set_fact:
dest_folder_name: "{{ player_cdn_storage }}"
dest_folder_path: ""
file_delete_pattern: "{{ player_cdn_storage }}/"
gcp_bucket_name: "{{ gcloud_public_bucket_name }}"
gcp_storage_service_account_name: "{{ cloud_public_storage_accountname }}"
gcp_storage_key_file: "{{ cloud_public_storage_secret }}"
gcp_bucket_name: "{{ cloud_storage_playercdn_bucketname }}"
gcp_path: ""
file_delete_pattern: ""


- name: delete files and folders from gcloud storage
include_role:
Expand Down
28 changes: 11 additions & 17 deletions ansible/deploy-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
gather_facts: no
vars_files:
- "{{inventory_dir}}/secrets.yml"
# The vars: section is added for the below reason
# 1. Introduce a common variable for various clouds. In case of azure, it refers to container name, in case of aws / gcp, it refers to folder name
# 2. We want to avoid too many new variable introduction / replacement in first phase. Hence we will reuse the existing variable defined in private repo
# or other default files and just assign the value to the newly introduced common variable
# 3. After few releases, we will remove the older variables and use only the new variables across the repos
vars:
plugin_storage: "{{ plugin_container_name }}"
tasks:
- name: rename env_domain in preview_cdn.html for CDN
shell: |
Expand All @@ -22,11 +15,10 @@
block:
- name: set common azure variables
set_fact:
blob_container_name: "{{ plugin_storage }}"
blob_container_name: "{{ cloud_storage_content_bucketname }}"
container_public_access: "container"
storage_account_name: "{{ cloud_public_storage_accountname }}"
storage_account_key: "{{ cloud_public_storage_secret }}"
storage_account_sas_token: "{{ azure_public_storage_account_sas }}"
tags:
- always
no_log: True
Expand Down Expand Up @@ -148,6 +140,8 @@
name: gcp-cloud-storage
tasks_from: "{{ item[0] }}"
vars:
gcp_storage_service_account_name: "{{ cloud_public_storage_accountname }}"
gcp_storage_key_file: "{{ cloud_public_storage_secret }}"
file_delete_pattern: "content-plugins/{{ item[1] }}/*"
gcp_path: "content-plugins/{{ item[1] }}"
local_file_or_folder_path: "{{ source_folder }}/{{ item[1] }}"
Expand All @@ -168,10 +162,10 @@
block:
- name: set common aws variables
set_fact:
aws_default_region: "{{ aws_region }}"
s3_bucket_name: "{{ aws_public_s3_bucket_name }}"
aws_access_key_id: "{{ aws_public_bucket_access_key }}"
aws_secret_access_key: "{{ aws_public_bucket_secret_access_key }}"
aws_default_region: "{{ cloud_public_storage_region }}"
s3_bucket_name: "{{ cloud_storage_content_bucketname }}"
aws_access_key_id: "{{ cloud_public_storage_accountname }}"
aws_secret_access_key: "{{ cloud_public_storage_secret }}"
tags:
- always

Expand All @@ -181,7 +175,7 @@
name: aws-cloud-storage
tasks_from: delete-folder.yml
vars:
s3_path: "{{ plugin_storage }}/{{ folder_name }}"
s3_path: "{{ folder_name }}"
tags:
- content-editor
- collection-editor
Expand All @@ -194,7 +188,7 @@
name: aws-cloud-storage
tasks_from: upload-folder.yml
vars:
s3_path: "{{ plugin_storage }}/{{ folder_name }}"
s3_path: "{{ folder_name }}"
local_file_or_folder_path: "{{ source_name }}"
tags:
- content-editor
Expand All @@ -210,14 +204,14 @@
name: aws-cloud-storage
tasks_from: upload.yml
vars:
s3_path: "{{ plugin_storage }}/artefacts/content-player/content-player-{{ player_version_number }}.zip"
s3_path: "artefacts/content-player/content-player-{{ player_version_number }}.zip"
local_file_or_folder_path: "{{ source_file_name }}"
tags:
- preview

- block:
- name: run the s3_copy.sh script
shell: "bash {{ s3_file_path }} {{ plugin_storage }} {{ source_file }} {{ aws_public_s3_bucket_name }}"
shell: "bash {{ s3_file_path }} {{ source_file }} {{ cloud_public_storage_accountname }}"
async: 3600
poll: 10
environment:
Expand Down
Loading