Created
February 13, 2009 16:53
-
-
Save lak/63999 to your computer and use it in GitHub Desktop.
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
/etc/puppet/modules/tomcat6. | |
manifests | |
init.pp | |
templates | |
log4j_properties.erb | |
# log4j_properties.erb contains | |
log4j.logger.org.apache.commons.httpclient = <%= loglevel_default %> | |
# /etc/puppet/modules/tomcat6/manifests/init.pp | |
class tomcat6 { | |
define configuration($tomcat_loglevel) { | |
file { $name: content => template("tomcat6/server_xml.erb") } | |
} | |
package { tomcat6: ensure => latest } | |
$user = 'tomcat' | |
$group = 'root' | |
$loglevel_default = 'DEBUG' | |
configuration { "/etc/tomcat6/server.xml": tomcat_loglevel => 'DEBUG' } | |
} | |
/etc/puppet/modules/app-1. | |
manifests | |
init.pp | |
# /etc/puppet/modules/app-1/manifests/init.pp | |
class app-1 { | |
} | |
class newtomcat inherits tomcat6 { | |
Configuration["/etc/tomcat6/log4j.properties"] { tomcat_loglevel => 'WARN' } | |
} | |
# my modules.pp | |
import "tomcat6" | |
import "app-1" | |
# my node.pp | |
node 'server1.internal.server' { | |
include app-1 | |
include newtomcat | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment