blob: 39759c5e56c13727b46f186d1afcc492228ddb9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require 'spec_helper_system'
describe 'ntp::install class' do
let(:os) {
node.facts['osfamily']
}
case node.facts['osfamily']
when 'FreeBSD'
packagename = 'net/ntp'
when 'Linux'
case node.facts['operatingsystem']
when 'ArchLinux'
packagename = 'ntp'
when 'Gentoo'
packagename = 'net-misc/ntp'
end
else
packagename = 'ntp'
end
puppet_apply(%{
class { 'ntp': }
})
describe package(packagename) do
it { should be_installed }
end
end
|