Puppet Class: tomcat

Defined in:
manifests/init.pp

Summary

Class to manage installation and configuration of Tomcat.

Overview

Parameters:

  • catalina_home (Any) (defaults to: '/opt/apache-tomcat')

    Specifies the default root directory of the Tomcat installation. Valid options: a string containing an absolute path.

  • user (Any) (defaults to: 'tomcat')

    Specifies a default user to run Tomcat as. Valid options: a string containing a valid username.

  • group (Any) (defaults to: 'tomcat')

    Specifies a default group to run Tomcat as. Valid options: a string containing a valid group name.

  • purge_connectors (Boolean) (defaults to: false)

    Specifies whether to purge any unmanaged Connector elements that match defined protocol but have a different port from the configuration file by default.

  • purge_realms (Boolean) (defaults to: false)

    Specifies whether to purge any unmanaged realm elements from the configuration file by default. If two realms are defined for a specific server config only use ‘purge_realms` for the first realm and ensure the realms enforce a strict order between each other.

  • manage_user (Boolean) (defaults to: true)

    Determines whether defined types should default to creating the specified user, if it doesn’t exist. Uses Puppet’s native [user](docs.puppetlabs.com/references/latest/type.html#user) with default parameters.

  • manage_group (Boolean) (defaults to: true)

    Determines whether defined types should default to creating the specified group, if it doesn’t exist. Uses Puppet’s native [group](docs.puppetlabs.com/references/latest/type.html#group) with default parameters.

  • manage_home (Boolean) (defaults to: true)

    Specifies the default value of ‘manage_home` for all `tomcat::instance` instances.

  • manage_base (Boolean) (defaults to: true)

    Specifies the default value of ‘manage_base` for all `tomcat::install` instances.

  • manage_properties (Boolean) (defaults to: true)

    Specifies the default value of ‘manage_properties` for all `tomcat::instance` instances.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/init.pp', line 24

class tomcat (
  $catalina_home             = '/opt/apache-tomcat',
  $user                      = 'tomcat',
  $group                     = 'tomcat',
  Boolean $purge_connectors  = false,
  Boolean $purge_realms      = false,
  Boolean $manage_user       = true,
  Boolean $manage_group      = true,
  Boolean $manage_home       = true,
  Boolean $manage_base       = true,
  Boolean $manage_properties = true,
) {

  case $::osfamily {
    'windows','Solaris','Darwin': {
      fail("Unsupported osfamily: ${::osfamily}")
    }
    default: { }
  }
}