centos.pp 996 Bytes
Newer Older
1
class mod_security::centos inherits mod_security::base {
mh's avatar
mh committed
2
  apache::config::global{'mod_security.conf':
3
4
5
6
    source  => [  "puppet:///modules/site_mod_security/normal/${::fqdn}/mod_security.conf",
                  "puppet:///modules/site_mod_security/normal/${::domain}/mod_security.conf",
                  "puppet:///modules/site_mod_security/normal/mod_security.conf",
                  "puppet:///modules/mod_security/normal/${::operatingsystem}/mod_security.conf" ],
mh's avatar
mh committed
7
8
9
    require => Package['mod_security'],
    notify => Service['apache'],
  }
10
11

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

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