added control for common-paths-file
This commit is contained in:
@@ -31,7 +31,7 @@ class cd_fail2ban::main::files (
|
||||
# manage fail2ban.conf
|
||||
|
||||
file { $fn_fail2ban_conf_file:
|
||||
ensure => present,
|
||||
ensure => file,
|
||||
path => $fn_fail2ban_conf_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
@@ -47,7 +47,7 @@ class cd_fail2ban::main::files (
|
||||
# manage fail2ban.local
|
||||
|
||||
file { $fn_fail2ban_local_file:
|
||||
ensure => present,
|
||||
ensure => file,
|
||||
path => $fn_fail2ban_local_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
@@ -60,10 +60,10 @@ class cd_fail2ban::main::files (
|
||||
notify => Service[$fn_service],
|
||||
}
|
||||
|
||||
# manage jail.conf
|
||||
# manage jail.conf
|
||||
|
||||
file { $fn_jail_conf_file:
|
||||
ensure => present,
|
||||
ensure => file,
|
||||
path => $fn_jail_conf_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
@@ -76,10 +76,10 @@ class cd_fail2ban::main::files (
|
||||
notify => Service[$fn_service],
|
||||
}
|
||||
|
||||
# manage jail.local
|
||||
# manage jail.local
|
||||
|
||||
file { $fn_jail_local_file:
|
||||
ensure => present,
|
||||
ensure => file,
|
||||
path => $fn_jail_local_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
@@ -92,5 +92,20 @@ class cd_fail2ban::main::files (
|
||||
notify => Service[$fn_service],
|
||||
}
|
||||
|
||||
# manage paths-common.conf
|
||||
|
||||
file { $fn_paths_common_file:
|
||||
ensure => file,
|
||||
path => $fn_paths_common_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template($fn_paths_common_erb),
|
||||
notify => Service[$fn_service],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +206,8 @@ $fn_jail_conf_file = "${fn_main_dir}/jail.conf"
|
||||
$fn_jail_conf_erb = 'cd_fail2ban/jail_conf.erb'
|
||||
$fn_jail_local_file = "${fn_main_dir}/jail.local"
|
||||
$fn_jail_local_erb = 'cd_fail2ban/jail_local.erb'
|
||||
|
||||
$fn_paths_common_file = "${fn_main_dir}/paths-common.conf"
|
||||
$fn_paths_common_erb = 'cd_fail2ban/paths_common_conf.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
|
||||
Reference in New Issue
Block a user