mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
4b3095dac2
Remove container setup that comes for free with the dokken containers now Use the new openssl resource names Remove all the encoding statements that even rubocop doesn't recommend anymore Remove some compatibility with centos-5 and ubuntu 15.10 Signed-off-by: Tim Smith <tsmith@chef.io>
17 lines
453 B
Ruby
17 lines
453 B
Ruby
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
#
|
|
# prepares services
|
|
|
|
case node['platform']
|
|
when 'ubuntu'
|
|
# install ntp as a service
|
|
package 'ntp'
|
|
|
|
when 'centos'
|
|
# install runit for alternative service mgmt
|
|
if node['platform_version'].to_i == 6
|
|
include_recipe 'os_prepare::_runit_service_centos' unless node['osprepare']['docker']
|
|
include_recipe 'os_prepare::_upstart_service_centos' unless node['osprepare']['docker']
|
|
end
|
|
end
|