Commit f1af54f9 authored by mh's avatar mh
Browse files

finish itk_plus implementation

parent 28e6799d
# Example configuration file for the mod_security Apache module
LoadModule security2_module modules/mod_security2.so
LoadModule unique_id_module modules/mod_unique_id.so
<IfModule mod_security2.c>
# This is the ModSecurity Core Rules Set.
# Basic configuration goes in here
Include modsecurity.d/*.conf
Include modsecurity.d/base_rules/*.conf
Include modsecurity.d/modsecurity_localrules.conf
</IfModule>
class mod_security::centos inherits mod_security::base {
apache::config::global{'mod_security.conf':
source => "modules/mod_security/normal/${operatingsystem}/mod_security.conf",
require => Package['mod_security'],
notify => Service['apache'],
}
file{'/etc/httpd/modsecurity.d/customrules/optional_rules.conf':
content => "Include modsecurity.d/optional_rules/*.conf\n",
ensure => $mod_security_optional_rules ? {
......
class mod_security::itk_plus inherits mod_security::itk {
case $operatingsystem {
centos: { include mod_security::itk_plus::centos }
}
}
class mod_security::itk_plus::centos {
apache::config::global{'mod_security.conf':
class mod_security::itk_plus::centos inherits mod_security::centos {
Apache::Config::Global['mod_security.conf']{
source => "modules/mod_security/itk_plus/${operatingsystem}/mod_security.conf",
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment