Puppet Class: apache::mod::reqtimeout

Defined in:
manifests/mod/reqtimeout.pp

Summary

Installs and configures `mod_reqtimeout`.

Overview

Parameters:

  • timeouts (Variant[Array[String], String]) (defaults to: ['header=20-40,minrate=500', 'body=10,minrate=500'])

    List of timeouts and data rates for receiving requests.

See Also:



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/mod/reqtimeout.pp', line 9

class apache::mod::reqtimeout (
  Variant[Array[String], String] $timeouts = ['header=20-40,minrate=500', 'body=10,minrate=500']
) {
  include apache
  ::apache::mod { 'reqtimeout': }
  # Template uses no variables
  file { 'reqtimeout.conf':
    ensure  => file,
    path    => "${apache::mod_dir}/reqtimeout.conf",
    mode    => $apache::file_mode,
    content => template('apache/mod/reqtimeout.conf.erb'),
    require => Exec["mkdir ${apache::mod_dir}"],
    before  => File[$apache::mod_dir],
    notify  => Class['apache::service'],
  }
}