From fd2ec67d8ca167171c91bfc6751b4872acaaf4a3 Mon Sep 17 00:00:00 2001 From: ahghatol Date: Thu, 8 Feb 2018 15:13:02 +0530 Subject: [PATCH] Issue #496 feat: Script to automate realm management (#35) * Issue #00 chore: update var names of content service * Issue #00 chore: cadvisor limit memory increased * Issue #00 chore: Jenkins slave limit memory increased * Issue #00 chore: cadvisor limit memory increased * Issue #00 chore: diabled the health_check of learner-service * Issue #00 chore: Added health check for learner service * Issue #00 chore: incresed exporters limit and reservations memory * Issue #SB-1236 chore: Add new content service vars * Issue #SB-1236 chore: Update the content service docker file for installing imagemagik * chore #000: api-onboarding * Issue #00 chore: updating mailing list * Issue #SB-1236 fix: onboarding dialcode apis * Issue #367 chore: fix to the es backup * Issue #367 chore: fix to the es backup * Issue #367 chore: fix to the es backup * Issue #365 chore: Cassandra migration * Issue #367 chore: es backup issue * Issue #SB-1403 fix: onboarding framework apis * Issue #SB-1403 fix: onboarding framework apis * Issue #SB-1403 fix: onboarding framework apis * Issue #SB-1403 fix: onboarding framework apis url fix * Issue #SB-1403 feat: added new api' "copy framework" (#25) * Issue #000 chore: MCF AND SSS * Issue #22 feat: unified script for sunbird installation * Issue #22 fix: fixed su permission * Issue #22 fix: updated script for better compatibility * Issue #22 feat: updated generate config * Issue #22 feat: updated logging * Issue #22 fix: updated atomic execution * Issue #22 fix: ansible versioning fix * Issue #22 fix: removed duplicated ansible installation * Issue #22 fix : renamed mcf to config * Issue #22 fix: removed core from sunbird installation * Issue #22 feat: updated logging for script * Issue #22 fix: removed core from unified script * Issue #22 feat: changed ssl content to path * Issue #367 chore: es backup issue * Issue #22 feat: dynamic inventory creation * Issue #22 feat: cleanup config * Issue #22 fix: theme copying is not mandatory * Issue #22 feat: overriding vars with config * Issue #22 fix: removed depricated mongodb * Issue #22 fix: keycloak ansible inventory path * Issue #22 fix: docker daemon permission denied * Issue #22 fix: overriding vars * Issue #22 fix: postgres user not found error * Issue #22 fix: changed templatig to copying to avoid infinite variable looping * Issue #22 fix: idiomatic syntaxing * Issue #22 fix: syntax error * Issue #22 fix: syntax errors * Issue #22 fix: removed templating for static files * Issue #22 fix: variable * Issue #22 fix: added static files * Issue #22 fix: es variable not decalred * Issue #22 feat: ignoring failed message because of data already present at db * Issue #22 feat: overriding vars * Issue #22 chore: updated the core services versions * Issue #22 chore: Change the environment to env in mcf * Issue #22 chore: Change the kong host details * Issue #22 fix: stop at any error * Issue #22 chore: jwt token copying * Issue #22 chore: skip ansible_host_key_verification * Issue #22 chore: certbot script added * Issue #22 chore: certbot script added * Issue #22 chore: certbot script added * Issue #22 fix: ansible host overriding * Issue #22 fix: ansible hosts overriding * Issue #22 feat: removed mcf deps and posix naming conventions * Issue #22 feat: removed custom sed and bought posix naming conventions custom sed used to replace the ansible inventory, implimented ansible idiomatic way. * Issue #23 feat: restore cassandra to a fresh installation * Issue #23 feat: cassandra restore * Issue #23 feat: cassandra backup * Issue #23 feat: cleaning up * duplicate of cassandra_complete_backup * duplicate complete_restore * Issue #23 feat: posix nomenclature * Issue #369 chore: fix alerts * Issue #369 chore: fix alerts * Issue #369 chore: fix alerts * Issue #22 fix: updated missing var * Issue #22 feat: updated unused vars * Issue #22 fix: cleanup unused vars * Issue #22 feat: improved docker installation check * Issue #22 feat: idempotency * Issue #22 fix: Idempotent deps * Issue #29 fix: dpkg search failing * Issue #29 fix: certbot ssl was not getting created * Issue #22 feat: Updated mandatory and optional fields * Issue #22 feat: updated for core services * Issue #22 feat: Updated with jwt creation * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #31 chore: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #30 chore: hardcoding the deployer sudo pass * Issue #22 fix: keycloak is not working after ansible ip overriding * Issue #22 feat: update variables * Issue #30 chore: changed the inventory file * Issue #30 chore: changed the inventory file * Issue #30 chore: postgres installation * Issue #30 chore: postgres installation * Script to automate realm management user creation and initial realm import for new keycloak install (#31) * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #496 feat: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #31 chore: Script to automate realm management user creation and initial realm import for new keycloak install * Issue #30 chore: sunbird_image_storage_url is added to defaults * Issue #31 chore: Script to automate realm management user creation and initial realm import for new keycloak install --- ansible/inventories/sample/group_vars/sample | 9 +++++++++ ansible/roles/keycloak/tasks/main.yml | 2 +- ansible/roles/stack-sunbird/defaults/main.yml | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ansible/inventories/sample/group_vars/sample b/ansible/inventories/sample/group_vars/sample index 759f63c16f..93f3fdd931 100644 --- a/ansible/inventories/sample/group_vars/sample +++ b/ansible/inventories/sample/group_vars/sample @@ -63,6 +63,15 @@ sunbird_sso_password: "{{sso_password}}" keycloak_password: "{{keycloak_admin_password}}" #admin password for the keycloak_auth login keycloak_theme_path: #path to the keycloak theme files +## Keycloak bootstrap +keycloak_realm_json_file_path: "roles/keycloak/files/python-keycloak-0.12.0/keycloak-realm.json" +keycloak_user_manager_roles_json_file_path: "roles/keycloak/files/python-keycloak-0.12.0/roles.json" +keycloak_api_management_username: "" +keycloak_api_management_user_email: "" +keycloak_api_management_user_first_name: "" +keycloak_api_management_user_last_name: "" +keycloak_api_management_user_password: "" + ## Content Repo configuration sunbird_api_auth_token: "{{ekstep_auth_token}}" #Authorization key (JWT) to access Sunbird APIs. This will be in the output of deploy-apis.sh script, extracting it out is documented in the deployment wiki. sunbird_ekstep_api_key: "{{ekstep_api_key}}" #Authorization key (JWT) to access Ekstep APIs. Steps to generate this are documented on https://github.com/project-sunbird/sunbird-commons/wiki/Obtaining-API-token-for-accessing-ekstep-APIs diff --git a/ansible/roles/keycloak/tasks/main.yml b/ansible/roles/keycloak/tasks/main.yml index 23f4fa229f..8d21dcbac0 100644 --- a/ansible/roles/keycloak/tasks/main.yml +++ b/ansible/roles/keycloak/tasks/main.yml @@ -8,4 +8,4 @@ - include: keycloak_bootstrap.yml tags: - - keycloak-bootstrap.yml \ No newline at end of file + - keycloak-bootstrap diff --git a/ansible/roles/stack-sunbird/defaults/main.yml b/ansible/roles/stack-sunbird/defaults/main.yml index 0a80017178..420871a117 100644 --- a/ansible/roles/stack-sunbird/defaults/main.yml +++ b/ansible/roles/stack-sunbird/defaults/main.yml @@ -43,4 +43,5 @@ sunbird_background_actor_port: sunbird_actor_system_name: sunbird_fcm_account_key: sunbird_app_url: +sunbird_image_storage_url: