Skip to content

Commit cc7b126

Browse files
authored
Merge pull request #6 from rhythmictech/support-symlinks
Adds support for symlinks
2 parents 191d9d1 + 935a5c6 commit cc7b126

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ tomcat_ajp_connector_options: ""
7474

7575
tomcat_contexts: []
7676

77+
tomcat_allow_root_symlinks: false
78+
7779
tomcat_global_context:
7880
jdbc_resources: []
7981

templates/catalina_base.conf.context.xml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<Context>
33
<WatchedResource>WEB-INF/web.xml</WatchedResource>
44

5+
{% if tomcat_allow_root_symlinks %}
6+
<Resources allowLinking="true" />
7+
{% endif %}
8+
59
{% for resource in tomcat_global_context['jdbc_resources'] %}
610
<Resource name="{{ resource.name }}" auth="Container" type="javax.sql.DataSource"
711
driverClassName="{{ resource.driverClassName }}"

0 commit comments

Comments
 (0)