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 2021/08/04 20:26:24 UTC

[airavata] 01/02: AIRAVATA-3420 Ansible: updates to refactored USER_STORAGES setting

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

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 4eb447622c6b395c43270b17a658e78b952f7728
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Aug 4 13:56:38 2021 -0400

    AIRAVATA-3420 Ansible: updates to refactored USER_STORAGES setting
---
 .../ansible/roles/django/templates/settings_local.py.j2    | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/dev-tools/ansible/roles/django/templates/settings_local.py.j2 b/dev-tools/ansible/roles/django/templates/settings_local.py.j2
index 90e5bda..5fc1d1f 100644
--- a/dev-tools/ansible/roles/django/templates/settings_local.py.j2
+++ b/dev-tools/ansible/roles/django/templates/settings_local.py.j2
@@ -120,9 +120,17 @@ AIRAVATA_API_SECURE = True
 AIRAVATA_API_PORT = {{ api_server_port }}
 AIRAVATA_API_SECURE = False
 {% endif %}
-GATEWAY_DATA_STORE_RESOURCE_ID = '{{ gateway_data_store_resource_id }}'
-GATEWAY_DATA_STORE_DIR = '{{ experiment_data_dir }}'
-GATEWAY_DATA_STORE_HOSTNAME = '{{ gateway_data_store_hostname }}'
+
+USER_STORAGES = {
+    'default': {
+        'BACKEND': 'airavata_django_portal_sdk.user_storage.backends.DjangoFileSystemProvider',
+        'STORAGE_RESOURCE_ID': '{{ gateway_data_store_resource_id }}',
+        'OPTIONS': {
+            'directory': '{{ experiment_data_dir }}',
+        }
+    }
+}
+
 FILE_UPLOAD_TEMP_DIR = "{{ file_upload_tmp_dir }}"
 
 # Profile Service Configuration