mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
29 lines
443 B
Ruby
29 lines
443 B
Ruby
|
|
case os[:name]
|
|
when 'arch'
|
|
os_packages = %w(
|
|
bind
|
|
bind-tools
|
|
dnssec-tools
|
|
)
|
|
when 'redhat', 'centos', 'fedora'
|
|
os_packages = %w(bind)
|
|
when 'suse', 'opensuse'
|
|
os_packages = %w(bind)
|
|
when 'debian', 'ubuntu'
|
|
os_packages = %w(
|
|
bind9
|
|
bind9utils
|
|
)
|
|
end
|
|
|
|
control 'Bind9 packages' do
|
|
title 'should be installed'
|
|
|
|
os_packages.each do |p|
|
|
describe package(p) do
|
|
it { should be_installed }
|
|
end
|
|
end
|
|
end
|
|
|