You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2019/05/31 20:10:59 UTC

[airavata] branch 0.17-maintenance updated: New ansibles for pfec-hydro deployment

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch 0.17-maintenance
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/0.17-maintenance by this push:
     new 8c2bcad  New ansibles for pfec-hydro deployment
8c2bcad is described below

commit 8c2bcad47b894a7c35243815f13b1bb6398f4be4
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Fri May 31 16:10:51 2019 -0400

    New ansibles for pfec-hydro deployment
---
 .../pfec-hydro-production/group_vars/pga/vars.yml  | 78 ++++++++++++++++++++++
 .../pfec-hydro-production/group_vars/pga/vault.yml | 18 +++++
 .../inventories/scigap/pfec-hydro-production/hosts | 21 ++++++
 3 files changed, 117 insertions(+)

diff --git a/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vars.yml b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vars.yml
new file mode 100644
index 0000000..afebcfd
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vars.yml
@@ -0,0 +1,78 @@
+#
+#
+# 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.
+#
+
+---
+# TODO: uncomment this and rerun playbook once the data is in place
+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"
+airavata_profile_service_server: "{{ groups['api-orch'][0] }}"
+oauth_service_url: "https://iam.scigap.org/auth"
+
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"
+pga_git_branch: "tus-integration"
+user: "pga"
+group: "pga"
+doc_root_dir: "/var/www/portals/{{ gateway_id }}"
+vhost_servername: "futurewater.scigap.org"
+#vhost_serveralias: "www.mines.scigap.org"
+vhost_ssl: true
+# TODO: have Ansible manage these files as well
+ssl_certificate_file: "/etc/letsencrypt/live/futurewater.scigap.org/cert.pem"
+ssl_certificate_chain_file: "/etc/letsencrypt/live/futurewater.scigap.org/fullchain.pem"
+ssl_certificate_key_file: "/etc/letsencrypt/live/futurewater.scigap.org/privkey.pem"
+
+php_upload_max_filesize: "6000M"
+php_post_max_size: "15000M"
+
+## Keycloak related variables
+tenant_domain: "{{ gateway_id }}"
+admin_username: "admin"
+admin_password: "{{ vault_admin_password }}"
+oauth_client_key: "{{ vault_oauth_client_key }}"
+oauth_client_secret: "{{ vault_oauth_client_secret }}"
+oidc_discovery_url: "https://iam.scigap.org/auth/realms/{{ tenant_domain }}/.well-known/openid-configuration"
+
+auth_options:
+  - name: "Future Water Gateway"
+    oauth_grant_type: "password"
+  - name: "Existing Institute Login"
+    oauth_grant_type: "authorization_code"
+    oauth_authorize_url_extra_params: "kc_idp_hint=cilogon"
+    logo: "/assets/cilogon-logo-24x24-b.png"
+oauth_callback_url: "https://{{ vhost_servername }}/callback-url"
+
+gateway_id: "pfec-hydro"
+# relative to document root dir
+experiment_data_dir: "{{ user_data_dir }}/{{ gateway_id }}"
+gateway_data_store_resource_id: "js-171-92.jetstream-cloud.org_1a76397d-cc28-4ec9-82e8-d27c5cf80c79"
+gateway_data_store_ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9qczDIVUhTxPmMsvF2J/NGIWo35HDgm3IUL41w1bUi5FX3CzuKwWtBh6IGoY4l+ibvWiRw2w9+MLWPhAWglLjXXekHCc/C5LuU8qi6zGZgQfD6U4yFpHXmkZLUHt30iKbLJXgypy7MaQ4n3sWDXJe2Dbsc4FMSK+KXFQ5KNZ/meOCCurEswcDyz4Mrvf9ZSZWzq6vPTXtdHo+/oRMmiGNZqhcBkqIWfz5alzyq4HTAidz5uc6fD8mqj1hg87qywv6OwMUAxB84S8glcLs5ZzuTbpGl3sdftVH9zqabx6eAGXX9V389qdLp1k//u45ph+INOk11HFCCxmh/YmqQM9f"
+
+## Portal related variables
+super_admin_portal: "false"
+admin_emails: "['sgrc-iu-group@iu.edu','brandjen@iu.edu']"
+portal_email_username: "pga.airavata@gmail.com"
+portal_email_password: "{{ vault_portal_email_password }}"
+#portal_theme: "qusp-gateway-theme"
+#portal_theme_repo: "https://github.com/SciGaP/qusp-gateway-theme.git"
+portal_title: "Future Water Gateway"
+...
diff --git a/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vault.yml b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vault.yml
new file mode 100644
index 0000000..1cf1e75
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/group_vars/pga/vault.yml
@@ -0,0 +1,18 @@
+$ANSIBLE_VAULT;1.1;AES256
+35303535323930643866396632346635626536353731353662333137386638316536346433363464
+3665303064663365343761333136343166373765663764350a396236366239393664336234396433
+39333066373865623035623439366432643536663161343664366131306530353765646364396630
+6536663836643861650a303139643431613264373135376331383765636663313362313464313834
+34333061303533396339626161623136313061643965353835633438383764333632316165323564
+64383436663835306130323734366336636132323034396537316166303861366635623635313839
+31663232323232616633386537343534613638613365373963333766356337646636346462323135
+36363865393438363731336639633739346438353139323865666139663164323532376165323438
+37393834343239643365383435353838636132616364336661623035393533353064646134306237
+37333931343335346239656164323038303539623231383963393461616166333334383132373861
+36326666313664346462376231386331383436396330313266363962633064383463316534393863
+66616433303733636133313936346233343739323163633666663330626138643536303366343862
+62326435316535636331313863373436386131396337306265666133323039323062666366643435
+66316562656162323438333836616131353732663635376235626133316434633239643830303439
+30393034623866373933393534346630373464626566343331346462623561353566373364343064
+36643832383364636339346539616135386463666639336231353837376562383537356130383263
+6534
diff --git a/dev-tools/ansible/inventories/scigap/pfec-hydro-production/hosts b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/hosts
new file mode 100644
index 0000000..3ae09d5
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/pfec-hydro-production/hosts
@@ -0,0 +1,21 @@
+---
+# inventory file : scigap production deployment
+
+[zookeeper]
+scigap02.sciencegateways.iu.edu
+
+[rabbitmq]
+scigap02.sciencegateways.iu.edu
+
+[database]
+scigap01.sciencegateways.iu.edu
+
+[api-orch]
+scigap02.sciencegateways.iu.edu
+
+[gfac]
+scigap03.sciencegateways.iu.edu
+
+[pga]
+# Hosted on Jetstream
+149.165.171.92 ansible_user=centos