mirror of
https://github.com/inspec/inspec
synced 2024-12-18 17:14:33 +00:00
6c19e81a06
Signed-off-by: Miah Johnson <miah@chia-pet.org>
15 lines
398 B
Ruby
15 lines
398 B
Ruby
#
|
|
# 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
|