Puppet Class: tomcat::install

Defined in:
manifests/install.pp

Overview

Class: tomcat::install

This class is a wrapper to install tomcat either from packages or archive



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
# File 'manifests/install.pp', line 5

class tomcat::install {
  # The base class must be included first
  if !defined(Class['tomcat']) {
    fail('You must include the tomcat base class before using any tomcat sub class')
  }

  case $::tomcat::install_from {
    'package' : { contain tomcat::install::package }
    default   : { contain tomcat::install::archive }
  }

  # tomcat native library
  if $::tomcat::tomcat_native {
    package { 'tomcat native library':
      ensure => present,
      name   => $::tomcat::tomcat_native_package_name
    }
  }

  # log4j library
  if $::tomcat::log4j {
    package { 'tomcat log4j library':
      ensure => present,
      name   => $::tomcat::log4j_package_name
    }
  }
}