test(inspec): improve to work on amazon
as well
This commit is contained in:
parent
e171b8a15f
commit
be09e0dedd
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
title 'Test logrotate installation'
|
||||
|
||||
case os[:name]
|
||||
when 'redhat', 'centos', 'fedora'
|
||||
when 'redhat', 'centos', 'fedora', 'amazon'
|
||||
pkg = 'cronie'
|
||||
else
|
||||
pkg = 'logrotate'
|
||||
|
@ -27,7 +27,7 @@ describe file('/etc/logrotate.d') do
|
|||
end
|
||||
|
||||
case os[:name]
|
||||
when 'redhat', 'centos', 'fedora'
|
||||
when 'redhat', 'centos', 'fedora', 'amazon'
|
||||
service = 'crond'
|
||||
else
|
||||
service = 'cron'
|
||||
|
|
Loading…
Reference in a new issue