2015-10-22 17:57:17 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# author: Christoph Hartmann
|
|
|
|
# author: Dominik Richter
|
|
|
|
#
|
|
|
|
# installs everything to do the package test
|
|
|
|
|
|
|
|
case node['platform']
|
2016-08-04 12:59:48 +00:00
|
|
|
when 'ubuntu', 'debian'
|
2015-10-22 17:57:17 +00:00
|
|
|
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
|
2015-10-23 20:14:15 +00:00
|
|
|
if node['platform_version'] == '22'
|
2015-10-22 17:57:17 +00:00
|
|
|
execute 'dnf install -y yum'
|
|
|
|
end
|
|
|
|
|
|
|
|
package 'curl'
|
|
|
|
when 'freebsd'
|
|
|
|
# do nothing
|
|
|
|
# TODO: implement Freebsd packages
|
|
|
|
end
|