Class tomcat::tomcat6
In: /etc/puppet/modules/tomcat/manifests/classes/tomcat6.pp
Parent:

Class: tomcat::tomcat6

Base class from which others inherit. It shouldn‘t be necessary to include it directly.

Class variables:

  • +$log4j_conffile+:: location of an alternate log4j.properties file. Default is puppet:///modules/tomcat/conf/log4j.rolling.properties

Resources

Resources

File["log4j.properties"]
   path => $catalina_home/conf/log4j.properties
   source => $::log4j_conffile ? { default => $::log4j_conffile, "" => "puppet:///modules/tomcat/conf/log4j.rolling.properties" }
   require => Package["tomcat6"]
File_line["tomcat6_environment_rule_1"]
   ensure => present
   path => "/etc/environment"
   line => TOMCAT_HOME=$tomcat_home
   require => File["log4j.properties"]

Verify that /etc/environment has the correct lines

File_line["tomcat6_environment_rule_2"]
   ensure => present
   path => "/etc/environment"
   line => CATALINA_OUT=$catalina_out
   require => File["log4j.properties"]

Verify that /etc/environment has the correct lines

File_line["tomcat6_environment_rule_3"]
   ensure => present
   path => "/etc/environment"
   line => CATALINA_HOME=$catalina_home
   require => File["log4j.properties"]

Verify that /etc/environment has the correct lines

File_line["tomcat6_environment_rule_4"]
   ensure => present
   path => "/etc/environment"
   line => "export TOMCAT_HOME CATALINA_OUT CATALINA_HOME"
   require => [File_line["tomcat6_environment_rule_1"], File_line["tomcat6_environment_rule_2"], File_line["tomcat6_environment_rule_3"]]

Verify that /etc/environment has the correct lines

Notify["tomcat_installed"]
   message => "installed tomcat"
   require => File_line["tomcat6_environment_rule_4"]
Package["liblog4j1.2-java", "libcommons-logging-java", "libtomcat6-java"]
   ensure => present
Package["tomcat6-common", "tomcat6"]
   ensure => present
   require => Package["liblog4j1.2-java", "libcommons-logging-java", "libtomcat6-java"]
Service["tomcat6"]
   ensure => running
   enable => true
   require => [Package["tomcat6"], Package["liblog4j1.2-java", "libcommons-logging-java"]]
User["tomcat"]
   ensure => present

[Validate]