File: dumpio.pp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
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
32
33
34
35
36
37
38
# @summary
#   Installs and configures `mod_dumpio`.
# 
# @param dump_io_input
#   Dump all input data to the error log
#
# @param dump_io_output
#   Dump all output data to the error log
#
# @example
#   class{'apache':
#     default_mods => false,
#     log_level    => 'dumpio:trace7',
#   }
#   class{'apache::mod::dumpio':
#     dump_io_input  => 'On',
#     dump_io_output => 'Off',
#   }
#
# @see https://httpd.apache.org/docs/current/mod/mod_dumpio.html for additional documentation.
#
class apache::mod::dumpio (
  Apache::OnOff $dump_io_input  = 'Off',
  Apache::OnOff $dump_io_output = 'Off',
) {
  include apache

  ::apache::mod { 'dumpio': }
  file { 'dumpio.conf':
    ensure  => file,
    path    => "${apache::mod_dir}/dumpio.conf",
    mode    => $apache::file_mode,
    content => epp('apache/mod/dumpio.conf.epp', { 'dump_io_input' => $dump_io_input, 'dump_io_output' => $dump_io_output, }),
    require => Exec["mkdir ${apache::mod_dir}"],
    before  => File[$apache::mod_dir],
    notify  => Class['apache::service'],
  }
}