centos.pp 712 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'],
  }
7
8

  package{'mod_security_crs': }
mh's avatar
mh committed
9
  if $mod_security::crs_ruleset {
10
11
12
13
14
15
16
17
18
19
    Package['mod_security_crs']{
      ensure => present,
    }
  } else {
    Package['mod_security_crs']{
      ensure => absent,
    }
  }

  package{'mod_security_crs-extras': }
mh's avatar
mh committed
20
  if $mod_security::crs_extras_ruleset {
21
22
23
24
25
26
27
28
    Package['mod_security_crs-extras']{
      ensure => present,
    }
  } else {
    Package['mod_security_crs-extras']{
      ensure => absent,
    }
  }
29
}