-
Notifications
You must be signed in to change notification settings - Fork 77
/
pillar.example
216 lines (211 loc) · 6.29 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
tomcat:
# The Tomcat version can be overridden like so.
# ver: 9
security: 'no'
# The Java home directory can be overridden like so.
# java_home: '/usr/lib/jvm/default-java'
# Any parameter you may pass to the java app, you can pass it here,
# without the preceding dash. The template builds the correct JAVA_OPTS
# line, adding the dash.
# Java's parameter don't follow a pattern (that I can see), so I think it's
# the best way to build the string of opts.
java_opts:
- 'Djava.awt.headless=true'
- 'Xmx128m'
- 'XX:MaxPermSize=256m'
# Change paths to correct locations
- 'Dlog4j.configuration=file:/tmp/log4j.properties'
- 'Dlogback.configurationFile=/tmp/logback.xml'
jsp_compiler: javac
logfile_days: 14
logfile_compress: 1
authbind: 'no'
expires_when: '2 weeks'
# important: false for Travis CI and maybe MacOS
service_running: false
limit:
soft: 64000
hard: 64000
connectors:
example_connector:
port: 8443
protocol: 'org.apache.coyote.http11.Http11Protocol'
connectionTimeout: 20000
URIEncoding: 'UTF-8'
redirectPort: 8443
maxHttpHeaderSize: 8192
maxThreads: 150
minSpareThreads: 25
enableLookups: 'false'
disableUploadTimeout: 'true'
acceptCount: 100
scheme: https
secure: 'true'
clientAuth: 'false'
sslProtocol: TLS
SSLEnabled: 'false'
# Change to realpath before setting "SSLEnabled: 'true'"
keystoreFile: '/path/to/keystoreFile'
keystorePass: 'somerandomtext'
sites:
# unique; used as salt ID and in template as `host_name` if
# `name` is not declared
example.com:
# for "Host name=" in server.xml. If not declared ID declaration will be used
name: 'tomcat-server'
appBase: ../webapps/myapp
path: ''
docBase: ../webapps/myapp
alias: www.example.com
host_parameters:
unpackWARs: "true"
autoDeploy: "true"
deployXML: "false"
reloadable: "true"
debug: 0
example.net:
appBase: ../webapps/myapp2
path: ''
docBase: ../webapps/myapp2
alias: www.example.net
host_parameters:
unpackWARs: "true"
autoDeploy: "true"
reloadable: "true"
debug: 0
valves:
- className: org.apache.catalina.valves.AccessLogValve
directory: logs
prefix: localhost_access_log.
fileDateFormat: yyyy-MM-dd-HH
suffix: .log
pattern: >-
%h %l %u %t "%m http://%v%U %H" %s %b
"%{Referer}i" "%{User-Agent}i" %D
- className: org.apache.catalina.authenticator.SingleSignOn
manager:
# This now supports multiple user acccounts and variable roles.
roles:
- manager-gui
- manager-script
- manager-jmx
- manager-status
users:
saltuser1:
passwd: RfgpE2iQwD
roles: manager-gui,manager-script,manager-jmx,manager-status
saltuser2:
passwd: RfgpE2iQwD
# Alternatively, roles can also be a list
roles:
- manager-gui
- manager-script
- manager-jmx
- manager-status
context:
# Let's you define multiple elements in the global context.xml file.
# The state does not try to be clever about the correctness of what you add here,
# just iterates over the dictionary of <Elements_types> and generates entries
# in the file. Ie, the lines below will generate:
#
# <Environment
# name="env.first"
# value="first.text"
# type="java.lang.String"
# override="true"
# />
# <Environment
# name="env.second"
# value="second.value"
# type="some.other.type"
# override="false"
# />
# <Listener
# className="org.apache.catalina.security.SecurityListener"
# />
# <Listener
# className="org.apache.catalina.core.AprLifecycleListener"
# SSLEngine="on"
# />
# <Resource
# name="jdbc/__postgres"
# auth="Container"
# type="javax.sql.DataSource"
# driverClassName="org.postgresql.Driver"
# url="jdbc:postgresql://db.server/dbname"
# username="dbuser"
# password="aycaramba!"
# maxActive="20"
# maxIdle="10"
# maxWait="-1"
# />
# <ResourceLink
# name="linkToGlobalResource"
# global="simpleValue"
# type="java.lang.Integer"
# />
Environment:
env.first:
name: env.first
value: first.text
type: java.lang.String
override: true
env.second:
name: env.second
value: second.value
type: some.other.type
override: false
Listener:
first:
className: org.apache.catalina.security.SecurityListener
second:
className: org.apache.catalina.core.AprLifecycleListener
SSLEngine: 'on'
Resource:
jdbc:
name: jdbc/__postgres
auth: Container
type: javax.sql.DataSource
driverClassName: org.postgresql.Driver
url: jdbc:postgresql://db.server/dbname
user: dbuser
password: aycaramba!
maxActive: 20
maxIdle: 10
maxWait: -1
ResourceLink:
any_name_here_will_be_ignored:
name: linkToGlobalResource
global: simpleValue
type: java.lang.Integer
other_contexts:
# will be available at 'tomcat.conf_dir/Catalina/localhost/context'
'other-contexts':
# parameters to the context itself.
params:
docBase: /path/to/webapp
debug: 1
reloadable: 'true'
crossContext: 'true'
# elements take the same form as the default 'context' section above.
elements:
Resource:
jdbc:
name: jdbc/__postgres
auth: Container
type: javax.sql.DataSource
driverClassName: org.postgresql.Driver
url: jdbc:postgresql://db.server/dbname
user: dbuser
password: aycaramba!
maxActive: 20
maxIdle: 10
maxWait: -1
Resources:
PostResources:
className: org.apache.catalina.webresources.DirResourceSet
base: "/var/lib/tomcat8/appconfig"
webAppMount: "/WEB-INF/classes"