Sha256: 236fde72976f0b95f3526dc83e8f44ae277e92feff231f4cb5e6bbba25dc4120
Contents?: true
Size: 1.64 KB
Versions: 20
Compression:
Stored size: 1.64 KB
Contents
# == Class: tomcat # # Class to manage installation and configuration of Tomcat. # # === Parameters # # [*catalina_home*] # The base directory for the Tomcat installation. # # [*user*] # The user to run Tomcat as. # # [*group*] # The group to run Tomcat as. # # [*manage_user*] # Boolean specifying whether or not to manage the user. Defaults to true. # # [*purge_connectors*] # Boolean specifying whether to purge all Connector elements from server.xml. Defaults to false. # # [*purge_realms*] # Boolean specifying whether to purge all Realm elements from server.xml. Defaults to false. # # [*manage_group*] # Boolean specifying whether or not to manage the group. Defaults to true. # class tomcat ( $catalina_home = $::tomcat::params::catalina_home, $user = $::tomcat::params::user, $group = $::tomcat::params::group, $install_from_source = true, $purge_connectors = false, $purge_realms = false, $manage_user = true, $manage_group = true, ) inherits ::tomcat::params { validate_bool($install_from_source) validate_bool($purge_connectors) validate_bool($purge_realms) validate_bool($manage_user) validate_bool($manage_group) case $::osfamily { 'windows','Solaris','Darwin': { fail("Unsupported osfamily: ${::osfamily}") } default: { } } if $install_from_source { file { $catalina_home: ensure => directory, owner => $user, group => $group, } } if $manage_user { user { $user: ensure => present, gid => $group } } if $manage_group { group { $group: ensure => present, } } }
Version data entries
20 entries across 20 versions & 1 rubygems