forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/dataminer_app: Install the catalina configuration to extend the classpath.
This commit is contained in:
parent
2f4d7656be
commit
9c36221e11
|
@ -31,6 +31,11 @@
|
|||
template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
|
||||
- name: Install the catalina additional configuration
|
||||
template: src={{ dataminer_wps_name }}.xml.j2 dest={{ item.instance_path }}/conf/Catalina/localhost/{{ dataminer_wps_name }}.xml
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
notify: Restart smartgears
|
||||
|
||||
- name: Fix the WPS config file
|
||||
shell: /usr/local/bin/wps-config-fixer
|
||||
# notify: Restart smartgears
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<Context path="/{{ dataminer_wps_name }}" reloadable="true">
|
||||
<!-- http://tomcat.apache.org/tomcat-7.0-doc/config/context.html -->
|
||||
<Loader className="org.apache.catalina.loader.VirtualWebappLoader" searchVirtualFirst="true"
|
||||
virtualClasspath="{{ smartgears_user_home }}/wps_algorithms/algorithms/*.jar"/>
|
||||
<JarScanner scanAllDirectories="true"/>
|
||||
</Context>
|
Loading…
Reference in New Issue