2015-11-09 23:30:23 +00:00
|
|
|
#
|
|
|
|
# prepares services
|
|
|
|
|
|
|
|
case node['platform']
|
|
|
|
when 'ubuntu'
|
2016-01-20 16:54:04 +00:00
|
|
|
# install ntp as a service
|
2015-11-09 23:30:23 +00:00
|
|
|
package 'ntp'
|
2016-01-20 16:54:04 +00:00
|
|
|
|
|
|
|
when 'centos'
|
|
|
|
# install runit for alternative service mgmt
|
2016-08-04 12:45:58 +00:00
|
|
|
if node['platform_version'].to_i == 6
|
2016-08-04 13:13:50 +00:00
|
|
|
include_recipe 'os_prepare::_runit_service_centos' unless node['osprepare']['docker']
|
|
|
|
include_recipe 'os_prepare::_upstart_service_centos' unless node['osprepare']['docker']
|
2016-02-17 10:44:15 +00:00
|
|
|
end
|
2015-11-09 23:30:23 +00:00
|
|
|
end
|