diff --git a/smartgears/resource_registry/defaults/main.yml b/smartgears/resource_registry/defaults/main.yml index c0ed4873..893d6e40 100644 --- a/smartgears/resource_registry/defaults/main.yml +++ b/smartgears/resource_registry/defaults/main.yml @@ -6,3 +6,6 @@ resource_registry_name: resource-registry resource_registry_extension: war resource_registry_file: '{{ resource_registry_name }}-{{ resource_registry_version }}.{{ resource_registry_extension }}' resource_registry_group_id: org.gcube.information-system + +resource_registry_db_key_filename: '{{ orientdb_db_name }}.key' +resource_registry_db_key_algorithm: 'AES' \ No newline at end of file diff --git a/smartgears/resource_registry/tasks/main.yml b/smartgears/resource_registry/tasks/main.yml index 52503214..ad31598a 100644 --- a/smartgears/resource_registry/tasks/main.yml +++ b/smartgears/resource_registry/tasks/main.yml @@ -36,6 +36,10 @@ template: src=config.properties.j2 dest={{ smartgears_instance_path }}/webapps/{{ resource_registry_name }}/WEB-INF/classes/config.properties mode=0440 notify: Restart smartgears + - name: Install the resource registry DB key + file: dest={{ smartgears_instance_path }}/webapps/{{ resource_registry_name }}/WEB-INF/classes/{{ }} mode=0440 + notify: Restart smartgears + become: True become_user: '{{ d4science_user }}' tags: [ 'smartgears', 'resource_registry', 'tomcat' ] diff --git a/smartgears/resource_registry/templates/config.properties.j2 b/smartgears/resource_registry/templates/config.properties.j2 index 816706d0..fca85324 100644 --- a/smartgears/resource_registry/templates/config.properties.j2 +++ b/smartgears/resource_registry/templates/config.properties.j2 @@ -15,4 +15,7 @@ DEFAULT_ADMIN_PASSWORD={{ orientdb_default_admin_password }} CHANGED_ADMIN_PASSWORD={{ orientdb_admin_password }} DEFAULT_CREATED_WRITER_USER_PASSWORD={{ orientdb_writer_password }} -DEFAULT_CREATED_READER_USER_PASSWORD={{ orientdb_reader_password }} \ No newline at end of file +DEFAULT_CREATED_READER_USER_PASSWORD={{ orientdb_reader_password }} + +DB_KEY_FILENAME={{ resource_registry_db_key_filename }} +DB_KEY_ALGORITHM={{ resource_registry_db_key_algorithm }} \ No newline at end of file