adds grep c[Fheck

This commit is contained in:
Arne Teuke
2018-04-29 13:44:55 +02:00
parent aaad9d3cb0
commit c150bcd51d
3 changed files with 21 additions and 3 deletions

View File

@@ -129,5 +129,24 @@ 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],
}
}
}