Commit 7a37d04d authored by mh's avatar mh
Browse files

refactor things for >2.7

parent 06251759
......@@ -38,7 +38,7 @@ class mod_security::base {
user => 'root',
require => File['mod_security_asl_update_script'],
}
if ($mod_security_asl_ruleset == true) {
if ($mod_security::asl_ruleset == true) {
File['mod_security_asl_config_dir']{
ensure => directory,
......@@ -104,7 +104,7 @@ class mod_security::base {
user => root,
require => File['mod_security_logclean_script'],
}
if ($mod_security_logclean == true) {
if ($mod_security::logclean == true) {
File['mod_security_logclean_script']{
ensure => present,
......
......@@ -3,7 +3,10 @@
# Adapated by Puzzle ITC
# License: GPLv3
class mod_security {
class mod_security(
$log_clean = hiera('mod_security_log_clean',false),
$asl_ruleset = hiera('mod_security_asl_ruleset',false)
) {
case $::operatingsystem {
centos: { include mod_security::centos }
debian: { include mod_security::debian }
......
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