view modules/apache/manifests/mod/reqtimeout.pp @ 76:a11219498f19 puppet-3.6

Do it properly and put a path in our cron job
author IBBoard <dev@ibboard.co.uk>
date Mon, 26 Oct 2015 08:46:22 +0000
parents 37675581a273
children 675c1cc61eaf
line wrap: on
line source

class apache::mod::reqtimeout (
  $timeouts = ['header=20-40,minrate=500', 'body=10,minrate=500']
){
  ::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'],
  }
}