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

16 lines
398 B
Ruby
Raw Normal View History

#
# prepares services
case node["platform"]
when "ubuntu"
2016-01-20 16:54:04 +00:00
# install ntp as a service
package "ntp"
2016-01-20 16:54:04 +00:00
when "centos"
2016-01-20 16:54:04 +00:00
# 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