Skip to content

Commit

Permalink
Issue Sunbird-Lern#24 chore:Sunbird auth package build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahghatol committed Dec 20, 2017
1 parent 1be99a1 commit 216e1b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions keycloak/scripts/ansible/roles/keycloak/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
sunbird_auth_version: 1.0v
#keycloak_pkg_src: https://downloads.jboss.org/keycloak/3.2.0.Final/keycloak-3.2.0.Final.tar.gz
keycloak_pkg_src: http://192.168.1.151/keycloak-3.2.0.Final.tar.gz
keycloak_pkg_src: https://downloads.jboss.org/keycloak/3.2.0.Final/keycloak-3.2.0.Final.tar.gz
#keycloak_pkg_src: http://192.168.1.151/keycloak-3.2.0.Final.tar.gz
postgresql_driver_src: https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar

keycloak_pkg_file: "keycloak-3.2.0.Final.tar.gz"
keycloak_sms_provider_build: "keycloak-email-phone-autthenticator-1.0-SNAPSHOT.jar"
keycloak_subsystem: '
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>auth</web-context>
Expand Down
10 changes: 5 additions & 5 deletions keycloak/scripts/ansible/roles/keycloak/tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
- name: get the keycloak tarball
get_url: url={{keycloak_pkg_src}} dest=sunbird_auth_{{sunbird_auth_version}}/ force=no

- name: Extract keycloak-3.2.0.Final.tar.gz
shell: cd sunbird_auth_{{sunbird_auth_version}} && tar -xvf keycloak-3.2.0.Final.tar.gz --strip 1
- name: Extract {{keycloak_pkg_file}}
shell: cd sunbird_auth_{{sunbird_auth_version}} && tar -xvf {{keycloak_pkg_file}} --strip 1

- name: Create sunbird auth directory
file:
Expand All @@ -23,7 +23,7 @@
shell: cd ../../sms-provider && mvn package

- name: Copy SMS OTP jar file to providers dir
copy: src="../../sms-provider/target/keycloak-email-phone-autthenticator-1.0-SNAPSHOT.jar" dest="sunbird_auth_{{sunbird_auth_version}}/providers/"
copy: src="../../sms-provider/target/{{keycloak_sms_provider_build}}" dest="sunbird_auth_{{sunbird_auth_version}}/providers/"

- name: Create sunbird auth directory
file:
Expand Down Expand Up @@ -60,9 +60,9 @@

- name: remove the Keycloak zip
become: yes
file: path="sunbird_auth_{{sunbird_auth_version}}/keycloak-3.2.0.Final.tar.gz" state=absent
file: path="sunbird_auth_{{sunbird_auth_version}}/{{keycloak_pkg_file}}" state=absent

- archive:
path: sunbird_auth_{{sunbird_auth_version}}
dest: "/home/ttpllt23/Desktop/sunbird_auth_{{sunbird_auth_version}}"
dest: "sunbird_auth_{{sunbird_auth_version}}.zip"
format: zip

0 comments on commit 216e1b9

Please sign in to comment.