We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ca8e8 commit 50f719dCopy full SHA for 50f719d
1 file changed
controls/package_spec.rb
@@ -80,14 +80,9 @@
80
impact 1.0
81
title 'Install auditd'
82
desc 'auditd provides extended logging capacities on recent distribution'
83
- if os.redhat?
84
- describe package('audit') do
85
- it { should be_installed }
86
- end
87
- else
88
- describe package('auditd') do
89
90
+ audit_pkg = os.redhat? ? 'audit' : 'auditd'
+ describe package(audit_pkg) do
+ it { should be_installed }
91
end
92
describe auditd_conf do
93
its('log_file') { should cmp '/var/log/audit/audit.log' }
0 commit comments