2019-12-21 17:39:32 +00:00
|
|
|
# frozen_string_literal: true
|
2018-05-26 18:54:26 -03:00
|
|
|
|
|
|
|
case os[:name]
|
|
|
|
when 'arch'
|
2019-12-21 17:39:32 +00:00
|
|
|
os_packages = %w[
|
2018-05-26 18:54:26 -03:00
|
|
|
bind
|
|
|
|
bind-tools
|
|
|
|
dnssec-tools
|
2019-12-21 17:39:32 +00:00
|
|
|
]
|
2019-08-19 11:54:44 +01:00
|
|
|
when 'redhat', 'centos', 'fedora', 'amazon'
|
2019-12-21 17:39:32 +00:00
|
|
|
os_packages = %w[bind]
|
2019-05-21 22:22:00 +02:00
|
|
|
when 'suse', 'opensuse'
|
2019-12-21 17:39:32 +00:00
|
|
|
os_packages = %w[bind]
|
2018-05-26 18:54:26 -03:00
|
|
|
when 'debian', 'ubuntu'
|
2019-12-21 17:39:32 +00:00
|
|
|
os_packages = %w[
|
2018-05-26 18:54:26 -03:00
|
|
|
bind9
|
|
|
|
bind9utils
|
2019-12-21 17:39:32 +00:00
|
|
|
]
|
2018-05-26 18:54:26 -03:00
|
|
|
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
|