Skip to content

Commit

Permalink
Fix remediation.rb suggested in issue 3 and 5
Browse files Browse the repository at this point in the history
learn-chef#3
learn-chef#5
Signed-off-by: Thomas Powell <[email protected]>
  • Loading branch information
tpowell-progress committed May 13, 2022
1 parent bef9d02 commit 5098995
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cookbooks/hardening/recipes/remediation.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
package "rsyslog"
package "audit"

cookbook_file "/etc/audit/auditd.conf" do
source "auditd.conf"
case node['platform']
when 'ubuntu'
package "auditd"

cookbook_file "/etc/audit/auditd.conf" do
source "auditd.conf"
end
when 'centos'
package %w(audit audit-libs)

service 'auditd' do
action [:enable, :start]
end
end

0 comments on commit 5098995

Please sign in to comment.