adds eec to import policy
This commit is contained in:
@@ -30,4 +30,12 @@ class cd_nrpe::main::exec (
|
||||
user => 'root',
|
||||
creates => $ne_nrpe_pp_file,
|
||||
}
|
||||
|
||||
# import semodule
|
||||
exec { 'import_semodule_nrpe':
|
||||
command => template($ne_semodule_erb),
|
||||
user => 'root',
|
||||
require => Exec['create_nrpe_pp'],
|
||||
unless => '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,6 +181,7 @@ $ne_nrpe_te_erb = 'cd_nrpe/nrpe.te.erb'
|
||||
$ne_nrpe_mod_file = "${ne_main_conf_d_dir}/nrpe.mod"
|
||||
$ne_checkmodule_nrpe_erb = 'cd_nrpe/checkmodule_nrpe.erb'
|
||||
$ne_nrpe_pp_file = "${ne_main_conf_d_dir}/nrpe.pp"
|
||||
$ne_semodule_erb = 'cd_nrpe/semodule_nrpe.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
|
||||
Reference in New Issue
Block a user