centos.pp 644 Bytes
Newer Older
1
class mod_security::centos inherits mod_security::base {
mh's avatar
mh committed
2
  apache::config::global{'mod_security.conf':
mh's avatar
mh committed
3
    source => "modules/mod_security/normal/${::operatingsystem}/mod_security.conf",
mh's avatar
mh committed
4
5
6
    require => Package['mod_security'],
    notify => Service['apache'],
  }
mh's avatar
mh committed
7
8
9
  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
10
11
                true => 'present',
                default => 'absent'
mh's avatar
mh committed
12
13
14
15
16
    },
    require => Package['mod_security'],
    notify => Service['apache'],
    owner => root, group => 0, mode => 0644;
  }
17
}