adds eec to import policy
This commit is contained in:
@@ -31,13 +31,15 @@ class cd_nrpe::main::exec (
|
|||||||
command => template($ne_checkmodule_nrpe_erb),
|
command => template($ne_checkmodule_nrpe_erb),
|
||||||
user => 'root',
|
user => 'root',
|
||||||
creates => $ne_nrpe_pp_file,
|
creates => $ne_nrpe_pp_file,
|
||||||
|
refreshonly => true,
|
||||||
|
notify => Exec['import_semodule_nrpe'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# import semodule
|
# import semodule
|
||||||
exec { 'import_semodule_nrpe':
|
exec { 'import_semodule_nrpe':
|
||||||
command => template($ne_semodule_erb),
|
command => template($ne_semodule_erb),
|
||||||
user => 'root',
|
user => 'root',
|
||||||
require => Exec['create_nrpe_pp'],
|
|
||||||
unless => '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
|
unless => '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
|
||||||
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class cd_nrpe::main::files (
|
|||||||
seltype => nrpe_etc_t,
|
seltype => nrpe_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($ne_nrpe_te_erb),
|
content => template($ne_nrpe_te_erb),
|
||||||
|
notify => Exec['create_nrpe_pp'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user