Puppet Class: apache::mod::ext_filter

Defined in:
manifests/mod/ext_filter.pp

Summary

Installs and configures `mod_ext_filter`.

Overview

Examples:

class { 'apache::mod::ext_filter':
  ext_filter_define => {
    'slowdown'       => 'mode=output cmd=/bin/cat preservescontentlength',
    'puppetdb-strip' => 'mode=output outtype=application/json cmd="pdb-resource-filter"',
  },
}

Parameters:

  • ext_filter_define (Optional[Hash]) (defaults to: undef)

    Hash of filter names and their parameters.

See Also:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'manifests/mod/ext_filter.pp', line 17

class apache::mod::ext_filter (
  Optional[Hash] $ext_filter_define = undef
) {
  include apache

  ::apache::mod { 'ext_filter': }

  # Template uses
  # -$ext_filter_define

  if $ext_filter_define {
    file { 'ext_filter.conf':
      ensure  => file,
      path    => "${apache::mod_dir}/ext_filter.conf",
      mode    => $apache::file_mode,
      content => epp('apache/mod/ext_filter.conf.epp', { 'ext_filter_define' => $ext_filter_define, }),
      require => [Exec["mkdir ${apache::mod_dir}"],],
      before  => File[$apache::mod_dir],
      notify  => Class['Apache::Service'],
    }
  }
}