Puppet Class: apache_ext::mod::jk

Defined in:
manifests/mod/jk.pp

Overview

manage mod_jk

Parameters:

  • jkworkersfile (Any) (defaults to: '/etc/httpd/conf/workers.properties')
  • jklogfile (Any) (defaults to: '/var/log/httpd/mod_jk.log')
  • jkshmfile (Any) (defaults to: '/etc/httpd/logs/jk-runtime-status')
  • jkloglevel (Any) (defaults to: 'warning')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/mod/jk.pp', line 2

class apache_ext::mod::jk (
  $jkworkersfile = '/etc/httpd/conf/workers.properties',
  $jklogfile     = '/var/log/httpd/mod_jk.log',
  $jkshmfile     = '/etc/httpd/logs/jk-runtime-status',
  $jkloglevel    = 'warning',
) {
  apache::mod { 'jk':
    package => 'mod_jk',
  }

  file { 'jk.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/jk.conf",
    content => template('apache_ext/mod/jk.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}