adds eec to import policy
This commit is contained in:
@@ -30,4 +30,12 @@ class cd_nrpe::main::exec (
|
|||||||
user => 'root',
|
user => 'root',
|
||||||
creates => $ne_nrpe_pp_file,
|
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_nrpe_mod_file = "${ne_main_conf_d_dir}/nrpe.mod"
|
||||||
$ne_checkmodule_nrpe_erb = 'cd_nrpe/checkmodule_nrpe.erb'
|
$ne_checkmodule_nrpe_erb = 'cd_nrpe/checkmodule_nrpe.erb'
|
||||||
$ne_nrpe_pp_file = "${ne_main_conf_d_dir}/nrpe.pp"
|
$ne_nrpe_pp_file = "${ne_main_conf_d_dir}/nrpe.pp"
|
||||||
|
$ne_semodule_erb = 'cd_nrpe/semodule_nrpe.erb'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
/bin/checkmodule -M -m -o <%= @ne_nrpe_mod_file %> <%= @ne_nrpe_te_file %>
|
/bin/checkmodule -M -m -o <%= @ne_nrpe_mod_file %> <%= @ne_nrpe_te_file %>
|
||||||
/bin/semodule_package -o <%= @ne_nrpe_pp_file %> -m <%= @ne_nrpe_mod_file %>
|
/bin/semodule_package -o <%= @ne_nrpe_pp_file %> -m <%= @ne_nrpe_mod_file %>
|
||||||
/bin/semodule -i <%= @ne_nrpe_pp_file %>
|
|
||||||
|
|||||||
1
templates/semodule_nrpe.erb
Normal file
1
templates/semodule_nrpe.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/sbin/semodule -i <%= @ne_nrpe_pp_file %>
|
||||||
Reference in New Issue
Block a user