diff --git a/CHANGELOG.md b/CHANGELOG.md index 337c3d6..6accafd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ Changelog of Git Changelog.
+
+
# File 'manifests/params.pp', line 655
@@ -5596,9 +5590,6 @@ $ng_loadctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5
# single nagios checks
$ng_enable_swap_check = true,
-# resource.cfg
-$ng_user_arg1 = '/usr/lib64/nagios/plugins',
-$ng_user_arg2 = '/usr/lib64/nagios/plugins/eventhandlers',
) {
@@ -5660,6 +5651,7 @@ $ng_ssl_vhost_erb = 'cd_nagios/httpd/nagios_ssl_vhost.erb'
$ng_nagios_cfg_file = "${ng_main_dir}/nagios.cfg"
$ng_nagios_cfg_erb = 'cd_nagios/nagios/nagios_cfg.erb'
$ng_resource_erb = 'cd_nagios/nagios/resource_cfg.erb'
+$ng_grep_erb = 'cd_nagios/selinux/grep.erb'
# certbot
$ng_certbot_main_dir = '/etc/letsencrypt'
diff --git a/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html b/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html
index e6df601..116834c 100644
--- a/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html
+++ b/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html
@@ -239,7 +239,26 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.
130
131
132
-133
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
# File 'manifests/selinux/config.pp', line 23
@@ -353,6 +372,25 @@ class cd_nagios::selinux::config (
refreshonly => true,
notify => Service[$ng_service],
}
+
+ # sealert grep
+
+ exec { 'create_policy_grep':
+ command => template($ng_grep_erb),
+ path => ['/usr/bin','/usr/sbin'],
+ cwd => $ng_user_home,
+ creates => "${ng_user_home}/my-grep.pp",
+ notify => Exec['semodule_statusdat'],
+ }
+
+ exec { 'semodule_grep':
+ command => "semodule -i ${ng_user_home}/my-grep.pp",
+ path => ['/usr/bin','/usr/sbin'],
+ cwd => $ng_user_home,
+ require => Exec['create_policy_grep'],
+ refreshonly => true,
+ notify => Service[$ng_service],
+ }
}
}