forked from ISTI-ansible-roles/ansible-roles
d4science-ghn-cluster: The geoserver spatial servers now use the datatransfer that comes with the smartgears distribution.
library/roles/smartgears/data-transfer-service: Not needed anymore. library/roles/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2: Enable the data-transfer-service reverse proxy when requested.
This commit is contained in:
parent
7b8f4b7950
commit
b5086d02c9
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
data_transfer_service_install: False
|
|
||||||
data_transfer_service_version: 1.2.1-4.3.0-141906
|
|
||||||
data_transfer_service_name: data-transfer-service
|
|
||||||
data_transfer_group_id: org.gcube.data.transfer
|
|
||||||
data_transfer_extension: war
|
|
||||||
data_transfer_service_file: '{{ data_transfer_service_name }}-{{ data_transfer_service_version }}.{{ data_transfer_extension }}'
|
|
||||||
data_transfer_service_repository_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Remove the old data transfer files
|
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ data_transfer_service_name }} state=absent
|
|
||||||
|
|
||||||
become: True
|
|
||||||
become_user: '{{ d4science_user }}'
|
|
||||||
when: ( not data_transfer_service_install ) or ( smartgears_upgrade )
|
|
||||||
tags: [ 'smartgears', 'data_transfer_service', 'tomcat' ]
|
|
||||||
|
|
||||||
- block:
|
|
||||||
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
|
||||||
- name: Get the data-transfer-service war
|
|
||||||
maven_artifact: artifact_id={{ data_transfer_service_name }} version={{ data_transfer_service_version | default(omit) }} group_id={{ data_transfer_group_id }} extension={{ data_transfer_extension | default('war') }} repository_url={{ data_transfer_service_repository_url }} dest={{ smartgears_user_home }}/{{ data_transfer_service_file }}
|
|
||||||
|
|
||||||
- name: Create the data trasfer working directory
|
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ data_transfer_service_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
|
||||||
|
|
||||||
- name: Unarchive the data_transfer_service war
|
|
||||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ data_transfer_service_file }} dest={{ smartgears_instance_path }}/webapps/{{ data_transfer_service_name }} creates={{ smartgears_instance_path }}/webapps/{{ data_transfer_service_name }}/WEB-INF/lib
|
|
||||||
notify: Restart smartgears
|
|
||||||
|
|
||||||
become: True
|
|
||||||
become_user: '{{ d4science_user }}'
|
|
||||||
when: data_transfer_service_install
|
|
||||||
tags: [ 'smartgears', 'data_transfer_service', 'tomcat' ]
|
|
|
@ -6,3 +6,4 @@ smartgears_install_generic_virthost: True
|
||||||
#smartgears_nginx_serveraliases:
|
#smartgears_nginx_serveraliases:
|
||||||
smartgears_nginx_cors_enabled: False
|
smartgears_nginx_cors_enabled: False
|
||||||
nginx_cors_acl_origin: ''
|
nginx_cors_acl_origin: ''
|
||||||
|
data_transfer_service_install: False
|
||||||
|
|
|
@ -70,7 +70,15 @@ server {
|
||||||
{% if smartgears_nginx_cors_enabled %}
|
{% if smartgears_nginx_cors_enabled %}
|
||||||
include /etc/nginx/snippets/nginx-cors.conf;
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_pass http://localhost:{{ item.http_port }}{{ smart_executor_context }};
|
proxy_pass http://localhost:{{ smartgears_http_port }}{{ smart_executor_context }};
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if data_transfer_service_install %}
|
||||||
|
location /data-transfer-service {
|
||||||
|
{% if smartgears_nginx_cors_enabled %}
|
||||||
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
|
{% endif %}
|
||||||
|
proxy_pass http://localhost:{{ smartgears_http_port }}/data-transfer-service;
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if rstudio_install_server is defined and rstudio_install_server %}
|
{% if rstudio_install_server is defined and rstudio_install_server %}
|
||||||
|
@ -165,7 +173,15 @@ server {
|
||||||
{% if smartgears_nginx_cors_enabled %}
|
{% if smartgears_nginx_cors_enabled %}
|
||||||
include /etc/nginx/snippets/nginx-cors.conf;
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_pass http://localhost:{{ item.http_port }}{{ smart_executor_context }};
|
proxy_pass http://localhost:{{ smartgears_http_port }}{{ smart_executor_context }};
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if data_transfer_service_install %}
|
||||||
|
location /data-transfer-service {
|
||||||
|
{% if smartgears_nginx_cors_enabled %}
|
||||||
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
|
{% endif %}
|
||||||
|
proxy_pass http://localhost:{{ smartgears_http_port }}/data-transfer-service;
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if rstudio_install_server is defined and rstudio_install_server %}
|
{% if rstudio_install_server is defined and rstudio_install_server %}
|
||||||
|
|
Loading…
Reference in New Issue