inspec/test/integration/cookbooks/os_prepare/recipes/service.rb

18 lines
383 B
Ruby
Raw Normal View History

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
#
# prepares services
case node['platform']
when 'ubuntu'
2016-01-20 16:54:04 +00:00
# install ntp as a service
include_recipe 'apt::default'
package 'ntp'
2016-01-20 16:54:04 +00:00
when 'centos'
# install runit for alternative service mgmt
include_recipe 'os_prepare::_runit_service_centos'
include_recipe 'os_prepare::_upstart_service_centos'
end