fixed permissions on command.cfg file

This commit is contained in:
Arne Teuke
2017-07-30 15:01:52 +01:00
parent 6ae7e881a9
commit 5227b44c62
4 changed files with 28 additions and 6 deletions

View File

@@ -58,4 +58,19 @@ class cd_nrpe::main::files (
notify => Service[$ne_service],
}
if $ne_allow_sudo == true {
file { $ne_sudo_file:
ensure => file,
path => $ne_sudo_file,
owner => 'root',
group => 'root',
mode => '0440',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($ne_sudo_rule_erb),
}
}
}