You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/06/15 16:20:20 UTC

[1/7] airavata git commit: AIRAVATA-2376 Add millisecond precision to TIME_OF_STATE_CHANGE

Repository: airavata
Updated Branches:
  refs/heads/develop 251070bb3 -> 2075f41e1


AIRAVATA-2376 Add millisecond precision to TIME_OF_STATE_CHANGE


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/7ff71300
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/7ff71300
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/7ff71300

Branch: refs/heads/develop
Commit: 7ff713008d69fc62f521128f2a3f8169d513f416
Parents: f6f2adc
Author: Marcus Christie <ma...@apache.org>
Authored: Tue Jun 13 09:39:36 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Tue Jun 13 09:39:36 2017 -0400

----------------------------------------------------------------------
 .../registry/registry-core/src/main/resources/expcatalog-mysql.sql | 2 +-
 .../0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/7ff71300/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql b/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql
index 5397a7a..b4e437c 100644
--- a/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql
+++ b/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql
@@ -156,7 +156,7 @@ CREATE TABLE EXPERIMENT_STATUS (
   STATUS_ID varchar(255),
   EXPERIMENT_ID varchar(255),
   STATE varchar(255),
-  TIME_OF_STATE_CHANGE TIMESTAMP DEFAULT NOW() ON UPDATE NOW(),
+  TIME_OF_STATE_CHANGE TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
   REASON LONGTEXT,
   PRIMARY KEY (STATUS_ID, EXPERIMENT_ID),
   FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE

http://git-wip-us.apache.org/repos/asf/airavata/blob/7ff71300/modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql
----------------------------------------------------------------------
diff --git a/modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql b/modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql
index 9189a54..9bc292e 100644
--- a/modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql
+++ b/modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/expCatalog_schema_delta.sql
@@ -48,7 +48,7 @@ ALTER TABLE `GATEWAY` ADD `OAUTH_CLIENT_ID` varchar(255) DEFAULT NULL;
 ALTER TABLE `GATEWAY` ADD `DECLINED_REASON` varchar(255) DEFAULT NULL;
 ALTER TABLE `GATEWAY` ADD `OAUTH_CLIENT_SECRET` varchar(255) DEFAULT NULL;
 ALTER TABLE `USERS` CHANGE `AIRAVATA_INTERNAL_USER_ID` `AIRAVATA_INTERNAL_USER_ID` varchar(255) NOT NULL;
-ALTER TABLE `EXPERIMENT_STATUS` CHANGE `TIME_OF_STATE_CHANGE` `TIME_OF_STATE_CHANGE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
+ALTER TABLE `EXPERIMENT_STATUS` CHANGE `TIME_OF_STATE_CHANGE` `TIME_OF_STATE_CHANGE` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6);
 ALTER TABLE `NOTIFICATION` CHANGE `NOTIFICATION_MESSAGE` `NOTIFICATION_MESSAGE` varchar(4096) NOT NULL;
 ALTER TABLE `JOB_STATUS` CHANGE `TIME_OF_STATE_CHANGE` `TIME_OF_STATE_CHANGE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
 ALTER TABLE `USERS` ADD UNIQUE KEY `AIRAVATA_INTERNAL_USER_ID` (`AIRAVATA_INTERNAL_USER_ID`);
\ No newline at end of file


[4/7] airavata git commit: Merge branch 'AIRAVATA-2376' into develop

Posted by ma...@apache.org.
Merge branch 'AIRAVATA-2376' into develop


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/93fa1f71
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/93fa1f71
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/93fa1f71

Branch: refs/heads/develop
Commit: 93fa1f71da9a2438768c7db7f75a934a52577274
Parents: 1279779 047521f
Author: Marcus Christie <ma...@apache.org>
Authored: Thu Jun 15 12:19:42 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 15 12:19:42 2017 -0400

----------------------------------------------------------------------
 .../ansible/roles/api-orch/defaults/main.yml    |   2 ++
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 dev-tools/ansible/roles/api-orch/tasks/main.yml |  10 +++---
 .../templates/airavata-server.properties.j2     |  34 +++++++++----------
 dev-tools/ansible/roles/gfac/defaults/main.yml  |   1 +
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 dev-tools/ansible/roles/gfac/tasks/main.yml     |  11 +++---
 .../templates/airavata-server.properties.j2     |  34 +++++++++----------
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 .../main/resources/airavata-server.properties   |  34 +++++++++----------
 .../src/main/resources/expcatalog-mysql.sql     |   2 +-
 .../DeltaScripts/expCatalog_schema_delta.sql    |   2 +-
 12 files changed, 66 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/93fa1f71/dev-tools/ansible/roles/api-orch/defaults/main.yml
----------------------------------------------------------------------
diff --cc dev-tools/ansible/roles/api-orch/defaults/main.yml
index f14ab0e,7cb73fc..37235dc
--- a/dev-tools/ansible/roles/api-orch/defaults/main.yml
+++ b/dev-tools/ansible/roles/api-orch/defaults/main.yml
@@@ -19,9 -19,5 +19,11 @@@
  #
  
  api_orch_server_names: "api-orch"
 -api_orch_log_dir: "../logs"
 +api_orch_log_dir: "{{ api_orch_dir }}/{{ airavata_dist }}/logs"
 +
 +remote_idp_service_url: "https://iam.scigap.org/auth"
 +
 +profile_service_host: "localhost"
 +profile_service_port: 8962
++
+ mariadb_connector_jar_url: "https://downloads.mariadb.com/Connectors/java/connector-java-2.0.2/mariadb-java-client-2.0.2.jar"

http://git-wip-us.apache.org/repos/asf/airavata/blob/93fa1f71/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/airavata/blob/93fa1f71/dev-tools/ansible/roles/gfac/defaults/main.yml
----------------------------------------------------------------------
diff --cc dev-tools/ansible/roles/gfac/defaults/main.yml
index 3ce8289,fff346c..022cfcd
--- a/dev-tools/ansible/roles/gfac/defaults/main.yml
+++ b/dev-tools/ansible/roles/gfac/defaults/main.yml
@@@ -18,4 -18,5 +18,5 @@@
  # under the License.
  #
  
 -gfac_log_dir: "../logs"
 +gfac_log_dir: "{{ gfac_dir }}/{{ airavata_dist }}/logs"
+ mariadb_connector_jar_url: "https://downloads.mariadb.com/Connectors/java/connector-java-2.0.2/mariadb-java-client-2.0.2.jar"

http://git-wip-us.apache.org/repos/asf/airavata/blob/93fa1f71/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/airavata/blob/93fa1f71/modules/configuration/server/src/main/resources/airavata-server.properties
----------------------------------------------------------------------


[5/7] airavata git commit: AIRAVATA-2376 Switch to MariaDB for Profile Service

Posted by ma...@apache.org.
AIRAVATA-2376 Switch to MariaDB for Profile Service


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/2b7a9a34
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/2b7a9a34
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/2b7a9a34

Branch: refs/heads/develop
Commit: 2b7a9a344e9c29173a532e6e8cfb9afcb65d27ef
Parents: 93fa1f7
Author: Marcus Christie <ma...@apache.org>
Authored: Wed Jun 14 11:48:27 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 15 12:19:55 2017 -0400

----------------------------------------------------------------------
 .../roles/api-orch/templates/airavata-server.properties.j2     | 6 +++---
 .../server/src/main/resources/airavata-server.properties       | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/2b7a9a34/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2 b/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
index 63d79d1..d09d814 100644
--- a/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
+++ b/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
@@ -316,11 +316,11 @@ enable.kafka.logging=false
 profile.service.server.host={{ profile_service_host }}
 profile.service.server.port={{ profile_service_port }}
 profile_service=org.apache.airavata.service.profile.server.ProfileServiceServer
-# mysql properties
-profile.service.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ profile_service }}
+# MariaDB properties
+profile.service.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ profile_service }}
 profile.service.jdbc.user={{ db_user }}
 profile.service.jdbc.password={{ db_password }}
-profile.service.jdbc.driver=com.mysql.jdbc.Driver
+profile.service.jdbc.driver=org.mariadb.jdbc.Driver
 profile.service.validationQuery=SELECT 1
 
 ###########################################################################

http://git-wip-us.apache.org/repos/asf/airavata/blob/2b7a9a34/modules/configuration/server/src/main/resources/airavata-server.properties
----------------------------------------------------------------------
diff --git a/modules/configuration/server/src/main/resources/airavata-server.properties b/modules/configuration/server/src/main/resources/airavata-server.properties
index 78d5bed..15fcfe2 100644
--- a/modules/configuration/server/src/main/resources/airavata-server.properties
+++ b/modules/configuration/server/src/main/resources/airavata-server.properties
@@ -336,9 +336,9 @@ profile_service=org.apache.airavata.service.profile.server.ProfileServiceServer
 # derby properties
 profile.service.jdbc.url=jdbc:derby:profile_service;create=true;user=airavata;password=airavata
 profile.service.jdbc.driver=org.apache.derby.jdbc.ClientDriver
-# mysql properties
-#profile.service.jdbc.url=jdbc:mysql://localhost:3306/profile_service
-#profile.service.jdbc.driver=com.mysql.jdbc.Driver
+# MariaDB properties
+#profile.service.jdbc.url=jdbc:mariadb://localhost:3306/profile_service
+#profile.service.jdbc.driver=org.mariadb.jdbc.Driver
 profile.service.jdbc.user=airavata
 profile.service.jdbc.password=airavata
 # add validationquery only if db has been initialized during server startup,


[3/7] airavata git commit: Dev SciGaP deploy (WIP); updates to Keycloak role

Posted by ma...@apache.org.
Dev SciGaP deploy (WIP); updates to Keycloak role


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/12797790
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/12797790
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/12797790

Branch: refs/heads/develop
Commit: 1279779099fb0a158ef37c3df494f2a1c2abbff0
Parents: 251070b
Author: Marcus Christie <ma...@apache.org>
Authored: Wed Jun 14 10:39:30 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 15 12:18:14 2017 -0400

----------------------------------------------------------------------
 dev-tools/ansible/apiserver.yml                 |  34 +++++
 dev-tools/ansible/database.yml                  |  11 ++
 .../scigap/develop/files/airavata.jks           |  76 +++++++++++
 .../scigap/develop/files/airavata_sym.jks       |  30 +++++
 .../scigap/develop/files/client_truststore.jks  | 126 +++++++++++++++++
 .../scigap/develop/group_vars/all/vars.yml      | 135 +++++++++++++++++++
 .../scigap/develop/group_vars/all/vault.yml     |  29 ++++
 .../ansible/inventories/scigap/develop/hosts    |  23 ++++
 .../scigap/develop/pga_config/scigap/vars.yml   |  56 ++++++++
 .../scigap/develop/pga_config/scigap/vault.yml  |  18 +++
 .../scigap/develop/pga_config/seagrid/vars.yml  |  55 ++++++++
 .../scigap/develop/pga_config/seagrid/vault.yml |  18 +++
 .../develop/pga_config/testdrive/vars.yml       |  56 ++++++++
 .../develop/pga_config/testdrive/vault.yml      |  18 +++
 dev-tools/ansible/keycloak.yml                  |   9 ++
 dev-tools/ansible/pga-scigap-dev.yml            |  26 ++++
 dev-tools/ansible/roles/database/tasks/main.yml |   6 +
 .../ansible/roles/keycloak/defaults/main.yml    |   8 ++
 dev-tools/ansible/roles/keycloak/tasks/main.yml |  40 +++---
 dev-tools/ansible/roles/pga/tasks/main.yml      |   9 ++
 20 files changed, 760 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/apiserver.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/apiserver.yml b/dev-tools/ansible/apiserver.yml
new file mode 100644
index 0000000..222febf
--- /dev/null
+++ b/dev-tools/ansible/apiserver.yml
@@ -0,0 +1,34 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+- hosts: api-orch
+  tags: api-orch, airavata
+  roles:
+    - env_setup
+    - java
+    - role: common
+      become: yes
+      become_user: "{{user}}"
+    - role: api-orch
+      become: yes
+      become_user: "{{user}}"
+
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/database.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/database.yml b/dev-tools/ansible/database.yml
new file mode 100644
index 0000000..fc3dfef
--- /dev/null
+++ b/dev-tools/ansible/database.yml
@@ -0,0 +1,11 @@
+---
+
+- hosts: database
+  tags: mysql , airavata
+  roles:
+    - env_setup
+    - role: database
+      become: yes
+      become_user: "{{user}}"
+
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/files/airavata.jks
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/files/airavata.jks b/dev-tools/ansible/inventories/scigap/develop/files/airavata.jks
new file mode 100644
index 0000000..4124c40
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/files/airavata.jks
@@ -0,0 +1,76 @@
+$ANSIBLE_VAULT;1.1;AES256
+32656330396637356236343162313734356339656337633933323238656630646566366533646333
+3139613434336665386532326136353266373839376563630a313865376639663637643130386364
+65313436343330303437613639653833333530383130383266643963336334373366353062393762
+6534303635313039320a643139666331343435303037356139663235613437653235326666396132
+38376233343461656232353963306362383435323061623164623135613538376161656533306464
+64613637303666323439306466666266363764306133346132393931383631393964363864343037
+31353737323039303961643933316164653635326333633930343665616135646338386661316231
+31303462366239326664326139353433343232363061363464356236353938343338306562363864
+30616137343539656237303030343863613432646366383232396262373538663030666332303061
+38383630613535663332323830303130313039393430656666316361383335326164393138393062
+37663535326533333239613364656638313239663365353261633934656132633732333332366337
+35613733666466363662633363633530376133663436653462656538346134353965303561643031
+65376462663964323137356264303831383933303862393435313633333337303635336133613932
+35356439326431353932333839643433326430653638626231663733326464643338323639656334
+31363433656163643136396132633766343937313331363537353930643331346135643663373535
+65343164313065396634636330626130643165336365663166343035363238316630626433653032
+65323561366363366561396562346533653135623565666166373230303862376463316637313734
+39373166626633626266306538373138303131343665316165346530363061656130333739363865
+31326631316130306331353034306663643531646635373638356164613333353536356634346236
+30663034613936303861636561633761663335326534393236646633333261663136643831396637
+62326135646265306662336239326363613736323162633933326636303536633263323437373262
+63393438623834626337626438393332353838316336666136663364353431623530653633626561
+66646238323238643963653162323136636265396333313236626632353237393565363462633734
+33666533303132306563346538393433663161623832613065346136376532343131383830353438
+65306235336534313733393238646235616366383035303566616330633437393132363262316337
+38626135626537353664376133323466373939323638616630633538663533313061373763373535
+33343564623963613336396463333361383534333735353261353639373435393466346131356562
+33366262376533393161613932343938396136663532373231626362356663386263613332323539
+38613666356430653537326663303331613431353434663737323935326566656461653630306436
+66393337323938373030616563373639623665653332643335653861643034346239666337336132
+31663463343530313964303232633662383535313436626361313236653466353538313663636235
+31316261323134646639383865613434643762346562323337333662306162333936373863656135
+35666462653631366136623137613131333962363030646531396366633030666632376439373036
+35393932633333653535363266626665363662663237303766666332326161306666333061646231
+37626637653365343962653336326332353739333664393831653132636431656439633134383139
+64363035353236333835393932616263346334346162376261643931396137656338373437643736
+37643364616264306531616534396332303932636336656434376663393265636135346262346562
+36633833393265356530646633343866646635643932336430363634313237363637653965633438
+32323534383164376563323136666533373338333766343663326566613364636136303461393232
+65306635326663633836386166383564363832356166616439373833346561623436373635393533
+34393930393764393363363330646161346331376636666132656662626434353338343861373964
+66633561396338306339393665633565643366666130643235613732626637643133656465316264
+37306230323665343730363761643637336665313437366366346139643137313165623339663436
+61663863366134666163616438326639636132643331613265353831383134356133376131333538
+30663132306633646264333931656233613039353830363135396364383730663133313730323739
+38336537663830333466663033653361636332303534356630333730303731613539633635636230
+33326233663763653039303131656437326361306537396130353162373333616339363930363637
+38333963306235333837303361386332383762306130393338373034633334313835613565623865
+32333330616337656566346231393636363061326364633136626539313634396337636661313838
+34636464303863636639666231363965316336646461383234656161663035366330643039386266
+62343564353835386637626165663438353739386538326463303832633765323563383036386437
+32633065303532303631356236383862316563346237653562393033623035636431343138646237
+62386463353862643865333836613938653561316335366563323338643834616634383361346162
+61343436356638333965396238623639303631386363373432323032636139633962366262316438
+33313065653130366235613133303130306362623133386239323637626561643536653830663038
+36363463313838366461626639636139616462336335373438613230663536346332656436653235
+61316439343731646631663133393065313462643230643162313462343365656431363438613933
+65343032653038633330653734356439353537363236343163623138333836663862383035373537
+31626136363232666362613036366536323533386534366264636131656362373963643137333830
+34373039653939313863303736643761376332313161343232323863323832313631366138396661
+64323638383532333263316132303538376631396637656463366430343865633061363636373834
+33373163376239356433373230323561343830326434316661346433323233353933313632666533
+63626130393866653866656231386532373461346236653363653338396165663431383438386166
+63636230643439626337386638613662646636326435313937623334333933303431653335663333
+35313935613034353865383633643334333865386262353632353632383933636161343638303033
+66373037353435386263396664333335323932616137653839323133323032386265306562393561
+64643831353835366365623531626661626466366563666431396233396634353731613033376265
+65366231653562393233386231333435366438663932393962326464666161643666303932306132
+35383338333533343133636662316635343531303535383237653866353563623333333838383138
+33333439383661666637306531313865343164653633323962346430653762386230313035336664
+63336634633434346164313664613539613832643939633331643132363232396637376234353539
+32653136363135646431376131373632353363383239303536343865373632366337333261353935
+34323466396430363830303332376434343534623037613862323732336566623366333861373134
+64373535336133616537613362646164366237343433363838663731353961376538346534646337
+373637313538306332616430383839623432

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/files/airavata_sym.jks
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/files/airavata_sym.jks b/dev-tools/ansible/inventories/scigap/develop/files/airavata_sym.jks
new file mode 100644
index 0000000..13ccf1b
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/files/airavata_sym.jks
@@ -0,0 +1,30 @@
+$ANSIBLE_VAULT;1.1;AES256
+66393935613465373265366662383133353632633262353839623837636364373339336564636265
+3862663231313565313064643833646530636361333866610a636266666561306263343632663734
+33306432363830323132653038326139323464393065313631373936346162386161626461396530
+3061376439346264310a346630616535326435626235393564643062326665313239373839336331
+38316134613764373336333338323263356563396638303932656562336538333137643131373366
+35653334383566313262336261623339626532333634363531313534353762356534643961646338
+34633938333436333135643736663437373532633061366464343632643366343337366262386465
+33373333333033303262316566346565613731633361333438363063616165333231323635646333
+34303463656431663932326464356332353235336238653462663463373332656231373562626664
+65346131663064376232643435653264383465323761373063366162663236323935373139386138
+39623734643064623635376261646465383663613238623531613066306464326662346532346365
+63623064383436303634393639316638366136653563663930303130643531373166613133653338
+36636433626539366661656164613032653931356561336336343561323962336462383164393463
+65353265363535616136306136353064346561666439663532626234363763653535663061386232
+61663566343361666634346134623538366664396236346365336431383937653761643235613661
+32373439656332306536623336343763386364363265306138356138616464656662363434636531
+30646163333462636236336532383964643234616131663465666663633333343366376134666263
+63353161336366613065303434656537396237643938376233333431663232356630373038333835
+37306162623439323062626532656633646138386131643037323566643264653432633735333362
+65613564393232393433646334376639356564376661663430353630626534336566663061303632
+64633235333463626435323134636333353536393936663539663539336233363934333931323961
+63313739333733613465376334336239306633636136383831396533326530616133373366653531
+33356137656636323037303430623065393930633731346634346161633334313362613136313138
+36633835353665626462363031653161646530366339363732373865343136356637326631386437
+30383235306538303261613262376634303164313862366330393463346261363866346336666136
+37333566396436383534633330316465306461383537616661343265663731363561323137303164
+36336532333233343463633064346162646562613332646331343931363838333739636335376331
+66626436313938346362303932336339636434666665373862306462646162393066303338383265
+64363138663564386332383032366265666565643633393236663830313936343637

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/files/client_truststore.jks
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/files/client_truststore.jks b/dev-tools/ansible/inventories/scigap/develop/files/client_truststore.jks
new file mode 100644
index 0000000..7b0b340
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/files/client_truststore.jks
@@ -0,0 +1,126 @@
+$ANSIBLE_VAULT;1.1;AES256
+66313631383062343635306639666162386266333732613431303035376163666266393336313464
+3435386661323639643466623663613131343635373835320a643731636138623932616561663266
+30623931656566343630663538666336343939393136383738636531373362326138353065323639
+6539643335323139340a303433666531643662663662626534663738396563323963616265626662
+34386631316563653132343464643032663937303964633435396236306533336131393631626634
+31306330353963626130363231666266646532666439666336326262646466343039323461373738
+32623536383530376439313830376432343538323535363830623863363536666230323839373435
+33623838363561653232636630313164623461393739653730306464306231363262393264626431
+30393232346564396462643633373536303535393033643366613464376562633835353165383537
+65336132613139323166636333663636373231633631633862623836353364353562653036376464
+36303736663038613638383736663239643965666236356462643034666433353436343661663533
+62613162303363363463613534396531366531353439306161343762383231633339663138623664
+39306561633733353533376565336431393764353964633539663262393036386632393736666639
+62623265636132643038663038653436663536663535306336653564626535353831653832343531
+30626237663464366135656239663839306530643239626463386235653634613639376165663066
+62353864623162363635656537633837383930616266633638343365623835323666353365383864
+61366363326436303862323564393263626633653535346134636335306162393032373737646435
+38663834643030373632396134343033613432376662386239643930646636386462333665346635
+38353162643164313339376537383033626566383337653932333561663230316264613162643864
+65643638646265303834303862386339663937656332616239316562613735353763643366666464
+37386666356663393133373363636332346530643762336561363533376139373063386262353662
+62306331326131656264303533313638656563353639313764366165636262346161666465303938
+39383234393661336264656432396461366330313930323731623866623330383763336365393734
+30353031313662383963616232336431366631336635636433633235343636626531356138666232
+35613931643932636337343839626436393966323635323035303131303432663535386164343465
+65313739363933373666316134346139373132306439303432626532643536383136313233373939
+35613632303565326362313731313661396232326438363566373035323932376164326534346364
+33643638373838623437346265383833626264323039393132363335643236663830386663643838
+33373734303334346433656333353566386634633765343935613230373265366331636136663261
+64656135303363633034616437633834643930393561343861353932373136363734643162656232
+66306661333937313238373133613439656562313331366535613834353530653734353963343533
+33353239343131386530613165616435343631626434656437303534343335303338656130666266
+35333334323236646137316266633963613266326362343263383737653163303266383136376462
+64393733643438613831313562336535393663373133306564363364663538386662346332303831
+36383865323561373261313739633537623865623138383761326537303164336233633561613937
+30656663633232313233333636346330646136646635623263663734373538396530376466613037
+63356535643932643834653630393835343766353764356537363438383266303633656433353664
+36336662386433643761333231663066356230356138656338306136353133626662393332653864
+32386639306364343738663664326263306434356663356463383831393635303631356139363161
+35326664373531376638643739376233633139366234303165616365666331636438653930386330
+63303433623134386232336665653238383736316165336361396563323535363337363434643432
+37646536366332363938636464316162656364636634616165373333333033303634383365666632
+62623562646436633737613264323038663865376139633564636335326339306637333131663236
+63643661626164626234383064366561353039303439313634376237363634363932336336666131
+32643562633161376637393430646563623436323539636363636530626661393535323533666430
+62626533343233643634636330643433373632393230626339623264663365373530626663363666
+66343666393139656465333466393837373732616239613662303965363335643631616365623863
+30643931363239316637353463353930333862373533613931366439663633656137333136313362
+34313834363831636430633736643937343430386138323731306538303430653635636566613663
+66323465393535656531313630393031306463616236346530663564373231326663656265366662
+30306534393737633665613133633365326438393035313533376335393238633761316263666130
+66353635666161616266373465396664323464356538623631656639613130633033336464383937
+63303061323431333331623562356631356563396632636630346266356238653837336332363963
+66383662313238373737366564383963316661313933323363653664386363646261663932663632
+34333738633964353732373439326631353739376336303235663761353839393266386562356665
+31366661396462353563646566623336623736383535623233663464376161636334626438636135
+38373163373433303166366234613936326634363735633265636637366263616265666231343837
+65316463623039343732343966353130633666333061636361336633656263316265626339636235
+63633938643930323731646530386432613833383564356561386433383366303637373135316135
+37303334356437326635313062326630663432373239623564336662303433363533383439363266
+34383663323638373730376635303838373133343139323063333761396466316332396539323238
+35363565643562393163383939346536643532306563613632633363616636353934373935393065
+37343166396431616164386530373862313064326639303934373664393862386131303962396463
+37353734303239636662613935343734656532386636316464346432633032383330313162306365
+33663338643565623237616532666235653034626163326134333432343965633732626135306338
+66353636613539646565386330346464356236656238363433353565653931666638663838356634
+30306161643463386337303331393939323234353734613632393237396434636332356438373361
+36643536353161313266383130346634643863343233386362636563353265666635303935623232
+61616331303531313530636431386431316139643064623265303763363433326333333631343763
+65643933306265383531646633646632313138366130666564666633336435313132396266303433
+30323762366138346563663533656261663861313266666465396264663334306633626565626438
+39383031386438313366613337643530353564396632326435666463646133653436626264646639
+39313032306631326562636533653637373332383032373162663062386332373230386637636531
+38633336333764303864363731333632663064316236663439303531373135313165313439633364
+62336561326339333530613062306336633635633061383466376230663331623835393564306537
+62646366356633346362383532623831316439323834633631616433663562333339616263343934
+38373032396631333065383162326634643362393866343066306636333964386230336666393763
+66326265376531346139326439373663303030633933306232653835346463313831613038346530
+38376434653365333261303934633762373164643165326365393536336634333835396536666638
+32343530653934313932633033663134333961646162343935313831343766346232393431393632
+65393235653630323239653263336163343865333037353135623939323239663436303834376661
+63623932646638616138353432306432343733373961373731663437383164623036623538383832
+66636435366336656232353535333663666465633339353433363061323461376235623264663939
+34316334663932343835326666356163336461663233323637623034356263613330333166666561
+32323764326162616338363135393864653163366636323137353466656661353030383233356638
+35636364316437646366373430373264343562353339353239393761353336326538346164643265
+66633435323933343137313238646539346231396338336333666135336337633736613966323035
+63353731363037393235303339363533633535663535363332663738616335313866386462363431
+64363132396365613438626537386161373537623134616265303230353231336333616462646539
+62323362623261313037316431633833633863336432363936653132306333643931633532613061
+64363061646561656464636436333033373332366639623131383537656166373135643236346665
+30646262313264653132353363386566383562663930353965316338386537366530646633363738
+35393564643437333766643931366631663132643138393639643533303631373637663364373438
+38343534373464653035636232623937366637633736393765623661353930383262376531623732
+38623134393237613339333564323737623365643937636335316533653434363861333531323265
+65636130373561343663663737616332383662313339373934323736343639653734303832636466
+62333130393561666164383261393538633565636263376264313135303036663430343733646665
+39323539313863373033313265626462316232353762306239396634333365353265656438343539
+64646435376135623135633138633434663031646536326666343535623334646639626263383066
+66393163636637623639316162623930653339336336623133656330333763393364613438393863
+64623065626562663137343036633239383663313639313133306132363361376534333565356339
+38646139623532653532656165363766343139366137333233633635633037373235396138336266
+33633838383034643231656363373861313564626661333932313931336638666638386531396334
+37393233636339636538323633646234393863396666303364643864366232353737633162636661
+33633466653463383064636336333433663537363664326630636234376531636437336535643732
+63373862393632633530396632386162383066626237376465333131646536653330353364336462
+31386634326236333537323330343531333437393736353237326637363065643664346531666566
+64396230666164363433663236373139393731626639396464313638316538313466393137366361
+36623266343035353734366164363339626137393333316666393939656265363161646331633366
+66313164346435303064383262616135613365316262323866343037306561666362633966383232
+31346639626165316235613566373338633963663864303163323063646438666233343930633734
+64373863316439343835646565343161343532316532376636613062343330323833393561313262
+33313662323635643934393033303462353031663631633136343936666165303636326661613632
+35363235313338373936303435623430346362613366626665623738316239623963356366363862
+33303035343966666636623139333034393066356637653630323962656336326464343531356131
+35316438306265346466626461613266383537663961343331353432623736663064376530636163
+65346266373137646535373635626532333730383361353663336562653237313763626165356462
+38633235363233633761346664393539393361616664623635393634663134376239653232303562
+65353566313462643166353439386665633062363530613434306566386231616564326132643831
+36613436623162336461353036313864353163333336643530653936663962396239613637363364
+37353563656538313463626334636461333764326663616239643564373733616238343938383839
+63363137623463373432326438396330363932613338366531376462643030623638333333656332
+66346639613062343537353639616436643462376662643633653831336463613835343434383934
+33353466396237653434393936313436383537316230343231363364663739313933643233313261
+63343430303134343035613130323237393961333937303662653931363265616266

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
new file mode 100644
index 0000000..a8a2737
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
@@ -0,0 +1,135 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+ansible_connection: ssh
+ansible_user: centos
+
+user: airavata
+group: airavata
+user_home: "/home/{{ user }}"
+
+# deployment related variables
+deployment_dir: "{{ user_home }}/develop-deployment"
+airavata_source_dir: "{{ user_home }}/develop-source"
+airavata_repo: "https://git-wip-us.apache.org/repos/asf/airavata.git"
+airavata_dist: "apache-airavata-server-0.17-SNAPSHOT"
+airavata_dist_name: "{{ airavata_dist }}-bin.tar.gz"
+old_airavata_dist: "apache-airavata-server-0.17-SNAPSHOT"
+git_branch: develop
+
+# Database related variables
+db_server: "{{ groups['database'][0] }}"
+db_server_port: "3306"
+db_user: "airavata"
+db_password: "{{ vault_db_password }}"
+mysql_root_password: "{{ vault_mysql_root_password }}"
+app_catalog: "app_catalog"
+exp_catalog: "experiment_catalog"
+replica_catalog: "replica_catalog"
+sharing_catalog: "sharing_catalog"
+workflow_catalog: "workflow_catalog"
+credential_store: "credential_store"
+profile_service: "profile_service"
+
+mysql_connector_jar: "mysql-connector-java-5.1.37-bin.jar"
+
+# Rabbitmq related vareables
+rabbitmq_server: "{{ groups['rabbitmq'][0] }}"
+rabbitmq_vhost: "develop"
+rabbitmq_user: "airavata"
+rabbitmq_password: "{{ vault_rabbitmq_password }}"
+rabbitmq_port: "5672"
+rabbitmq_broker_url: "amqp://{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ rabbitmq_server}}:{{ rabbitmq_port }}/{{ rabbitmq_vhost }}"
+
+# Zoookeeper related variables
+zookeeper_client_port: 2181
+zookeeper_url: "{{ groups['zookeeper'][0] }}:{{ zookeeper_client_port }}"
+
+# API Server related variables
+api_server_name: "apiserver-node0"
+api_server_host: "{{ groups['api-orch'][0] }}"
+api_server_port: "8930"
+api_secured: "true"
+tls_enable: "true"
+api_server_tls_port: "9930"
+enable_sharing: "true"
+remote_idp_service_url: "https://iamdev.scigap.org/auth"
+
+# Orchestrator  related variables
+orchestrator_name: "orchestrator-node0"
+orchestrator_host: "{{ groups['api-orch'][0] }}"
+orchestrator_port: "8940"
+api_orch_dir: "{{ deployment_dir }}/api-orchestrator"
+api_orch_log_dir: "{{ api_orch_dir }}/logs"
+
+# registry related variables
+registry_name: regserver-node0
+registry_host: "{{ groups['api-orch'][0] }}"
+registry_port: 8970
+#registry_dir: "{{ deployment_dir }}/registry"
+default_gateway: "default"
+
+# Credential and keystore related variables
+keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
+keystore_passwd: "{{ vault_keystore_passwd }}"
+client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+client_truststore_passwd: "{{ vault_client_truststore_passwd }}"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_passwd: "{{ vault_cred_keystore_passwd }}"
+cred_keystore_alias: "airavata"
+cred_store_server_host: "{{ groups['api-orch'][0] }}"
+cred_store_port: "8960"
+keystores_location: "{{ deployment_dir }}/keystores"
+
+# Gfac related variables
+gfac_name: "gfac-node0"
+gfac_host: "{{ groups['gfac'][0] }}"
+gfac_port: "8950"
+gfac_dir: "{{ deployment_dir }}/gfac-instance"
+gfac_log_dir: "{{ gfac_dir }}/logs"
+
+# Monitoring variables
+monitor_email_address: "gw56jobs@scigap.org"
+monitor_email_password: "{{ vault_monitor_email_password }}"
+
+# PGA variables
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"
+user_data_dir: "/var/www/portals/gateway-user-data"
+real_user_data_dir: "/data/gateway-user-data"
+## Airavata Client related variables
+airavata_server: "tls://{{ groups['api-orch'][0] }}"
+airavata_port: "9930"
+auth_verify_peer: "true"
+
+# Sharing Registry related variables
+sharing_registry_host: "{{ groups['api-orch'][0] }}"
+sharing_registry_port: 7878
+
+# Profile Service related variables
+profile_service_host: "{{ ansible_fqdn }}"
+profile_service_port: 8962
+
+# Keycloak
+keycloak_ssl_keystore_file_name: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
+keycloak_db_host: "{{ groups['database'][0] }}"
+keycloak_db_username: "keycloak"
+keycloak_db_password: "{{ vault_keycloak_db_password }}"

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
new file mode 100644
index 0000000..8e7a4f3
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
@@ -0,0 +1,29 @@
+$ANSIBLE_VAULT;1.1;AES256
+32313735333539653633636436666662373537386237346632373635303063666535656535616435
+3161666366613764323163353064343339303661393266610a356238303466633032386366356662
+30303865613437643132613532643932636634646537626264386365356330366237353964316230
+6564376130373863340a616161393533626232663437313336313166623463303066313937326266
+35333036653864396430346634633536313464343966646562363636336234383631306261346263
+63353135623836383661393536633931623362306161363934623235366165376663313161333562
+32646565333430653166303662623364626334373163313533663932363561386532323034393030
+31343832393664366336653266363263393736333935343963333763386238663439646436336330
+33636239356633333266386136623531663433646539313834663365326634336661363961623438
+65313437363362383732323139326239643132303033326331623836633536656264383635316430
+66326332343236386137616536363433303636303433353930353061643733303032353435323265
+32633731616332393465616432663336373034346462313837643061616264376461353061326233
+30663361306165613363366162613735373333353437343163616632376363643936623333646531
+33323038346537353764323664636634633331303335626236323533363530386666643431343535
+65643331323336306166643039373532653935346264643236346464383663313136643364326532
+39383032356136306463363764366134663334393436373634393366353662363664373735623430
+36333132316165366531376133386466613262373162343832343035623738386465313836626163
+38356437643964323266643531306139663937313262376663303262366265663564313363353463
+34616261613832633630313735303836623934623736623763383233653538666334373135383564
+38373937316638333530343764616334666333626466386366623164306162306662633333363235
+35653939636366313737303239313237393136363265383161393239656236626537366237626161
+33616234323766616464626233613034623266383138336164666361306430393333306431383232
+61343262643434653362646235386431656432343037313630363331633366613937313364323061
+61616165626339343931363266666430343331346433333635633738356538393733656262393739
+64343161626661656564303135306165613135333661363266323934366661376230343566623332
+62643161613437366564373261623132383632316637626361356530336530376632306162386636
+39336563656437383764303939333766366664313834303835313230313636383236626131363462
+38643561373363653131

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/hosts
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/hosts b/dev-tools/ansible/inventories/scigap/develop/hosts
new file mode 100644
index 0000000..fd3a537
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/hosts
@@ -0,0 +1,23 @@
+---
+# inventory file : scigap production deployment
+
+[zookeeper]
+149.165.156.195
+
+[rabbitmq]
+149.165.156.195
+
+[database]
+149.165.156.27
+
+[api-orch]
+149.165.156.195
+
+[gfac]
+149.165.157.37
+
+[pga]
+149.165.156.46
+
+[keycloak]
+149.165.156.151

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vars.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vars.yml
new file mode 100644
index 0000000..8cb7375
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vars.yml
@@ -0,0 +1,56 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"
+git_branch: "master"
+user: "pga"
+group: "pga"
+doc_root_dir: "/var/www/portals/scigap"
+vhost_servername: "scigap.org"
+vhost_ssl: True
+# TODO: have Ansible manage these files as well
+ssl_certificate_file: "/etc/pki/tls/certs/scigap_org_cert.cer"
+ssl_certificate_chain_file: "/etc/pki/tls/certs/scigap_org_interm.cer"
+ssl_certificate_key_file: "/etc/pki/tls/private/scigap.key"
+
+## WSO2 IS related variables
+tenant_domain: ""
+admin_username: "scigap_admin"
+admin_password: "{{ vault_admin_password }}"
+oauth_client_key: "{{ vault_oauth_client_key }}"
+oauth_client_secret: "{{ vault_oauth_client_secret }}"
+user_role_name: "airavata-user"
+
+gateway_id: "scigap"
+# relative to document root dir
+experiment_data_dir: "{{ user_data_dir }}/scigap"
+# TODO: this is only for testing, we'll need to update this again during the real migration
+gateway_data_store_resource_id: "gf4.ucs.indiana.edu_61552681-96f0-462a-a36c-a62a010bffc6"
+
+## Portal related variables
+super_admin_portal: "true"
+admin_emails: "['sgg@iu.edu','eroma.abeysinghe@gmail.com','supun.nakandala@gmail.com']"
+portal_email_username: "pga.airavata@gmail.com"
+portal_email_password: "{{ vault_portal_email_password }}"
+portal_theme: "scigap"
+portal_theme_repo: "https://github.com/SciGaP/scigap-portal-theme"
+portal_title: "SciGaP Admin Portal"
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vault.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vault.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vault.yml
new file mode 100644
index 0000000..a30ba69
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/scigap/vault.yml
@@ -0,0 +1,18 @@
+$ANSIBLE_VAULT;1.1;AES256
+64653833663230383465353266623839636163316364356431373837653638306130616130383963
+3132323230336531646162616464633061623830653462640a663263373436653831643063616638
+31383336306438613732613839396336626566313737316363636430393136633632613130326237
+6539306131633433660a633734643961633161323161643433613938626166343961663337376266
+63323163343633666330313666306234373663303738303033343662366139636534646162663230
+66343034666431326666626261303061343334643461343633663436616430323339613732306437
+31633431613463666139646638643037336435346564383631653664633135333734356434373461
+35373963313361393331656463386234383962663039636164626239393465333137333839616439
+38356531643032363839363862376263336565396464623332336533333837333937623635636366
+61313532633161336631363561353139376637623562346438623865343332643232653036303536
+62333865396439633435333533623338323664326231623136383761316336653334653464336363
+31313261366162386533646365386230646338646466623730306166366235623466323066656239
+66306166363630633733303261616335383839323163313239393330363730663262616133613737
+30363537623061333030363162316138353361326430636534313034613032653433326130393134
+37636364633533363263363833626237613639313638383536643637303435663831613735343261
+36363937356332313237343563356134366162633338616263613338393736646561303135383362
+35616562353739343661306330376334376361396266646230373065326364336662

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vars.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vars.yml
new file mode 100644
index 0000000..122d6e0
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vars.yml
@@ -0,0 +1,55 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"
+git_branch: "develop"
+user: "pga"
+group: "pga"
+doc_root_dir: "/var/www/portals/{{ gateway_id }}"
+vhost_servername: "dev.seagrid.org"
+vhost_ssl: True
+# TODO: have Ansible manage these files as well
+ssl_certificate_file: "/etc/pki/tls/certs/seagrid_org_cert.cer"
+ssl_certificate_chain_file: "/etc/pki/tls/certs/seagrid_org_interm.cer"
+ssl_certificate_key_file: "/etc/pki/tls/private/portal.seagrid.key"
+
+## Keycloak related variables
+tenant_domain: "seagrid"
+admin_username: "admin"
+admin_password: "{{ vault_admin_password }}"
+oauth_client_key: "{{ vault_oauth_client_key }}"
+oauth_client_secret: "{{ vault_oauth_client_secret }}"
+
+gateway_id: "seagrid"
+# relative to document root dir
+experiment_data_dir: "{{ user_data_dir }}/seagrid"
+gateway_data_store_resource_id: "gf4.ucs.indiana.edu_61552681-96f0-462a-a36c-a62a010bffc6"
+gateway_data_store_ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCApfdud3cJ7rx44M41gEKVgRfefk/Vd/7dIp9Xr9juX4jqmGuLoZR+hk287Hmbps6hZv23Av97XkCLldH0pueDekthcBDo4cRiQMDBp9NLz/9muqYVBl985psEbazYygagy/q/3ebi4CVEYVd4cHBee1V3GYyuJS2RklF0s/Otyf8x8auJSMniHGbTbVqtFlEOYuPdXlRBfH37k55N7+2iXKsIVvgn1MDweHEbQWJMx2LDCkLfJitreTiwcuST55w6N/n8WYZM2t+ie3BJEr6tcGAVIuyxj7CbMYMziM/hM5J+oQGPY/IBtiNZoxiZ0DeAC9SiEvE9fbTEW2iRWnQL"
+
+## Portal related variables
+super_admin_portal: "false"
+admin_emails: "['pamidigs@iu.edu', 'sgg@iu.edu']"
+portal_email_username: "pga.airavata@gmail.com"
+portal_email_password: "{{ vault_portal_email_password }}"
+portal_theme: "seagrid"
+portal_theme_repo: "https://github.com/SciGaP/seagrid-website-theme.git"
+portal_title: "SEAGrid Portal"
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vault.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vault.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vault.yml
new file mode 100644
index 0000000..b253227
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/seagrid/vault.yml
@@ -0,0 +1,18 @@
+$ANSIBLE_VAULT;1.1;AES256
+66333335376433663761356636313739303836383431366135633735663262366262663737613936
+6238613036636365653530353538373031623562373335300a316462306231653531613330303030
+61383138343832616162353239303331663164326635336566663666316232366562616633316139
+6365666632373662340a666238353135396239373062383331386137353134336539386636623237
+37326237326233303437386666646138666530663766376238366263653730353938363064663336
+62336662643831653833633835653666363134303830633834336162383265666131303434346466
+32323937663766323632396631616264326232613361333834303031636239333435343563396366
+35643766376466613535383938623038653634303035323065363031303032303835343866643330
+37303462333839313265353063613937623431336635623839386137353433396136623162333233
+62633536616437376366663566393430626533323232383733353761643738376366316631353562
+35366133373866393737653665326566353963643138633630393838643363633562623430373132
+62383531356430646633323933633130623935653139363566326232653965333764363238333137
+30663863363566353035393437316135303265643165353034326664656336623930613632376237
+62393231336539656636636530643863323834363130636238323732373738316265306665643962
+62333437313064623566386438636136613461373332343462613733623736666338333064346661
+62643035636435663135613437383036663034363536646634633966666633643033303634633639
+63396139343037353433613936333962366130333336333231353836353161636365

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vars.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vars.yml
new file mode 100644
index 0000000..0e07e38
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vars.yml
@@ -0,0 +1,56 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"
+git_branch: "master"
+user: "pga"
+group: "pga"
+doc_root_dir: "/var/www/portals/testdrive"
+vhost_servername: "testdrive.airavata.org"
+vhost_serveralias: "www.testdrive.airavata.org"
+vhost_ssl: True
+# TODO: have Ansible manage these files as well
+ssl_certificate_file: "/etc/pki/tls/certs/testdrive_airavata_org_cert.cer"
+ssl_certificate_chain_file: "/etc/pki/tls/certs/testdrive_airavata_org_interm.cer"
+ssl_certificate_key_file: "/etc/pki/tls/private/testdrive-airavata.key"
+
+## WSO2 IS related variables
+tenant_domain: "prod.testdrive"
+admin_username: "tdaadmin"
+admin_password: "{{ vault_admin_password }}"
+oauth_client_key: "{{ vault_oauth_client_key }}"
+oauth_client_secret: "{{ vault_oauth_client_secret }}"
+
+gateway_id: "default"
+# relative to document root dir
+experiment_data_dir: "{{ user_data_dir }}/testdrive"
+gateway_data_store_resource_id: "gf4.ucs.indiana.edu_61552681-96f0-462a-a36c-a62a010bffc6"
+gateway_data_store_ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCUF51b2cYYqqadLHL9M/oPY0ZHZlWbdOdaIgjpzIzMnO7M9hKrHVY2pqyLPvqCLzaunxITPWsTqw0E8hwub4ttGLAx/O4kIf+BgyZK7iuwXWhI7u85/o58IfrD4B+jVCYKRNayuLR+lJWsiOeS6HSlunpTKTEhFGeOHn2UzdbLfgWYQ3VUFDtKN1oDPDT78ml5c2RCibJ21jltpevVfEtCUctERpTfniWSuQZggP1qiLNa1+PfiJ3mGsEzJFDntQvQetdinaAbEaT7+sctS8nBNjapkmYMf6tBl3S0bLttYPH51f8lUQAFaAzrestO1JpJNnIeY01/S3MWIlAWASnn"
+
+## Portal related variables
+super_admin_portal: "false"
+admin_emails: "['sgg@iu.edu','eroma.abeysinghe@gmail.com','supun.nakandala@gmail.com']"
+portal_email_username: "pga.airavata@gmail.com"
+portal_email_password: "{{ vault_portal_email_password }}"
+#portal_theme: "base"
+#portal_theme_repo: ""
+portal_title: "Airavata Test Drive"
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vault.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vault.yml b/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vault.yml
new file mode 100644
index 0000000..2719a75
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/pga_config/testdrive/vault.yml
@@ -0,0 +1,18 @@
+$ANSIBLE_VAULT;1.1;AES256
+62343936613436343730626461303331313361373265653231623265646366343037303261643162
+3730386162363861626462626432373932363365323233610a643637633565333538633462383530
+61333833323534356430343461363531663035386637623836366361653430323861333639653762
+6239626461646433380a376139303561346661316131376366623538643433326335363032653966
+63393732653961666637343966623839386564643339653665623433613132363832363061356665
+63346637373235623332613561303162356363323937303630623036386636393465346662336365
+63386238306534613136643466323564626336386165616137653133316532613465626365393961
+34373466613439346534366263633261643936323334316636376538613233663333646636383838
+66333437316165656262386337326131396432616137326631643532613438366633396337633065
+62363833616239626666613062623730326633616532336662653234393863373962396564353662
+66366461343066366161366633666562613031613036363237636333343734393730383332363534
+62306435633163303864636639613465633936636462333636633361613431396265626333373761
+32346234383639363163326435356330633062383162353666303931376133393431356336663665
+34303265386334623332303336633662323563643661623566353734303362326661643062613637
+31666239313065316633613162646631636534356233323533663666613537303263646261643363
+32303539633332386566623435353732396532396537643736356334383565316433633261333630
+36336263323934643764323263393362373531643165373435326539623266383936

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/keycloak.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/keycloak.yml b/dev-tools/ansible/keycloak.yml
new file mode 100644
index 0000000..9768799
--- /dev/null
+++ b/dev-tools/ansible/keycloak.yml
@@ -0,0 +1,9 @@
+---
+- hosts: keycloak
+  tags: keycloak
+  roles:
+    - env_setup
+    - java
+    - keycloak
+
+...
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/pga-scigap-dev.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/pga-scigap-dev.yml b/dev-tools/ansible/pga-scigap-dev.yml
new file mode 100644
index 0000000..04e2ef0
--- /dev/null
+++ b/dev-tools/ansible/pga-scigap-dev.yml
@@ -0,0 +1,26 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+#- include: pga-single-vhost.yml vars_dir="{{ inventory_dir }}/pga_config/scigap"
+- include: pga-single-vhost.yml vars_dir="{{ inventory_dir }}/pga_config/seagrid"
+#- include: pga-single-vhost.yml vars_dir="{{ inventory_dir }}/pga_config/testdrive"
+
+...

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/roles/database/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/database/tasks/main.yml b/dev-tools/ansible/roles/database/tasks/main.yml
index eddd60b..423ed99 100644
--- a/dev-tools/ansible/roles/database/tasks/main.yml
+++ b/dev-tools/ansible/roles/database/tasks/main.yml
@@ -124,6 +124,12 @@
     - "{{ groups['gfac'] }}"
     - "localhost"
 
+- name: give access to {{ keycloak_db_username }} from remote
+  mysql_user: name="{{ keycloak_db_username }}" password="{{ keycloak_db_password }}" host="{{ item }}"
+  with_items:
+    - "{{ groups['keycloak'] }}"
+  when: "'keycloak' in groups"
+
 - name: create new user {{ db_user }} with all privilege
   mysql_user: name="{{ db_user }}"
               password="{{ db_password }}"

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/roles/keycloak/defaults/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/defaults/main.yml b/dev-tools/ansible/roles/keycloak/defaults/main.yml
index 4db4284..fecab13 100644
--- a/dev-tools/ansible/roles/keycloak/defaults/main.yml
+++ b/dev-tools/ansible/roles/keycloak/defaults/main.yml
@@ -9,4 +9,12 @@ mysql_db_connector_download_url: "https://dev.mysql.com/get/Downloads/Connector-
 keycloak_master_account_username: "username"
 keycloak_master_account_password: "password"
 keycloak_server_port: "443"
+
+keycloak_db_host: "localhost"
+keycloak_db_port: "3306"
+keycloak_db_schema_name: "keycloak"
+keycloak_db_url: "jdbc:mysql://{{keycloak_db_host}}:{{keycloak_db_port}}/{{keycloak_db_schema_name}}"
+keycloak_db_username: "username"
+keycloak_db_password: "password"
+keycloak_db_pool_size: "20"
 ...
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/roles/keycloak/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/tasks/main.yml b/dev-tools/ansible/roles/keycloak/tasks/main.yml
index 3fe6e1b..176e933 100644
--- a/dev-tools/ansible/roles/keycloak/tasks/main.yml
+++ b/dev-tools/ansible/roles/keycloak/tasks/main.yml
@@ -7,6 +7,8 @@
               owner="{{ user }}"
               group="{{ group }}"
               creates="{{user_home}}/{{ keycloak_install_dir }}/bin/standalone.sh"
+  become: true
+  become_user: "{{ user }}"
   tags:
        - always
 
@@ -17,6 +19,8 @@
     path: "{{user_home}}/{{ keycloak_install_dir }}/modules/system/layers/keycloak/org/mysql/main"
     state: directory
     mode: 0755
+  become: true
+  become_user: "{{ user }}"
   tags:
        - always
 
@@ -27,11 +31,15 @@
       owner="{{ user }}"
       group="{{ group }}"
       creates="{{user_home}}/{keycloak_db_connector_name}}/{{keycloak_db_connector_name}}-bin.jar"
+  become: true
+  become_user: "{{ user }}"
   tags:
        - always
 
 - name: move jdbc connector to keycloak module
   command: mv {{user_home}}/{{keycloak_db_connector_name}}/{{keycloak_db_connector_name}}-bin.jar {{user_home}}/{{ keycloak_install_dir }}/modules/system/layers/keycloak/org/mysql/main/
+  become: true
+  become_user: "{{ user }}"
   tags:
        - always
 
@@ -42,6 +50,8 @@
     owner="{{ user }}"
     group="{{ group }}"
     mode="u=rw,g=r,o=r"
+  become: true
+  become_user: "{{ user }}"
   tags:
        - always
 
@@ -57,6 +67,8 @@
     owner="{{ user }}"
     group="{{ group }}"
     mode="u=rw,g=r,o=r"
+  become: true
+  become_user: "{{ user }}"
   tags:
        - hacluster
 
@@ -68,6 +80,8 @@
     owner="{{ user }}"
     group="{{ group }}"
     mode="u=rw,g=r,o=r"
+  become: true
+  become_user: "{{ user }}"
   tags:
        - standalone
 
@@ -80,6 +94,8 @@
     owner: "{{ user }}"
     group: "{{ group }}"
     mode: 0644
+  become: true
+  become_user: "{{ user }}"
   tags:
         - standalone
 # </------------------------------ Server Configuration ends ---------------------------->
@@ -132,29 +148,7 @@
        - always
 
 
-# <--------------------------install firewall & open keycloak Identity server firewall port------------------------------>
-- name: Install Firewalld (RedHat)
-  yum: name=firewalld state=latest update_cache=yes
-  become: yes
-  become_user: root
-  when: ansible_os_family == "RedHat"
-  tags:
-         - always
-
-- name: Install Firewalld (Debian)
-  apt: name=firewalld state=latest update_cache=yes
-  become: yes
-  become_user: root
-  when: ansible_os_family == "Debian"
-  tags:
-         - always
-
-- name: Start firewalld service
-  service: name=firewalld state=started
-  become: yes
-  tags:
-         - always
-
+# <--------------------------open keycloak Identity server firewall port------------------------------>
 - name: open firewall port {{ keycloak_server_port }}
   firewalld: port="{{ keycloak_server_port }}/tcp"
              zone=public permanent=true state=enabled immediate=yes

http://git-wip-us.apache.org/repos/asf/airavata/blob/12797790/dev-tools/ansible/roles/pga/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/tasks/main.yml b/dev-tools/ansible/roles/pga/tasks/main.yml
index f510b70..5d72f25 100644
--- a/dev-tools/ansible/roles/pga/tasks/main.yml
+++ b/dev-tools/ansible/roles/pga/tasks/main.yml
@@ -35,6 +35,15 @@
   become: yes
   become_user: "{{user}}"
 
+- name: Create user data dir {{ real_user_data_dir }}
+  file: path="{{ real_user_data_dir }}" state=directory owner="{{user}}" group="{{group}}" mode=0777
+  become: yes
+
+- name: Symlink user data dir {{ user_data_dir }} to {{ real_user_data_dir }}
+  file: src="{{ real_user_data_dir }}" dest="{{ user_data_dir }}" state=link owner="{{user}}" group="{{group}}"
+  become: yes
+  when: user_data_dir != real_user_data_dir
+
 - name: Create experiment data dir {{ experiment_data_dir }}
   file: path="{{ experiment_data_dir }}" state=directory owner="{{user}}" group="{{group}}" mode=0777 recurse=yes follow=yes
   become: yes


[2/7] airavata git commit: AIRAVATA-2376 Switch to MariaDB jar in Ansible

Posted by ma...@apache.org.
AIRAVATA-2376 Switch to MariaDB jar in Ansible


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/047521f3
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/047521f3
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/047521f3

Branch: refs/heads/develop
Commit: 047521f3a8f54dac9edf6bdc66f89f1d75003400
Parents: 7ff7130
Author: Marcus Christie <ma...@apache.org>
Authored: Wed Jun 14 11:39:14 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Wed Jun 14 11:39:14 2017 -0400

----------------------------------------------------------------------
 .../ansible/roles/api-orch/defaults/main.yml    |   1 +
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 dev-tools/ansible/roles/api-orch/tasks/main.yml |  10 +++---
 .../templates/airavata-server.properties.j2     |  34 +++++++++----------
 dev-tools/ansible/roles/gfac/defaults/main.yml  |   1 +
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 dev-tools/ansible/roles/gfac/tasks/main.yml     |  11 +++---
 .../templates/airavata-server.properties.j2     |  34 +++++++++----------
 .../files/mysql-connector-java-5.1.37-bin.jar   | Bin 985603 -> 0 bytes
 .../main/resources/airavata-server.properties   |  34 +++++++++----------
 10 files changed, 63 insertions(+), 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/api-orch/defaults/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/api-orch/defaults/main.yml b/dev-tools/ansible/roles/api-orch/defaults/main.yml
index c7dd3a9..7cb73fc 100644
--- a/dev-tools/ansible/roles/api-orch/defaults/main.yml
+++ b/dev-tools/ansible/roles/api-orch/defaults/main.yml
@@ -20,3 +20,4 @@
 
 api_orch_server_names: "api-orch"
 api_orch_log_dir: "../logs"
+mariadb_connector_jar_url: "https://downloads.mariadb.com/Connectors/java/connector-java-2.0.2/mariadb-java-client-2.0.2.jar"

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/api-orch/files/mysql-connector-java-5.1.37-bin.jar
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/api-orch/files/mysql-connector-java-5.1.37-bin.jar b/dev-tools/ansible/roles/api-orch/files/mysql-connector-java-5.1.37-bin.jar
deleted file mode 100644
index 465af67..0000000
Binary files a/dev-tools/ansible/roles/api-orch/files/mysql-connector-java-5.1.37-bin.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/api-orch/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/api-orch/tasks/main.yml b/dev-tools/ansible/roles/api-orch/tasks/main.yml
index 4793a82..7c1259f 100644
--- a/dev-tools/ansible/roles/api-orch/tasks/main.yml
+++ b/dev-tools/ansible/roles/api-orch/tasks/main.yml
@@ -76,11 +76,11 @@
 - name: create logs directory
   file: path="{{ api_orch_log_dir }}" state=directory owner={{ user }} group={{ group }}
 
-- name: Copy Mysql jar to lib
-  copy: src={{ mysql_connector_jar }}
-        dest="{{ api_orch_dir }}/{{ airavata_dist }}/lib/{{ mysql_connector_jar }}"
-        owner={{ user }}
-        group={{ group }}
+- name: Copy MariaDB connector jar to lib
+  get_url: url="{{ mariadb_connector_jar_url }}"
+          dest="{{ api_orch_dir }}/{{ airavata_dist }}/lib/"
+          owner={{ user }}
+          group={{ group }}
 
 - name: Open firwall ports
   firewalld: port={{ item }} zone=public permanent=true state=enabled immediate=yes

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2 b/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
index e502524..9a07a42 100644
--- a/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
+++ b/dev-tools/ansible/roles/api-orch/templates/airavata-server.properties.j2
@@ -32,9 +32,9 @@
 #for derby [AiravataJPARegistry]
 #registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #registry.jdbc.url=jdbc:derby://localhost:1527/experiment_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-registry.jdbc.driver=com.mysql.jdbc.Driver
-registry.jdbc.url=jdbc:mysql://{{ db_server }}:{{ db_server_port }}/{{ exp_catalog }}
+# MariaDB database configuration
+registry.jdbc.driver=org.mariadb.jdbc.Driver
+registry.jdbc.url=jdbc:mariadb://{{ db_server }}:{{ db_server_port }}/{{ exp_catalog }}
 registry.jdbc.user={{ db_user }}
 registry.jdbc.password={{ db_password }}
 #FIXME: Probably the following property should be removed.
@@ -63,9 +63,9 @@ cluster.status.monitoring.repeat.time=18000
 #for derby [AiravataJPARegistry]
 #appcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #appcatalog.jdbc.url=jdbc:derby://localhost:1527/app_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-appcatalog.jdbc.driver=com.mysql.jdbc.Driver
-appcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ app_catalog }}
+# MariaDB database configuration
+appcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+appcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ app_catalog }}
 appcatalog.jdbc.user={{ db_user }}
 appcatalog.jdbc.password={{ db_password }}
 appcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -76,9 +76,9 @@ appcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #replicacatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #replicacatalog.jdbc.url=jdbc:derby://localhost:1527/replica_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-replicacatalog.jdbc.driver=com.mysql.jdbc.Driver
-replicacatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ replica_catalog }}
+# MariaDB database configuration
+replicacatalog.jdbc.driver=org.mariadb.jdbc.Driver
+replicacatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ replica_catalog }}
 replicacatalog.jdbc.user={{ db_user }}
 replicacatalog.jdbc.password={{ db_password }}
 replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -89,9 +89,9 @@ replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #workflowcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #workflowcatalog.jdbc.url=jdbc:derby://localhost:1527/workflow_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-workflowcatalog.jdbc.driver=com.mysql.jdbc.Driver
-workflowcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ replica_catalog }}
+# MariaDB database configuration
+workflowcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+workflowcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ replica_catalog }}
 workflowcatalog.jdbc.user={{ db_user }}
 workflowcatalog.jdbc.password={{ db_password }}
 workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -102,9 +102,9 @@ workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #sharingcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #sharingcatalog.jdbc.url=jdbc:derby://localhost:1527/sharing_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-sharingcatalog.jdbc.driver=com.mysql.jdbc.Driver
-sharingcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ sharing_catalog }}
+# MariaDB database configuration
+sharingcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+sharingcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ sharing_catalog }}
 sharingcatalog.jdbc.user={{ db_user }}
 sharingcatalog.jdbc.password={{ db_password }}
 sharingcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -205,10 +205,10 @@ job.notification.flags=abe
 credential.store.keystore.url={{ keystores_location }}/{{ cred_keystore_src_path | basename }}
 credential.store.keystore.alias={{ cred_keystore_alias }}
 credential.store.keystore.password={{ cred_keystore_passwd }}
-credential.store.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ credential_store }}
+credential.store.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ credential_store }}
 credential.store.jdbc.user={{ db_user }}
 credential.store.jdbc.password={{ db_password }}
-credential.store.jdbc.driver=com.mysql.jdbc.Driver
+credential.store.jdbc.driver=org.mariadb.jdbc.Driver
 credential.store.server.host={{ cred_store_server_host }}
 credential.store.server.port={{ cred_store_port }}
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/gfac/defaults/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/gfac/defaults/main.yml b/dev-tools/ansible/roles/gfac/defaults/main.yml
index c7ccc3d..fff346c 100644
--- a/dev-tools/ansible/roles/gfac/defaults/main.yml
+++ b/dev-tools/ansible/roles/gfac/defaults/main.yml
@@ -19,3 +19,4 @@
 #
 
 gfac_log_dir: "../logs"
+mariadb_connector_jar_url: "https://downloads.mariadb.com/Connectors/java/connector-java-2.0.2/mariadb-java-client-2.0.2.jar"

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/gfac/files/mysql-connector-java-5.1.37-bin.jar
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/gfac/files/mysql-connector-java-5.1.37-bin.jar b/dev-tools/ansible/roles/gfac/files/mysql-connector-java-5.1.37-bin.jar
deleted file mode 100644
index 465af67..0000000
Binary files a/dev-tools/ansible/roles/gfac/files/mysql-connector-java-5.1.37-bin.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/gfac/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/gfac/tasks/main.yml b/dev-tools/ansible/roles/gfac/tasks/main.yml
index 16cc55f..db3fea4 100644
--- a/dev-tools/ansible/roles/gfac/tasks/main.yml
+++ b/dev-tools/ansible/roles/gfac/tasks/main.yml
@@ -72,12 +72,11 @@
 - name: create logs directory
   file: path="{{ gfac_log_dir }}" state=directory owner={{ user }} group={{ group }}
 
-- name: Copy Mysql jar to lib
-  copy: src="{{ mysql_connector_jar }}"
-        dest="{{ gfac_dir }}/{{ airavata_dist }}/lib/{{ mysql_connector_jar }}"
-        owner={{ user }}
-        group={{ group }}
-
+- name: Copy MariaDB connector jar to lib
+  get_url: url="{{ mariadb_connector_jar_url }}"
+          dest="{{ gfac_dir }}/{{ airavata_dist }}/lib/"
+          owner={{ user }}
+          group={{ group }}
 
 - name: Open firwall ports
   firewalld: port="{{ gfac_port }}/tcp" zone=public permanent=true state=enabled immediate=yes

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2 b/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2
index 8aef970..33ec6f8 100644
--- a/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2
+++ b/dev-tools/ansible/roles/gfac/templates/airavata-server.properties.j2
@@ -32,9 +32,9 @@
 #for derby [AiravataJPARegistry]
 #registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #registry.jdbc.url=jdbc:derby://localhost:1527/experiment_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-registry.jdbc.driver=com.mysql.jdbc.Driver
-registry.jdbc.url=jdbc:mysql://{{ db_server }}:{{ db_server_port }}/{{ exp_catalog }}
+# MariaDB database configuration
+registry.jdbc.driver=org.mariadb.jdbc.Driver
+registry.jdbc.url=jdbc:mariadb://{{ db_server }}:{{ db_server_port }}/{{ exp_catalog }}
 registry.jdbc.user={{ db_user }}
 registry.jdbc.password={{ db_password }}
 #FIXME: Probably the following property should be removed.
@@ -64,9 +64,9 @@ cluster.status.monitoring.repeat.time=18000
 #for derby [AiravataJPARegistry]
 #appcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #appcatalog.jdbc.url=jdbc:derby://localhost:1527/app_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-appcatalog.jdbc.driver=com.mysql.jdbc.Driver
-appcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ app_catalog }}
+# MariaDB database configuration
+appcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+appcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ app_catalog }}
 appcatalog.jdbc.user={{ db_user }}
 appcatalog.jdbc.password={{ db_password }}
 appcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -77,9 +77,9 @@ appcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #replicacatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #replicacatalog.jdbc.url=jdbc:derby://localhost:1527/replica_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-replicacatalog.jdbc.driver=com.mysql.jdbc.Driver
-replicacatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ replica_catalog }}
+# MariaDB database configuration
+replicacatalog.jdbc.driver=org.mariadb.jdbc.Driver
+replicacatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ replica_catalog }}
 replicacatalog.jdbc.user={{ db_user }}
 replicacatalog.jdbc.password={{ db_password }}
 replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -90,9 +90,9 @@ replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #workflowcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #workflowcatalog.jdbc.url=jdbc:derby://localhost:1527/workflow_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-workflowcatalog.jdbc.driver=com.mysql.jdbc.Driver
-workflowcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ replica_catalog }}
+# MariaDB database configuration
+workflowcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+workflowcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ replica_catalog }}
 workflowcatalog.jdbc.user={{ db_user }}
 workflowcatalog.jdbc.password={{ db_password }}
 workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -103,9 +103,9 @@ workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 #sharingcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 #sharingcatalog.jdbc.url=jdbc:derby://localhost:1527/sharing_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-sharingcatalog.jdbc.driver=com.mysql.jdbc.Driver
-sharingcatalog.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ sharing_catalog }}
+# MariaDB database configuration
+sharingcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+sharingcatalog.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ sharing_catalog }}
 sharingcatalog.jdbc.user={{ db_user }}
 sharingcatalog.jdbc.password={{ db_password }}
 sharingcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -199,10 +199,10 @@ job.notification.flags=abe
 credential.store.keystore.url={{ keystores_location }}/{{ cred_keystore_src_path | basename }}
 credential.store.keystore.alias={{ cred_keystore_alias }}
 credential.store.keystore.password={{ cred_keystore_passwd }}
-credential.store.jdbc.url=jdbc:mysql://{{ db_server }}:3306/{{ credential_store }}
+credential.store.jdbc.url=jdbc:mariadb://{{ db_server }}:3306/{{ credential_store }}
 credential.store.jdbc.user={{ db_user }}
 credential.store.jdbc.password={{ db_password }}
-credential.store.jdbc.driver=com.mysql.jdbc.Driver
+credential.store.jdbc.driver=org.mariadb.jdbc.Driver
 credential.store.server.host={{ cred_store_server_host }}
 credential.store.server.port={{ cred_store_port }}
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/dev-tools/ansible/roles/registry/files/mysql-connector-java-5.1.37-bin.jar
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/registry/files/mysql-connector-java-5.1.37-bin.jar b/dev-tools/ansible/roles/registry/files/mysql-connector-java-5.1.37-bin.jar
deleted file mode 100644
index 465af67..0000000
Binary files a/dev-tools/ansible/roles/registry/files/mysql-connector-java-5.1.37-bin.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/airavata/blob/047521f3/modules/configuration/server/src/main/resources/airavata-server.properties
----------------------------------------------------------------------
diff --git a/modules/configuration/server/src/main/resources/airavata-server.properties b/modules/configuration/server/src/main/resources/airavata-server.properties
index b11107f..1391279 100644
--- a/modules/configuration/server/src/main/resources/airavata-server.properties
+++ b/modules/configuration/server/src/main/resources/airavata-server.properties
@@ -32,9 +32,9 @@
 #for derby [AiravataJPARegistry]
 registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 registry.jdbc.url=jdbc:derby:experiment_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-#registry.jdbc.driver=com.mysql.jdbc.Driver
-#registry.jdbc.url=jdbc:mysql://localhost:3306/experiment_catalog
+# MariaDB database configuration
+#registry.jdbc.driver=org.mariadb.jdbc.Driver
+#registry.jdbc.url=jdbc:mariadb://localhost:3306/experiment_catalog
 registry.jdbc.user=airavata
 registry.jdbc.password=airavata
 #FIXME: Probably the following property should be removed.
@@ -63,9 +63,9 @@ cluster.status.monitoring.repeat.time=18000
 #for derby [AiravataJPARegistry]
 appcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 appcatalog.jdbc.url=jdbc:derby:app_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-#appcatalog.jdbc.driver=com.mysql.jdbc.Driver
-#appcatalog.jdbc.url=jdbc:mysql://localhost:3306/app_catalog
+# MariaDB database configuration
+#appcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+#appcatalog.jdbc.url=jdbc:mariadb://localhost:3306/app_catalog
 appcatalog.jdbc.user=airavata
 appcatalog.jdbc.password=airavata
 appcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -76,9 +76,9 @@ appcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 replicacatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 replicacatalog.jdbc.url=jdbc:derby:replica_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-#replicacatalog.jdbc.driver=com.mysql.jdbc.Driver
-#replicacatalog.jdbc.url=jdbc:mysql://localhost:3306/replica_catalog
+# MariaDB database configuration
+#replicacatalog.jdbc.driver=org.mariadb.jdbc.Driver
+#replicacatalog.jdbc.url=jdbc:mariadb://localhost:3306/replica_catalog
 replicacatalog.jdbc.user=airavata
 replicacatalog.jdbc.password=airavata
 replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -89,9 +89,9 @@ replicacatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 workflowcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 workflowcatalog.jdbc.url=jdbc:derby:workflow_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-#workflowcatalog.jdbc.driver=com.mysql.jdbc.Driver
-#workflowcatalog.jdbc.url=jdbc:mysql://localhost:3306/workflow_catalog
+# MariaDB database configuration
+#workflowcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+#workflowcatalog.jdbc.url=jdbc:mariadb://localhost:3306/workflow_catalog
 workflowcatalog.jdbc.user=airavata
 workflowcatalog.jdbc.password=airavata
 workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -102,9 +102,9 @@ workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION
 #for derby [AiravataJPARegistry]
 sharingcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 sharingcatalog.jdbc.url=jdbc:derby:sharing_catalog;create=true;user=airavata;password=airavata
-# MySql database configuration
-#sharingcatalog.jdbc.driver=com.mysql.jdbc.Driver
-#sharingcatalog.jdbc.url=jdbc:mysql://localhost:3306/sharing_catalog
+# MariaDB database configuration
+#sharingcatalog.jdbc.driver=org.mariadb.jdbc.Driver
+#sharingcatalog.jdbc.url=jdbc:mariadb://localhost:3306/sharing_catalog
 sharingcatalog.jdbc.user=airavata
 sharingcatalog.jdbc.password=airavata
 sharingcatalog.validationQuery=SELECT 1 from CONFIGURATION
@@ -219,8 +219,8 @@ credential.store.jdbc.user=airavata
 credential.store.jdbc.password=airavata
 credential.store.jdbc.driver=org.apache.derby.jdbc.ClientDriver
 credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION
-#credential.store.jdbc.driver=com.mysql.jdbc.Driver
-#credential.store.jdbc.url=jdbc:mysql://localhost:3306/credential_store
+#credential.store.jdbc.driver=org.mariadb.jdbc.Driver
+#credential.store.jdbc.url=jdbc:mariadb://localhost:3306/credential_store
 credential.store.server.host=localhost
 credential.store.server.port=8960
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer


[6/7] airavata git commit: AIRAVATA-2438 Lower case user profile user id/internal id

Posted by ma...@apache.org.
AIRAVATA-2438 Lower case user profile user id/internal id


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/35c7cdf6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/35c7cdf6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/35c7cdf6

Branch: refs/heads/develop
Commit: 35c7cdf674470879e957cb7a098de9d2da943f84
Parents: 2b7a9a3
Author: Marcus Christie <ma...@apache.org>
Authored: Wed Jun 14 17:12:19 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 15 12:19:55 2017 -0400

----------------------------------------------------------------------
 .../service/profile/handlers/UserProfileServiceHandler.java       | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/35c7cdf6/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/UserProfileServiceHandler.java
----------------------------------------------------------------------
diff --git a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/UserProfileServiceHandler.java b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/UserProfileServiceHandler.java
index 7d85002..f27d580 100644
--- a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/UserProfileServiceHandler.java
+++ b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/UserProfileServiceHandler.java
@@ -59,6 +59,9 @@ public class UserProfileServiceHandler implements UserProfileService.Iface {
     @SecurityCheck
     public String addUserProfile(AuthzToken authzToken, UserProfile userProfile) throws UserProfileServiceException, AuthorizationException, TException {
         try{
+            // Lowercase user id and internal id
+            userProfile.setUserId(userProfile.getUserId().toLowerCase());
+            userProfile.setAiravataInternalUserId(userProfile.getUserId() + "@" + userProfile.getGatewayId());
             userProfile = userProfileRepository.updateUserProfile(userProfile, getIAMUserProfileUpdater(authzToken, userProfile));
             if (null != userProfile) {
                 logger.info("Added UserProfile with userId: " + userProfile.getUserId());


[7/7] airavata git commit: Ansible - keycloak for dev SciGaP deploy

Posted by ma...@apache.org.
Ansible - keycloak for dev SciGaP deploy


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/2075f41e
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/2075f41e
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/2075f41e

Branch: refs/heads/develop
Commit: 2075f41e1f1a7e3b7ff887f12901e6e1706e100b
Parents: 35c7cdf
Author: Marcus Christie <ma...@apache.org>
Authored: Thu Jun 15 09:35:57 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 15 12:19:56 2017 -0400

----------------------------------------------------------------------
 .../scigap/develop/files/keycloak.jks           | 143 +++++++++++++++++++
 .../scigap/develop/group_vars/all/vars.yml      |   6 +-
 .../scigap/develop/group_vars/all/vault.yml     |  56 ++++----
 .../ansible/roles/database/tasks/keycloak.yml   |  38 +++++
 dev-tools/ansible/roles/database/tasks/main.yml |   9 +-
 .../ansible/roles/keycloak/defaults/main.yml    |   1 +
 dev-tools/ansible/roles/keycloak/tasks/main.yml |  15 +-
 7 files changed, 230 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/inventories/scigap/develop/files/keycloak.jks
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/files/keycloak.jks b/dev-tools/ansible/inventories/scigap/develop/files/keycloak.jks
new file mode 100644
index 0000000..c896d03
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/develop/files/keycloak.jks
@@ -0,0 +1,143 @@
+$ANSIBLE_VAULT;1.1;AES256
+66353964396536666532306233383464343935653932393865616364373334333365346439633266
+6634663634323434643464633734316137336562653463340a383030363463386465303639626439
+36303865353236336132663634626462313266626362613536643532613239346438333834383733
+3339653664613332370a653838373036626231613532653233633732646562353762303530653039
+65613364353436323463616239303538376462643666373063326437313935353839363262333735
+34303838356532636566646530353262613864313236373738626334306563346266393566316163
+62666238633236633231626262333963363366343138646432356366326538353966653630643737
+64306235383835343236643962343164653531616333373933633139326465336331666634373839
+63373361313232383661366264336261383635313138323362636664643065303661666138366332
+39343164346434373137663266636538333661643836633531333363616138313165363833623966
+63613462343332393962363436366637353065303435333236666661356436366136643338326664
+66313664616535626438363230313765663431333266636466363233383735313534356635663230
+64656638303730613337616137363930373631616137393438623032326236613037663232336233
+61646565656630333864666364616231653465653264633838363832623232666366666235623832
+36343139363466633132396461333335393862383939363834366434333561393734666465366464
+30626135393766366665613336623564643832343130396365643838363863383134363932633165
+62393730323636343862396635306463666230363231393633363631333732653935333939336435
+30643331383165626666353937623039323434333631356631336435646635656461616663393763
+61303634626632356630343039333438363034663566313230396363353963313766393536646131
+34336561366662366232383463376664383565346135386663363363373432316238323162333063
+32656563383838333338343630376536643764326639613530633866663636646433323830623739
+38326130313337306132373038393637626461396637383031363732646437643036616232323765
+30626662663331326233336163393961666262366230656532323562383761323265343863346562
+30353431343531346535383932663035333135633035643064383132386431346530343562393765
+38366231613566623965363534303762636235613561343963323834356431616537303537306636
+38396463666562306131376138396633373765643233656532396630333232393934396262386561
+62383034326665303436613834366331353562613730633965356339316430363061336237626235
+38656336626330343962343035313237353261366230663738353161353366343561333864333832
+64333131666332636335666530323933626138643637363132353132653061373238636265363734
+37363039336661353966366461353138363130333763313761653234386666366661663734396161
+35333137613262376662396462383637333436393932306134666232303061316332643937653236
+30316336303663303332643431316539326432343864356133633737656331366331663833613230
+65383763316565313962323564616536393265396539313034636635343731396536643733663164
+66316161623162633664333931613233333432303335363461363535643365323133346334626537
+38633039356462333031313239323064303038316564326364306332376432376163356639313732
+66386136626436303061396232363433353533643562633530633430323534353365316531316336
+31653164303166616366633135323661306563376363373839343663643033343736396364646334
+62353939346166333461666131643636663538336531346561316437666531386166633536646435
+33633533326537356530616235306164666231333936386135316362306431393334396466383039
+62653763393165333862383165633030666635323666653930396635373238396636316136633864
+39666237313465313537366330346663316265343638626531343665663062373434323130366366
+61313761363432613464633333383762333137616334343564366638333037326536323035343833
+61633235333238313562393431356538346334613834366434643433663436616339396663326335
+65613134653335373139393437353666623037643939383939373238366235366332383731356132
+30313036656435353663353339343164303536663736376336343461636665303038306137643765
+36343333313364336431353332613665636265336636346536396166323732623630386461636638
+32613139316430663132643138346261353031326639656464303536643736343165336631383739
+30643961643233633238333632313933303434663530666331356666653062663036613862663739
+39343439626533376232626534316333316464303064393338616362626166663332613631363464
+62633634643462346463303961383865343466396336323465663036666534623366633462306330
+63386332666538313265303666343337373864326638313131393365653964316632643536613363
+35353038383565623430376665646264313033323761356138646366623464643232353231323061
+33613936626365303639663361646631653231643938616537653163363439333131373161366639
+35316464383436396536343966383630333539306637353135643663636364303630646133636131
+34383036633539663064656532313730656630666436373638333765343465383865616139623133
+62633764386463346239333536323835613963316661363732663538306335313439386430643032
+62646338633730663438343931333732373966623838313430636137366230353736323034653537
+34646537663263383062643761363738396163386265386565353335616435323736363466353164
+39666365376137326637363661326437383337393234336266393437333063663366383862666162
+65306235626436333237353466303934653436613639303236373932626563356662393463323032
+32373963323964333030663362336435353063366638363830393866393563646663343165353161
+31303832613839613930623732656232306438336463393233326339653636626266666238353462
+39623361376663363833323330333862383237653733636332363934613965633035393337633539
+62613064393338333062333764646332633461626462663863626330636231373366656235323266
+61646636633234656532643235643363626235643938633235633234643834396639353864336365
+36333231626531613538333330323230626264393466373234396634373263323238386465353339
+65626637306537653261623336356363343136363836616635306664303866346262626366386138
+30633539376438653938626264383631353736353133653134306534636632613834366534303439
+35626265663564316266636337646266316430353065303331343462666537633135363363363563
+33613538323564613834363432633261633532353931363730626263396461303034346433666332
+32623439333931363333363533353539306234313063353865333362623839306438633565373730
+35616233313235386338356464336362366166663663343339383937393564313338386566666631
+63373532663363646438363637346139373534363935313833333465363634363861346435366265
+38303634623037663665396337383339366166373164633764383433633663636663663862353135
+66326561663838623865633839616139336633633530626538643661366163376530646233336233
+36333263633036616531633666666539343436336236353431396435336164663363366533356633
+32303730653236656264343365303763646236313461336139353737383233343666636334346565
+38653030616339303763313661333139666535363730656263616663373362353637656434313265
+32613839613336333837636430626166393162653032323130303965663237633962373931346161
+38373364383462376162336335626162346334333564626661643338653637316339613562613137
+62316130306633636431643036376236353438616163383139613630383065346138363530633964
+33326165363431316334616237326635306163633661316161656362373263393561666335623661
+37333839656131353162323731323438343238383435306633373932353135336139643565363939
+32363261633737376138386133366135323563316462616162666137353433333862356234613562
+61306337363736663332623039306136383064396139326433333036386337363031343638333238
+30613862316538666362353634376364656331323965393466386263356166383138346661343764
+64363331633061616233303562373133363164373165613632653235633261353433373932323039
+30646363653938623566336161613166616134353131623564653432646265663532366634393235
+61393335356361333239393634356130636237646437356662366666336164303463333330323930
+32383733663563306336383264633137353138663234643136376232383462663231313634336631
+66636363343230636237303565393363326230376235353735623032336235373266343633333262
+36346462373864313738613330653461363664666434336638396662656161366533643063353337
+63643931313539393266613630633636356439323337353537363061353337396137303531333062
+35393633343132353338373034653061316661366232616234626630613938616164323966333237
+35376233613132383630376661333039316164623332373531323833326538613136333137653837
+39363930376531326632663963323432326562383036623463316161306235303839363333663366
+63356436316439366136333464623134633962633331393131313233346233616536396339613763
+37663265383065396336333861626337336365653436336464643839376136663035393939366164
+39643535343262613630643165333137666663383939393732373563386663333332383537323036
+63633734346164646433383565616565323564636131383738653263313630353638343032353662
+30393661396131633334373065323661646434346433376238616238376261643535396163373139
+63363336666262653664623633303130646132393362323436323964346538333533336265633630
+36616135383665363738643331363936303232393864626364356363663530663565643662663235
+64666666386438626634343064363136393332623034306638356634643335666630623831313365
+61663934346537376264323031356133333639613838303336636537633766623733343536656638
+61326537643265623931393233636363656330663737353737643431633531626164666337656433
+38383631636365373534336131646333333532646633343564353437316339303239626238303638
+30656165333133373063646539373131383339626133643231663331343431616231393939366530
+61363863623830656238336335643163653632663862396165623433356636303337333265633464
+39623037346237363531636432383465313263316633653834636639633461386536626239336233
+35396633363034613430393330643034343338356536663437623238323065303062393131363465
+31353465626562643937623932373862623433653138323339333039386563303834653830366662
+64343064323037633836333138626434366330323230313463353162653639343232326661353231
+30383764343138653363323137366663376666313061313532326661343532633563396537366561
+35396134623139386533626464303766313834303735656161383132643130316136323265393638
+61613635313065303931303066616137343238653639656336666439303530343131623635626237
+64383830666335383037323632306337393366373331323639653964343237396230353466363436
+62326162373137306531353261363130323232613866613639313134623266366162333966303163
+31373839626435646535323730363530613737363838383463303730326433353761336333313032
+65666433663333636362363539643238663937323466653134633161633665613961663265346135
+34393565343530336166313332343562383466333737613266323362353065323732343661356665
+33376337653435633265356230346363666231396563393566373534333430363365383062346335
+61383636616565613362636633613366643666643863376139336435616333353262303031303533
+64323338306463303166373862323537303965336332616236613333643064316137333636633065
+31343266663635383065363432653166633761646336613538643162396566373033363265623465
+62633839376639653132623234343937653831336266333735303232366332356138633061356539
+35343330323739613938646234396362393933356230636364366239393537613638393461626432
+39303632333735653764623738373036616433613939393561353765636361646562316235613762
+36323964303135646666346637303865393966373063363138343333626233326534313962663561
+34333935653563386132316230613362343433396130343239326665323638616165313331623736
+34663339633132376133326361333030363233323836323737333461636263303934396133656630
+36383638313362306166316231313064313064386565386662313239636130663130373665336434
+38303231656432316533643637326131323333313161613333303239633639343964376238393332
+61333637363735663861353231313061393538376436343538343939353433663036656332666436
+61316537316137616635376463633833316262313766636532623664363031313461326539323733
+66363261656435646232633466613838393338376538353031636236393931343465306231633137
+32633766613264363031316635386130623738613161313039626634376233636265623565333137
+62633966383065326539313464306230316564623130633637363830616532383265303038313633
+66333436383664363265323263613936666333643739313530663438303061643535646330306636
+37653161326533346434653238613662313537623566646661353065363963653963653331626462
+37623034303238316132393766346331373561343730393631636663663033366664313535303966
+3963336630363238656363396139346463616266666266363632

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
index a8a2737..c2376fe 100644
--- a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
@@ -124,12 +124,14 @@ sharing_registry_host: "{{ groups['api-orch'][0] }}"
 sharing_registry_port: 7878
 
 # Profile Service related variables
-profile_service_host: "{{ ansible_fqdn }}"
+profile_service_host: "{{ groups['api-orch'][0] }}"
 profile_service_port: 8962
 
 # Keycloak
-keycloak_ssl_keystore_file_name: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/keycloak.jks"
 keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
 keycloak_db_host: "{{ groups['database'][0] }}"
 keycloak_db_username: "keycloak"
 keycloak_db_password: "{{ vault_keycloak_db_password }}"
+keycloak_master_account_username: "admin"
+keycloak_master_account_password: "{{ vault_keycloak_master_account_password }}"

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
index 8e7a4f3..4b7425d 100644
--- a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
+++ b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vault.yml
@@ -1,29 +1,29 @@
 $ANSIBLE_VAULT;1.1;AES256
-32313735333539653633636436666662373537386237346632373635303063666535656535616435
-3161666366613764323163353064343339303661393266610a356238303466633032386366356662
-30303865613437643132613532643932636634646537626264386365356330366237353964316230
-6564376130373863340a616161393533626232663437313336313166623463303066313937326266
-35333036653864396430346634633536313464343966646562363636336234383631306261346263
-63353135623836383661393536633931623362306161363934623235366165376663313161333562
-32646565333430653166303662623364626334373163313533663932363561386532323034393030
-31343832393664366336653266363263393736333935343963333763386238663439646436336330
-33636239356633333266386136623531663433646539313834663365326634336661363961623438
-65313437363362383732323139326239643132303033326331623836633536656264383635316430
-66326332343236386137616536363433303636303433353930353061643733303032353435323265
-32633731616332393465616432663336373034346462313837643061616264376461353061326233
-30663361306165613363366162613735373333353437343163616632376363643936623333646531
-33323038346537353764323664636634633331303335626236323533363530386666643431343535
-65643331323336306166643039373532653935346264643236346464383663313136643364326532
-39383032356136306463363764366134663334393436373634393366353662363664373735623430
-36333132316165366531376133386466613262373162343832343035623738386465313836626163
-38356437643964323266643531306139663937313262376663303262366265663564313363353463
-34616261613832633630313735303836623934623736623763383233653538666334373135383564
-38373937316638333530343764616334666333626466386366623164306162306662633333363235
-35653939636366313737303239313237393136363265383161393239656236626537366237626161
-33616234323766616464626233613034623266383138336164666361306430393333306431383232
-61343262643434653362646235386431656432343037313630363331633366613937313364323061
-61616165626339343931363266666430343331346433333635633738356538393733656262393739
-64343161626661656564303135306165613135333661363266323934366661376230343566623332
-62643161613437366564373261623132383632316637626361356530336530376632306162386636
-39336563656437383764303939333766366664313834303835313230313636383236626131363462
-38643561373363653131
+35356163353838626238333130653462363633376663353637663963303662336237656161643937
+3835323536303334353266643464393234326361383636360a303334653738373536363235353034
+39313432626234636362663839386539356236653062383135333439336132633265636335653763
+3836616264306139660a633734373464303663623735376566356365316164393237663431373938
+35386332623338323034363861306536613837656533643465626464303961316238306138373637
+63613565653834336162643833626365363635386536643366643137313930623164633536306162
+65313162653833653562613535346538313939636435323430656534656430613935643464373462
+65346162376333323466363863323565396639306130336461653864336464366438656239613731
+38626433623935313364356463316366643337323464386165393234326266393831633265663436
+64303138396138666138336238646530303363626230363631373338353432623966646637316634
+62626639363433356138393533373666653038383436633137643433313361643936383963373562
+64633461343263613461653965396365303630653930313830343661313838613935376563316461
+39366130666265343635633564663736633735663436323738646665353535346165376664316661
+38663433376666633636396566663535313162393538326266643136626230666233643136323364
+31663137333661323065363638356663656539313265366438396131626264373466633162323766
+34353533366166373334386662623366636366333461613835626365613562386334376439326633
+38613135656266363263313032323966613237633132613838663861633766646635626637623365
+35373639303263656130326565643937333635316364333066333034623562653333613663356664
+36643533383536663165356138633066393739346363383661303366663965636162623661376633
+64356136373761343232343932383836326165393861636432623132353464306366626232363161
+63343634363366633938363937316638613766613937303539663639373037353066653132306532
+37373732323433336238353334653430623131383132616166666435656436356136376336376363
+30633865643863653866613335303730616538333863363133383239373466623063663334316236
+32336132393831653934353735326566663034313230323933316461326134663531326537653232
+36303034376464616536346562623836353936363463363534353936343434366163306238613363
+61663836363365613632356461313432613062666663653133383130646639633366343539326566
+65396238333930623564396635383564636637636431633833356632633065346433663534623831
+35343838303864633166

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/roles/database/tasks/keycloak.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/database/tasks/keycloak.yml b/dev-tools/ansible/roles/database/tasks/keycloak.yml
new file mode 100644
index 0000000..50e31e7
--- /dev/null
+++ b/dev-tools/ansible/roles/database/tasks/keycloak.yml
@@ -0,0 +1,38 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+---
+
+# Setup keycloak user and database
+- name: create keycloak database
+  mysql_db: name="keycloak" state=present
+  when: "'keycloak' in groups"
+
+- name: give access to {{ keycloak_db_username }} from remote
+  mysql_user: name="{{ keycloak_db_username }}" password="{{ keycloak_db_password }}" host="{{ item }}"
+  with_items:
+    - "{{ groups['keycloak'] }}"
+
+- name: create new user {{ keycloak_db_username }} with all privilege
+  mysql_user: name="{{ keycloak_db_username }}"
+              password="{{ keycloak_db_password }}"
+              append_privs=yes
+              host_all=yes
+              priv=keycloak.*:ALL,GRANT state=present

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/roles/database/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/database/tasks/main.yml b/dev-tools/ansible/roles/database/tasks/main.yml
index 423ed99..6c47ba0 100644
--- a/dev-tools/ansible/roles/database/tasks/main.yml
+++ b/dev-tools/ansible/roles/database/tasks/main.yml
@@ -124,12 +124,6 @@
     - "{{ groups['gfac'] }}"
     - "localhost"
 
-- name: give access to {{ keycloak_db_username }} from remote
-  mysql_user: name="{{ keycloak_db_username }}" password="{{ keycloak_db_password }}" host="{{ item }}"
-  with_items:
-    - "{{ groups['keycloak'] }}"
-  when: "'keycloak' in groups"
-
 - name: create new user {{ db_user }} with all privilege
   mysql_user: name="{{ db_user }}"
               password="{{ db_password }}"
@@ -137,6 +131,9 @@
               host_all=yes
               priv=*.*:ALL,GRANT state=present
 
+- include: keycloak.yml
+  when: "'keycloak' in groups"
+
 - name: open firewall port {{ db_server_port }}
   firewalld: port="{{ db_server_port }}/tcp"
              zone=public permanent=true state=enabled immediate=yes

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/roles/keycloak/defaults/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/defaults/main.yml b/dev-tools/ansible/roles/keycloak/defaults/main.yml
index fecab13..e629c76 100644
--- a/dev-tools/ansible/roles/keycloak/defaults/main.yml
+++ b/dev-tools/ansible/roles/keycloak/defaults/main.yml
@@ -3,6 +3,7 @@ keycloak_version: "2.5.4.Final"
 keycloak_downlaod_url: "https://downloads.jboss.org/keycloak/{{keycloak_version}}/keycloak-{{keycloak_version}}.tar.gz"
 keycloak_install_dir: "keycloak-{{keycloak_version}}"
 keycloak_db_connector_name: "mysql-connector-java-5.1.41"
+keycloak_ssl_keystore_file: "keycloak.jks"
 keycloak_ssl_keystore_file_name: "keycloak.jks"
 keycloak_ssl_keystore_password: "Airavata"
 mysql_db_connector_download_url: "https://dev.mysql.com/get/Downloads/Connector-J/{{keycloak_db_connector_name}}.tar.gz"

http://git-wip-us.apache.org/repos/asf/airavata/blob/2075f41e/dev-tools/ansible/roles/keycloak/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/tasks/main.yml b/dev-tools/ansible/roles/keycloak/tasks/main.yml
index 176e933..a394d75 100644
--- a/dev-tools/ansible/roles/keycloak/tasks/main.yml
+++ b/dev-tools/ansible/roles/keycloak/tasks/main.yml
@@ -89,7 +89,7 @@
 
 - name: copy ssl certificate files to remote
   copy:
-    src: /Users/anujbhan/github/AiravataDev/keycloak-deployment/airavata/dev-tools/ansible/roles/keycloak/files/{{keycloak_ssl_keystore_file_name}}
+    src: "{{keycloak_ssl_keystore_file}}"
     dest: "{{ user_home }}/{{ keycloak_install_dir }}/standalone/configuration/{{keycloak_ssl_keystore_file_name}}"
     owner: "{{ user }}"
     group: "{{ group }}"
@@ -142,6 +142,8 @@
 
 - name: Add master realm admin account
   command: "{{user_home}}/{{ keycloak_install_dir }}/bin/add-user-keycloak.sh -r master -u {{ keycloak_master_account_username }} -p {{ keycloak_master_account_password }}"
+  args:
+    creates: "{{user_home}}/{{ keycloak_install_dir }}/standalone/configuration/keycloak-add-user.json"
   become: yes
   become_user: root
   tags:
@@ -165,8 +167,17 @@
   tags:
        - always
 
+# FIXME: restarting Keycloak server doesn't work
+- name: stop Keycloak server
+  service: name=keycloak state=stopped
+  ignore_errors: yes
+  become: yes
+  become_user: root
+  tags:
+       - always
+
 - name: start Keycloak server
-  service: name=keycloak state=restarted
+  service: name=keycloak state=started
   become: yes
   become_user: root
   tags: