Update package_spec.rb

This commit is contained in:
andy shaw 2017-07-12 16:42:04 +10:00 committed by GitHub
parent 83b49d0e82
commit 0a753a2dd7

View file

@ -80,10 +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.family == 'amazon' ? 'audit' : 'auditd'
puts audit_pkg
puts os.name
puts os.family
describe package(audit_pkg) do describe package(audit_pkg) do
it { should be_installed } it { should be_installed }
end end