../library/roles/smartgears/dm_pool_manager/tasks/main.yml add task for managing web.xml file
../library/roles/smartgears/dm_pool_manager/templates/web.xml.j2 add web.xml template file
This commit is contained in:
parent
e4c251cdb2
commit
04a116f78d
|
@ -14,6 +14,9 @@
|
|||
- name: Unarchive the dm_pool_manager war
|
||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ dm_pool_manager_file }} dest={{ smartgears_instance_path }}/webapps/{{ dm_pool_manager_name }} creates={{ smartgears_instance_path }}/webapps/{{ dm_pool_manager_name }}/WEB-INF/lib
|
||||
|
||||
- name: Install the dm-pool-manager web.xml template
|
||||
template: src=web.xml.j2 dest={{ smartgears_instance_path }}/webapps/dataminer-pool-manager/WEB-INF/web.xml mode=0440
|
||||
|
||||
- name: Ensures conf dir exists
|
||||
file: path={{ item.user_home }}/dataminer-pool-manager/dpmConfig state=directory recurse=true
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE web-app PUBLIC
|
||||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||
"http://java.sun.com/dtd/web-app_2_3.dtd" >
|
||||
|
||||
<web-app>
|
||||
<display-name>Archetype Created Web Application</display-name>
|
||||
|
||||
<context-param>
|
||||
<param-name>Environment</param-name>
|
||||
{% if prod_instance %}
|
||||
<param-value>Prod</param-value>
|
||||
{% else %}
|
||||
<param-value>Dev</param-value>
|
||||
{% endif %}
|
||||
<!-- Possible Values: Dev, Proto, Prod -->
|
||||
<description>This is a context parameter example</description>
|
||||
</context-param>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>REST-API</servlet-name>
|
||||
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
|
||||
<init-param>
|
||||
<param-name>jersey.config.server.provider.packages</param-name>
|
||||
<param-value>
|
||||
io.swagger.jaxrs.listing,
|
||||
org.gcube.dataanalysis.dataminer.poolmanager.rest</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>REST-API</servlet-name>
|
||||
<url-pattern>/api/*</url-pattern>
|
||||
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <servlet> <servlet-name>Jersey2Config</servlet-name> <servlet-class>io.swagger.jersey.config.JerseyJaxrsConfig</servlet-class>
|
||||
<init-param> <param-name>api.version</param-name> <param-value>1.0.0</param-value>
|
||||
</init-param> <init-param> <param-name>swagger.api.basepath</param-name>
|
||||
<param-value>http://localhost:8080/api</param-value> </init-param> <load-on-startup>2</load-on-startup>
|
||||
</servlet> -->
|
||||
|
||||
|
||||
|
||||
<!-- <security-constraint> <web-resource-collection> <web-resource-name>Viewpoint
|
||||
Secure URLs</web-resource-name> <url-pattern>/api/*</url-pattern> </web-resource-collection>
|
||||
<user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee>
|
||||
</user-data-constraint> </security-constraint> -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</web-app>
|
Loading…
Reference in New Issue