airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [07/50] [abbrv] airavata git commit: Updating pga config for Ultrascan, still on 0.17
Date Thu, 03 Aug 2017 16:01:23 GMT
Updating pga config for Ultrascan, still on 0.17


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

Branch: refs/heads/master
Commit: cd34c55f46e995cb91fb16867f73cac91fe4efc5
Parents: 217fa0f
Author: Marcus Christie <machristie@apache.org>
Authored: Fri Jul 7 10:25:34 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Fri Jul 7 10:25:34 2017 -0400

----------------------------------------------------------------------
 .../production/files/pga_config_0.17.php.j2     | 256 +++++++++++++++++++
 .../production/pga_config/ultrascan/vars.yml    |   4 +-
 dev-tools/ansible/roles/pga/defaults/main.yml   |   1 +
 dev-tools/ansible/roles/pga/tasks/main.yml      |   2 +-
 4 files changed, 261 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/cd34c55f/dev-tools/ansible/inventories/scigap/production/files/pga_config_0.17.php.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/production/files/pga_config_0.17.php.j2
b/dev-tools/ansible/inventories/scigap/production/files/pga_config_0.17.php.j2
new file mode 100644
index 0000000..af887be
--- /dev/null
+++ b/dev-tools/ansible/inventories/scigap/production/files/pga_config_0.17.php.j2
@@ -0,0 +1,256 @@
+<?php
+return array(
+    /**
+     * *****************************************************************
+     *  WSO2 Identity Server Related Configurations
+     * *****************************************************************
+     */
+
+    'wsis' => [
+
+        /**
+         * Admin Role Name
+         */
+        'admin-role-name' => '{{ admin_role_name }}',
+
+        /**
+         * Read only Admin Role Name
+         */
+        'read-only-admin-role-name' => '{{ admin_readonly_role_name }}',
+
+        /**
+         * Gateway user role
+         */
+        'user-role-name' => '{{ user_role_name }}',
+
+        /**
+         * Initial user role. This is the initial user role assigned to a new
+         * user. Set this to one of the three roles above to automatically
+         * grant new users that role, or set to some other role ('user-pending')
+         * to require admin approval before users have access.
+         */
+        'initial-role-name' => '{{ initial_role_name }}',
+
+        /**
+         * Tenant Domain
+         */
+        'tenant-domain' => '{{ tenant_domain }}',
+
+        /**
+         * Tenant admin's username
+         */
+        'admin-username' => '{{ admin_username }}',
+
+        /**
+         * Tenant admin's password
+         */
+        'admin-password' => '{{ admin_password }}',
+
+        /**
+         * OAuth client key
+         */
+        'oauth-client-key' => '{{ oauth_client_key }}',
+
+        /**
+         * OAuth client secret
+         */
+        'oauth-client-secret' => '{{ oauth_client_secret }}',
+
+        /**
+         * OAuth Grant Type (password or authorization_code)
+         */
+        'oauth-grant-type' => 'password',
+
+        /**
+         * Identity server domain
+         */
+        'server' => 'idp.scigap.org',
+
+        /**
+         * Identity server url
+         */
+        'service-url' => 'https://idp.scigap.org:9443/',
+
+        /**
+         * Enable HTTPS server verification
+         */
+        'verify-peer' => {{ auth_verify_peer }},
+
+        /**
+         * Path to the server certificate file
+         */
+        'cafile-path' => app_path() . '/resources/security/idp_scigap_org.pem',
+
+        /**
+         * Allow self signed server certificates
+         */
+        'allow-self-signed-cert' => false
+    ],
+
+
+    /**
+     * *****************************************************************
+     *  Airavata Client Configurations
+     * *****************************************************************
+     */
+    'airavata' => [
+
+        /**
+         * Airavata API server location. Use tls:// as the protocol to
+         * connect TLS enabled Airavata
+         */
+        'airavata-server' => '{{ airavata_server }}',
+
+        /**
+         * Airavata API server port
+         */
+        'airavata-port' => '{{ airavata_port }}',
+
+        /**
+         * Airavata API server thrift communication timeout
+         */
+        'airavata-timeout' => '1000000',
+
+        /**
+         * PGA Gateway ID
+         */
+        'gateway-id' => '{{ gateway_id }}',
+
+        /**
+         * Maximum size of a file which is allowed to upload to the server
+         */
+        'server-allowed-file-size' => 64,
+
+        /**
+         * absolute path of the data dir
+         */
+        'experiment-data-absolute-path' => '{{ experiment_data_dir }}',
+
+        /**
+         * Advanced experiments options
+         */
+        'advanced-experiment-options' => '',
+
+        /**
+         * Default queue name
+         */
+        'queue-name' => 'long',
+
+        /**
+         * Default node count
+         */
+        'node-count' => '1',
+
+        /**
+         * Default total core count
+         */
+        'total-cpu-count' => '16',
+
+        /**
+         * Default wall time limit
+         */
+        'wall-time-limit' => '30',
+
+        /**
+         * Enable app-catalog cache
+         */
+        'enable-app-catalog-cache' => true,
+
+        /**
+         * Life time of app catalog data cache in minutes
+         */
+        'app-catalog-cache-duration' => 5,
+
+         /**
+         * Gateway data store resource id
+         */
+         'gateway-data-store-resource-id' => '{{ gateway_data_store_resource_id }}',
+
+         /**
+          * Data Sharing enabled
+          */
+          'data-sharing-enabled' => {{ data_sharing_enabled }}
+    ],
+
+    /**
+     * *****************************************************************
+     *  Portal Related Configurations
+     * *****************************************************************
+     */
+    'portal' => [
+        /**
+         * Whether this portal is the SciGaP admin portal
+         */
+        'super-admin-portal' => {{ super_admin_portal }},
+
+        /**
+         * Set the name of theme in use here
+         */
+        'theme' => '{{ portal_theme }}',
+
+        /**
+         * Portal title
+         */
+        'portal-title' => '{{ portal_title }}',
+
+        /**
+         * Email address of the portal admin. Portal admin well get email notifications for
events
+         * such as new user creation
+         */
+        'admin-emails' => {{ admin_emails }},
+
+        /**
+         * Email account that the portal should login to send emails
+         */
+        'portal-email-username' => '{{ portal_email_username }}',
+
+        /**
+         * Password for the portal's email account
+         */
+        'portal-email-password' => '{{ portal_email_password }}',
+
+        /**
+         * SMTP server on which the portal should connect
+         */
+        'portal-smtp-server-host' => 'smtp.gmail.com',
+
+        /**
+         * SMTP server port on which the portal should connect
+         */
+        'portal-smtp-server-port' => '587',
+
+        /**
+         * Set JIRA Issue Collector scripts here.
+         */
+        'jira-help' =>
+        [
+            /**
+             * Report Issue Script issued for your app by Atlassian JIRA
+             */
+            'report-issue-script' => '',
+            /**
+             * Collector id at the end of the above script
+             */
+            'report-issue-collector-id' => '',
+            /**
+             * Create Report Script issued for your app by Atlassian JIRA
+             */
+            'request-feature-script' => '',
+            /**
+             * Collector id at the end of the above script
+             */
+            'request-feature-collector-id' => ''
+        ],
+
+        /**
+         * Set Google Analytics Id here. ID format that generates from
+         * creating tracker object should be
+         *
+         * UA-XXXXX-Y
+         *
+         * for it to be working correctly. Currently it is only set for
+         * sending pageviews.
+         */
+        'google-analytics-id' => ''
+    ]
+);

http://git-wip-us.apache.org/repos/asf/airavata/blob/cd34c55f/dev-tools/ansible/inventories/scigap/production/pga_config/ultrascan/vars.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/inventories/scigap/production/pga_config/ultrascan/vars.yml
b/dev-tools/ansible/inventories/scigap/production/pga_config/ultrascan/vars.yml
index 5b0c82f..a3886f6 100644
--- a/dev-tools/ansible/inventories/scigap/production/pga_config/ultrascan/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/production/pga_config/ultrascan/vars.yml
@@ -27,6 +27,8 @@ airavata_port: "8930"
 pga_repo: "https://git-wip-us.apache.org/repos/asf/airavata-php-gateway.git"
 # Keep Ultrascan PGA on 0.17 until gw153 gets updated/migrated
 git_branch: "branch-0.17"
+pga_config_template: "{{ inventory_dir }}/files/pga_config_0.17.php.j2"
+auth_verify_peer: "false"
 user: "pga"
 group: "pga"
 doc_root_dir: "/var/www/portals/{{ gateway_id }}"
@@ -38,7 +40,7 @@ ssl_certificate_chain_file: "/etc/pki/tls/certs/ultrascan_scigap_org_interm.cer"
 ssl_certificate_key_file: "/etc/pki/tls/private/ultrascan.scigap.key"
 
 ## Keycloak related variables
-tenant_domain: "{{ gateway_id }}"
+tenant_domain: "prod.ultrascan"
 admin_username: "uslimsadmin"
 admin_password: "{{ vault_admin_password }}"
 oauth_client_key: "{{ vault_oauth_client_key }}"

http://git-wip-us.apache.org/repos/asf/airavata/blob/cd34c55f/dev-tools/ansible/roles/pga/defaults/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/defaults/main.yml b/dev-tools/ansible/roles/pga/defaults/main.yml
index 9635bfc..e7b91f8 100644
--- a/dev-tools/ansible/roles/pga/defaults/main.yml
+++ b/dev-tools/ansible/roles/pga/defaults/main.yml
@@ -44,6 +44,7 @@ httpd_log_dir:
 
 pga_vhost_template: "pga-vhost.conf.j2"
 pga_ssl_vhost_template: "pga-ssl-vhost.conf.j2"
+pga_config_template: "pga_config.php.j2"
 
 ## WSO2 IS related variables
 tenant_domain: "prod.testdrive"

http://git-wip-us.apache.org/repos/asf/airavata/blob/cd34c55f/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 f13bc13..4eef7a7 100644
--- a/dev-tools/ansible/roles/pga/tasks/main.yml
+++ b/dev-tools/ansible/roles/pga/tasks/main.yml
@@ -97,7 +97,7 @@
 
 # step 6: Change pga configurations
 - name: Copy pga config file
-  template: src=pga_config.php.j2 dest="{{ doc_root_dir }}/app/config/pga_config.php" owner="{{user}}"
group="{{group}}"
+  template: src={{ pga_config_template }} dest="{{ doc_root_dir }}/app/config/pga_config.php"
owner="{{user}}" group="{{group}}"
   become: yes
 
 - name: Checkout the portal theme (if a custom theme is defined)


Mime
View raw message