catalina-app-conf: Simple role that installs a custom catalina app configuration.
This commit is contained in:
parent
5b50d86b9e
commit
e68e5a6fee
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the catalina webapp configurations
|
||||
template: src=catalina-app-conf.xml.j2 dest={{ smartgears_instance_path }}/conf/Catalina/localhost/{{ item.app_name }}.xml
|
||||
with_items: '{{ catalina_apps_conf }}'
|
||||
when: ( item.state | default(True) )
|
||||
|
||||
- name: Remove the catalina webapp configurations
|
||||
file: dest={{ smartgears_instance_path }}/conf/Catalina/localhost/{{ item.app_name }}.xml state=absent
|
||||
with_items: '{{ catalina_apps_conf }}'
|
||||
when: ( not item.state | default(True) )
|
||||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: catalina_apps_conf is defined
|
||||
tags: [ 'smartgears', 'tomcat', 'catalina_apps' ]
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Context reloadable="true">
|
||||
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
|
||||
virtualClasspath="{{ smartgears_instance_path }}/webapps/{{ item.app_name }}/WEB-INF/lib/plugins/{{ item.plugin_name }}/*.jar"/>
|
||||
</Context>
|
||||
|
Loading…
Reference in New Issue