diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a8fa4b..e9f76b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ Changelog of Git Changelog.
+
+
# File 'manifests/main/exec.pp', line 23
@@ -152,17 +154,19 @@ 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,
}
}
# File 'manifests/main/files.pp', line 23
@@ -256,6 +257,7 @@ class cd_nrpe::main::files (
seltype => nrpe_etc_t,
seluser => system_u,
content => template($ne_nrpe_te_erb),
+ notify => Exec['create_nrpe_pp'],
}
}
}