Merge pull request #76 from HenryTheHamster/master

Check for Amazon Linux when determining audit package.
This commit is contained in:
Patrick Münch 2017-08-10 09:22:55 +02:00 committed by GitHub
commit c72d8adad0

View file

@ -80,7 +80,7 @@ control 'package-08' do
impact 1.0 impact 1.0
title 'Install auditd' title 'Install auditd'
desc 'auditd provides extended logging capacities on recent distribution' desc 'auditd provides extended logging capacities on recent distribution'
audit_pkg = os.redhat? || os.suse? ? 'audit' : 'auditd' audit_pkg = os.redhat? || os.suse? || os.name == 'amazon' ? 'audit' : 'auditd'
describe package(audit_pkg) do describe package(audit_pkg) do
it { should be_installed } it { should be_installed }
end end