mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +00:00
26 lines
572 B
Ruby
26 lines
572 B
Ruby
# encoding: utf-8
|
|
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
#
|
|
# installs everything to do the package test
|
|
|
|
case node['platform']
|
|
when 'ubuntu'
|
|
include_recipe('apt')
|
|
|
|
package 'curl'
|
|
when 'rhel', 'centos', 'fedora'
|
|
include_recipe('yum')
|
|
|
|
# TODO: support DNF natively
|
|
# Special care for fedora 22, since dnf is not officially supported yet
|
|
# https://github.com/chef/chef/issues/3201
|
|
if node['platform_version'] == '22'
|
|
execute 'dnf install -y yum'
|
|
end
|
|
|
|
package 'curl'
|
|
when 'freebsd'
|
|
# do nothing
|
|
# TODO: implement Freebsd packages
|
|
end
|