centos.pp 1.2 KB
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
    source  => [  "puppet:///modules/site_mod_security/normal/${::fqdn}/mod_security.conf",
                  "puppet:///modules/site_mod_security/normal/${::domain}/mod_security.conf",
5
                  "puppet:///modules/site_mod_security/normal/${::operatingsystem}.${::lsbmajdistrelease}/mod_security.conf",
mh's avatar
mh committed
6
                  "puppet:///modules/site_mod_security/normal/${::operatingsystem}/mod_security.conf",
7
8
                  "puppet:///modules/site_mod_security/normal/mod_security.conf",
                  "puppet:///modules/mod_security/normal/${::operatingsystem}/mod_security.conf" ],
mh's avatar
mh committed
9
10
11
    require => Package['mod_security'],
    notify => Service['apache'],
  }
12
13

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

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