Commit ef505b94 authored by Jerome Charaoui's avatar Jerome Charaoui
Browse files

Introduce SecDataDir (Debian)

parent 4af11801
......@@ -7,4 +7,17 @@ class mod_security::debian inherits mod_security::base {
ensure => present,
content => 'include modsecurity.d/*.conf',
}
# since version 2.5 we need to define a SecDataDir
file{'/var/www/modsecurity_data':
ensure => directory,
require => Package['mod_security'],
owner => 'www-data', group => 'www-data', mode => 0640;
}
file{"${config_dir}/sec_data_dir.conf":
content => "SecDataDir /var/www/modsecurity_data\n",
require => File['/var/www/modsecurity_data'],
notify => Service['apache'],
owner => root, group => 0, mode => 0644;
}
}
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