-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class apache2::jk | ||
( | ||
$jkLogLevel = "error", | ||
$jkWorkerHost = "localhost", | ||
$jkWorkerPort = 8009 | ||
) | ||
{ | ||
include apache2::params | ||
|
||
validate_string( $jkLogLevel ) | ||
validate_string( $jkWorkerHost ) | ||
validate_string( $jkWorkerPort ) | ||
|
||
# install the package | ||
|
||
# include the module | ||
|
||
# write the config file | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<IfModule mod_jk.c> | ||
# Where to put jk logs | ||
JkLogFile /var/log/apache2/mod_jk_log | ||
|
||
# Set the jk log level [debug/error/info] | ||
JkLogLevel <%= @jkLogLevel %> | ||
|
||
# Select the log format | ||
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " | ||
|
||
# JkRequestLogFormat set the request format | ||
JkRequestLogFormat "%w %V %T" | ||
|
||
# JKShmFile | ||
JkShmFile /var/log/apache2/jk-runtime-status | ||
|
||
# JkOptions indicate to send SSL KEY SIZE, | ||
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories | ||
|
||
# JkWorkerProperty lines instead of worker.properties file | ||
|
||
# Define some properties | ||
JkWorkerProperty workers.apache_log=/var/log/apache2 | ||
JkWorkerProperty workers.tomcat_home=/usr/share/tomcat | ||
JkWorkerProperty workers.java_home=/etc/alternatives/jre | ||
JkWorkerProperty ps=/ | ||
|
||
# Define the loadbalancer worker | ||
JkWorkerProperty worker.list=localJvm1,status | ||
JkWorkerProperty worker.maintain=60 | ||
|
||
# Set properties for localJvm1 (ajp13) | ||
JkWorkerProperty worker.localJvm1.type=ajp13 | ||
JkWorkerProperty worker.localJvm1.host=<%= @jkWorkerHost %> | ||
JkWorkerProperty worker.localJvm1.port=<%= @jkWorkerPort %> | ||
JkWorkerProperty worker.localJvm1.socket_timeout=10 | ||
JkWorkerProperty worker.localJvm1.retries=3 | ||
JkWorkerProperty worker.localJvm1.lbfactor=50 | ||
|
||
# Set properties for the status worker | ||
JkWorkerProperty worker.status.type=status | ||
|
||
Include /etc/apache2/conf.d/jk.d/*.mount | ||
</IfModule> |