mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
add centos support to service resource
This commit is contained in:
parent
571de7fc68
commit
3d2bca2eaf
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ class Service < Vulcano.resource(1)
|
|||
else
|
||||
@service_mgmt = SysV.new(vulcano)
|
||||
end
|
||||
when 'redhat', 'fedora'
|
||||
when 'redhat', 'fedora', 'centos'
|
||||
version = vulcano.os[:release].to_i
|
||||
if (family == 'redhat' && version >= 7) || (family == 'fedora' && version >= 15)
|
||||
if (%w{ redhat centos }.include?(family) && version >= 7) || (family == 'fedora' && version >= 15)
|
||||
@service_mgmt = Systemd.new(vulcano)
|
||||
else
|
||||
@service_mgmt = SysV.new(vulcano)
|
||||
|
|
Loading…
Reference in a new issue