forked from ISTI-ansible-roles/ansible-roles
We need to install a templated web.xml for the dataminer app.
This commit is contained in:
parent
1b36211240
commit
c75648ffba
|
@ -15,6 +15,7 @@ dataminer_wps_extension: war
|
||||||
dataminer_wps_file: '{{ dataminer_wps_name }}-{{ dataminer_wps_version }}.{{ dataminer_wps_extension }}'
|
dataminer_wps_file: '{{ dataminer_wps_name }}-{{ dataminer_wps_version }}.{{ dataminer_wps_extension }}'
|
||||||
dataminer_wps_repository_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'
|
dataminer_wps_repository_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'
|
||||||
dataminer_wps_algorithms_svn: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms/
|
dataminer_wps_algorithms_svn: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms/
|
||||||
|
dataminer_wps_algorithms_dest: '{{ smartgears_user_home }}/wps_algorithms/algorithms'
|
||||||
|
|
||||||
dataminer_data_file_from_thredds: 'http://thredds.d4science.org/thredds/fileServer/public/netcdf/gebco_08_OCEANS_CLIMATOLOGY_METEOROLOGY_ATMOSPHERE_.nc'
|
dataminer_data_file_from_thredds: 'http://thredds.d4science.org/thredds/fileServer/public/netcdf/gebco_08_OCEANS_CLIMATOLOGY_METEOROLOGY_ATMOSPHERE_.nc'
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ dataminer_wps_file }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} creates={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/WEB-INF/lib
|
unarchive: copy=no src={{ smartgears_user_home }}/{{ dataminer_wps_file }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} creates={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/WEB-INF/lib
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
|
- name: Install the dataminer web.xml
|
||||||
|
template: src=web.xml.j2 dest={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/WEB-INF/lib/web.xml
|
||||||
|
notify: Restart smartgears
|
||||||
|
|
||||||
- name: Create a directory where to install the algorithms directory
|
- name: Create a directory where to install the algorithms directory
|
||||||
file: path={{ smartgears_user_home }}/wps_algorithms state=directory
|
file: path={{ smartgears_user_home }}/wps_algorithms state=directory
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,14 @@ set -o pipefail
|
||||||
INFRA_REFERENCE={{ dataminer_infra_reference }}
|
INFRA_REFERENCE={{ dataminer_infra_reference }}
|
||||||
ADD_ALGORITHM_DIR={{ smartgears_user_home }}/algorithmInstaller
|
ADD_ALGORITHM_DIR={{ smartgears_user_home }}/algorithmInstaller
|
||||||
ADD_ALGORITHM_PATH={{ smartgears_user_home }}/algorithmInstaller/addAlgorithm.sh
|
ADD_ALGORITHM_PATH={{ smartgears_user_home }}/algorithmInstaller/addAlgorithm.sh
|
||||||
ALGORITHMS_FILE={{ smartgears_user_home }}/wps_algorithms/algorithms/${INFRA_REFERENCE}/algorithms
|
ALGORITHMS_FILE={{ dataminer_wps_algorithms_dest }}/${INFRA_REFERENCE}/algorithms
|
||||||
OUT_DIR=$( mktemp -d -t algorithms-updater.XXXXXXXXXX )
|
OUT_DIR=$( mktemp -d -t algorithms-updater.XXXXXXXXXX )
|
||||||
ALGORITHMS_TEMP_SCRIPT=$OUT_DIR/add_algorithms
|
ALGORITHMS_TEMP_SCRIPT=$OUT_DIR/add_algorithms
|
||||||
LOG_DIR={{ smartgears_user_home }}/wps_algorithms_install_log/
|
LOG_DIR={{ smartgears_user_home }}/wps_algorithms_install_log/
|
||||||
LOG_FILE=${LOG_DIR}/algorithms_updater.log
|
LOG_FILE=${LOG_DIR}/algorithms_updater.log
|
||||||
ALGORITHMS_INSTALLED_FILE=${LOG_DIR}/already_installed_algorithms.txt
|
ALGORITHMS_INSTALLED_FILE=${LOG_DIR}/already_installed_algorithms.txt
|
||||||
LOCK_FILE=${LOG_DIR}/.algorithms_updater.lock
|
LOCK_FILE=${LOG_DIR}/.algorithms_updater.lock
|
||||||
ALGO_DIR={{ smartgears_user_home }}/wps_algorithms/algorithms
|
ALGO_DIR={{ dataminer_wps_algorithms_dest }}
|
||||||
RUNNING_JOB=
|
RUNNING_JOB=
|
||||||
RUNNING_JOB_RETVAL=
|
RUNNING_JOB_RETVAL=
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
||||||
|
version="2.4">
|
||||||
|
<display-name>52°North Web Processing Service, Git:
|
||||||
|
1665e1b7b2188755161d4f0f3a6acf562d0444e1 @ 2015-03-21 00:30:20
|
||||||
|
</display-name>
|
||||||
|
<description>A web processing framework supporting the OGC WPS 1.0.0 specification</description>
|
||||||
|
|
||||||
|
<context-param>
|
||||||
|
<param-name>algorithmDirectory</param-name>
|
||||||
|
<param-value>{{ dataminer_wps_algorithms_dest }}</param-value>
|
||||||
|
</context-param>
|
||||||
|
|
||||||
|
<!-- security-constraint> <web-resource-collection> <web-resource-name>My
|
||||||
|
JSP</web-resource-name> <url-pattern>/webAdmin/index.jsp</url-pattern> <http-method>GET</http-method>
|
||||||
|
<http-method>POST</http-method> </web-resource-collection> <auth-constraint>
|
||||||
|
<role-name>wpsAdmin</role-name> </auth-constraint> <user-data-constraint>
|
||||||
|
<transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint -->
|
||||||
|
<!-- /security-constraint> <login-config> <auth-method>BASIC</auth-method>
|
||||||
|
<realm-name>Basic Authentication</realm-name> </login-config> <Security roles
|
||||||
|
referenced by this web application -->
|
||||||
|
<!-- >security-role> <description>The role that is required to log in to
|
||||||
|
the Manager Application</description> <role-name>manager</role-name> </security-role -->
|
||||||
|
|
||||||
|
<!--filter> <filter-name>CommunicationSizeLogFilter</filter-name> <filter-class>org.n52.wps.server.CommunicationSizeLogFilter</filter-class>
|
||||||
|
</filter -->
|
||||||
|
<!--filter> <filter-name>CompressingFilter</filter-name> <filter-class>com.planetj.servlet.filter.compression.CompressingFilter</filter-class>
|
||||||
|
<init-param> <param-name>debug</param-name> <param-value>false</param-value>
|
||||||
|
</init-param> <init-param> <param-name>statsEnabled</param-name> <param-value>true</param-value>
|
||||||
|
</init-param> </filter> <filter-mapping> <filter-name>CompressingFilter</filter-name>
|
||||||
|
<url-pattern>/WebProcessingService</url-pattern> </filter-mapping -->
|
||||||
|
<!-->filter-mapping> <filter-name>CommunicationSizeLogFilter</filter-name>
|
||||||
|
<url-pattern>/WebProcessingService</url-pattern> </filter-mapping -->
|
||||||
|
|
||||||
|
<!-- <filter> <filter-name>ResponseURLFilter</filter-name> <filter-class>org.n52.wps.server.ResponseURLFilter</filter-class>
|
||||||
|
</filter> <filter-mapping> <filter-name>ResponseURLFilter</filter-name> <url-pattern>*</url-pattern>
|
||||||
|
</filter-mapping> -->
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>wpsServlet</servlet-name>
|
||||||
|
<servlet-class>org.gcube.data.analysis.wps.WebProcessingService</servlet-class>
|
||||||
|
<!--<servlet-class>org.n52.wps.server.WebProcessingService</servlet-class> -->
|
||||||
|
<load-on-startup>0</load-on-startup>
|
||||||
|
<init-param>
|
||||||
|
<param-name>wps.config.file</param-name>
|
||||||
|
<param-value>config/wps_config.xml</param-value>
|
||||||
|
</init-param>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>cancelComputationServlet</servlet-name>
|
||||||
|
<servlet-class>org.gcube.data.analysis.wps.CancelComputation</servlet-class>
|
||||||
|
<load-on-startup>1</load-on-startup>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>retrieveResultServlet</servlet-name>
|
||||||
|
<servlet-class>org.n52.wps.server.RetrieveResultServlet</servlet-class>
|
||||||
|
<load-on-startup>1</load-on-startup>
|
||||||
|
</servlet>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>wpsServlet</servlet-name>
|
||||||
|
<url-pattern>/WebProcessingService</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>retrieveResultServlet</servlet-name>
|
||||||
|
<url-pattern>/RetrieveResultServlet</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>cancelComputationServlet</servlet-name>
|
||||||
|
<url-pattern>/CancelComputationServlet</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<welcome-file-list>
|
||||||
|
<welcome-file>/index.html</welcome-file>
|
||||||
|
</welcome-file-list>
|
||||||
|
|
||||||
|
<!-- 52n Security -->
|
||||||
|
<context-param>
|
||||||
|
<param-name>security.config.validation</param-name>
|
||||||
|
<param-value>false</param-value>
|
||||||
|
<!--description> disables validation of the security-config.xml this is
|
||||||
|
necessary because the MavenProject: org.n52.wps:52n-wps-webapp:3.3.0-SNAPSHOT
|
||||||
|
@ D:\dev\GitHub4w\WPS\52n-wps-webapp\pom.xml mechanism works only if the
|
||||||
|
validation is disabled. </description -->
|
||||||
|
</context-param>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<filter-name>CORS</filter-name>
|
||||||
|
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
|
||||||
|
<init-param>
|
||||||
|
<param-name>cors.allowOrigin</param-name>
|
||||||
|
<param-value>*</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>cors.allowGenericHttpRequests</param-name>
|
||||||
|
<param-value>true</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>cors.supportedMethods</param-name>
|
||||||
|
<param-value>GET, POST, HEAD, PUT, DELETE, OPTIONS</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>cors.supportedHeaders</param-name>
|
||||||
|
<param-value>*</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>cors.exposedHeaders</param-name>
|
||||||
|
<param-value>*</param-value>
|
||||||
|
</init-param>
|
||||||
|
</filter>
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>CORS</filter-name>
|
||||||
|
<url-pattern>/*</url-pattern>
|
||||||
|
</filter-mapping>
|
||||||
|
|
||||||
|
<!-- <filter> <filter-name>authn</filter-name> -->
|
||||||
|
<!-- display-name>Authentication Chain Filter</display-name -->
|
||||||
|
<!-- description> Delegates calls to AuthenticationChainFilter that is defined
|
||||||
|
in the security-config. </description -->
|
||||||
|
<!-- <filter-class>org.n52.security.service.config.support.SecurityConfigDelegatingServletFilter</filter-class>
|
||||||
|
</filter> <filter-mapping> <filter-name>authn</filter-name> <url-pattern>/webAdmin/*</url-pattern>
|
||||||
|
</filter-mapping> <listener> <listener-class>org.n52.security.service.config.support.SecurityConfigContextListener</listener-class>
|
||||||
|
</listener> -->
|
||||||
|
|
||||||
|
</web-app>
|
Loading…
Reference in New Issue