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'
|
title 'Test logrotate installation'
|
||||||
|
|
||||||
case os[:name]
|
case os[:name]
|
||||||
when 'redhat', 'centos', 'fedora'
|
when 'redhat', 'centos', 'fedora', 'amazon'
|
||||||
pkg = 'cronie'
|
pkg = 'cronie'
|
||||||
else
|
else
|
||||||
pkg = 'logrotate'
|
pkg = 'logrotate'
|
||||||
|
@ -27,7 +27,7 @@ describe file('/etc/logrotate.d') do
|
||||||
end
|
end
|
||||||
|
|
||||||
case os[:name]
|
case os[:name]
|
||||||
when 'redhat', 'centos', 'fedora'
|
when 'redhat', 'centos', 'fedora', 'amazon'
|
||||||
service = 'crond'
|
service = 'crond'
|
||||||
else
|
else
|
||||||
service = 'cron'
|
service = 'cron'
|
||||||
|
|
Loading…
Reference in a new issue