author | ymh <ymh.work@gmail.com> |
Fri, 15 Jan 2016 15:35:00 +0100 | |
changeset 28 | b0b56e0f8c7f |
permissions | -rw-r--r-- |
28 | 1 |
class apache::mod::reqtimeout ( |
2 |
$timeouts = ['header=20-40,minrate=500', 'body=10,minrate=500'] |
|
3 |
){ |
|
4 |
::apache::mod { 'reqtimeout': } |
|
5 |
# Template uses no variables |
|
6 |
file { 'reqtimeout.conf': |
|
7 |
ensure => file, |
|
8 |
path => "${::apache::mod_dir}/reqtimeout.conf", |
|
9 |
content => template('apache/mod/reqtimeout.conf.erb'), |
|
10 |
require => Exec["mkdir ${::apache::mod_dir}"], |
|
11 |
before => File[$::apache::mod_dir], |
|
12 |
notify => Class['apache::service'], |
|
13 |
} |
|
14 |
} |