Skip to content

Instantly share code, notes, and snippets.

@lak
Forked from anonymous/gist:64014
Created February 13, 2009 17:30
Show Gist options
  • Save lak/64023 to your computer and use it in GitHub Desktop.
Save lak/64023 to your computer and use it in GitHub Desktop.
# /etc/puppet/modules/tomcat/manifests
class tomcat6 {
# define your resource type
define configuration($loglevel_default = 'DEBUG', $loglevel_httpclientapache = 'DEBUG', $loglevel_httpclientwire = 'DEBUG', $loglevel_sportex = 'DEBUG', $loglevel_lus = 'DEBUG', $loglevel_apache = 'DEBUG', $loglevel_springframework = 'DEBUG', $loglevel_quartz = 'DEBUG', $loglevel_apachecxf = 'DEBUG') {
file { "/etc/tomcat6/log4j.properties": content => template("tomcat6/log4j_properties.erb") }
}
package { tomcat6: ensure => latest }
### user info
$user = 'tomcat'
$group = 'tomcat'
### ports
# if USE_KEYSTORE = 'TRUE' the following needs to be defined:
#
# keystoreFile="<%= keystore_file %>"
# keystorePass="<%= keystore_password %>"
# truststoreFile="<%= truststore_file %>"
# keystoreType="<%= keystore_type %>"
# truststorePass="<%= truststore_password %>"
# truststoreType="<%= truststore_type %>"
# clientAuth="<%= client_auth %>" sslProtocol="TLS"
# $shutdown_port = '8005',
# http_port => '8080',
# https_port => '8443',
# connection_timeout = '20000'
# max_threads = '150'
# USE_KEYSTORE = 'FALSE'
configuration { "/etc/tomcat6/log4j.properties": } # only using default values here
### default config files
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment