bind-formula/test/integration/default/controls/service_spec.rb
2019-08-18 23:51:11 +01:00

18 lines
326 B
Ruby

case os[:name]
when 'arch','redhat', 'centos', 'fedora'
service = 'named'
when 'suse', 'opensuse'
service = 'named'
when 'debian', 'ubuntu'
service = 'bind9'
end
control 'Bind9 service' do
title 'should be running'
describe service(service) do
# it { should be_enabled }
it { should be_running }
end
end