inspec/test/cookbooks/os_prepare/recipes/service.rb
Tim Smith 4b3095dac2 Further modernize the cookbook and remove legacy setup
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>
2019-02-13 21:50:33 -08:00

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