mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
19 lines
371 B
Ruby
19 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
case os[:name]
|
|
when 'arch', 'redhat', 'centos', 'fedora', 'amazon'
|
|
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
|