Skip to content

Commit 4216dbc

Browse files
committed
Merge pull request #207 from mhaskel/suse_osfamily_fix
Fix for Suse osfamily
2 parents 21d12d9 + 2d81a2c commit 4216dbc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
'2.centos.pool.ntp.org',
8787
]
8888
}
89-
'SuSE': {
89+
'Suse': {
9090
$config = $default_config
9191
$keys_file = $default_keys_file
9292
$driftfile = '/var/lib/ntp/drift/ntp.drift'

spec/acceptance/ntp_config_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
line = '0.debian.pool.ntp.org iburst'
88
when 'RedHat'
99
line = '0.centos.pool.ntp.org'
10-
when 'SuSE'
10+
when 'Suse'
1111
line = '0.opensuse.pool.ntp.org'
1212
when 'Gentoo'
1313
line = '0.gentoo.pool.ntp.org'

spec/classes/ntp_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe 'ntp' do
44
let(:facts) {{ :is_virtual => 'false' }}
55

6-
['Debian', 'RedHat','SuSE', 'FreeBSD', 'Archlinux', 'Gentoo', 'Gentoo (Facter < 1.7)'].each do |system|
6+
['Debian', 'RedHat','Suse', 'FreeBSD', 'Archlinux', 'Gentoo', 'Gentoo (Facter < 1.7)'].each do |system|
77
context "when on system #{system}" do
88
if system == 'Gentoo (Facter < 1.7)'
99
let :facts do
@@ -287,9 +287,9 @@
287287
end
288288
end
289289

290-
describe "on osfamily SuSE" do
290+
describe "on osfamily Suse" do
291291
let :facts do
292-
super().merge({ :osfamily => 'SuSE' })
292+
super().merge({ :osfamily => 'Suse' })
293293
end
294294

295295
it 'uses the opensuse ntp servers by default' do

0 commit comments

Comments
 (0)