32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'manifests/mod/status.pp', line 32
class apache::mod::status (
Optional[Variant[String, Array, Hash]] $requires = undef,
Enum['On', 'Off', 'on', 'off'] $extended_status = 'On',
String $status_path = '/server-status',
) inherits apache::params {
include apache
::apache::mod { 'status': }
$requires_defaults = 'ip 127.0.0.1 ::1'
# Template uses $extended_status, $status_path
file { 'status.conf':
ensure => file,
path => "${apache::mod_dir}/status.conf",
mode => $apache::file_mode,
content => template('apache/mod/status.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
notify => Class['apache::service'],
}
}
|