adds eec to import policy
This commit is contained in:
@@ -28,16 +28,18 @@ class cd_nrpe::main::exec (
|
||||
|
||||
# create policy file fpr sudo selinux policy
|
||||
exec { 'create_nrpe_pp':
|
||||
command => template($ne_checkmodule_nrpe_erb),
|
||||
user => 'root',
|
||||
creates => $ne_nrpe_pp_file,
|
||||
command => template($ne_checkmodule_nrpe_erb),
|
||||
user => 'root',
|
||||
creates => $ne_nrpe_pp_file,
|
||||
refreshonly => true,
|
||||
notify => Exec['import_semodule_nrpe'],
|
||||
}
|
||||
|
||||
# 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_',
|
||||
command => template($ne_semodule_erb),
|
||||
user => 'root',
|
||||
unless => '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
|
||||
refreshonly => true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user