Puppet Class: apache::mod::reqtimeout

Defined in:
manifests/mod/reqtimeout.pp

Overview

Parameters:

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'manifests/mod/reqtimeout.pp', line 1

class apache::mod::reqtimeout (
  $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",
    content => template('apache/mod/reqtimeout.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}