centos.pp 437 Bytes
Newer Older
1
class mod_security::centos inherits mod_security::base {
mh's avatar
mh committed
2
3
4
  file{'/etc/httpd/modsecurity.d/customrules/optional_rules.conf':
    content => "Include modsecurity.d/optional_rules/*.conf\n",
    ensure => $mod_security_optional_rules ? {
mh's avatar
mh committed
5
6
                true => 'present',
                default => 'absent'
mh's avatar
mh committed
7
8
9
10
11
    },
    require => Package['mod_security'],
    notify => Service['apache'],
    owner => root, group => 0, mode => 0644;
  }
12
}