Skip to content

Commit

Permalink
Update Arch Linux defaults
Browse files Browse the repository at this point in the history
Arch Linux has its own pool [1], it also ships a different default
drift file [2].

[1] https://bugs.archlinux.org/task/41700
[2] https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/ntp
  • Loading branch information
mmonaco committed May 18, 2015
1 parent 5357072 commit 8219435
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
'Archlinux': {
$config = $default_config
$keys_file = $default_keys_file
$driftfile = $default_driftfile
$driftfile = '/var/lib/ntp/ntp.drift'
$package_name = $default_package_name
$service_name = $default_service_name
$restrict = [
Expand All @@ -169,9 +169,10 @@
]
$iburst_enable = false
$servers = [
'0.pool.ntp.org',
'1.pool.ntp.org',
'2.pool.ntp.org',
'0.arch.pool.ntp.org',
'1.arch.pool.ntp.org',
'2.arch.pool.ntp.org',
'3.arch.pool.ntp.org',
]
$maxpoll = undef
}
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ntp_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
when 'Linux'
case fact('operatingsystem')
when 'ArchLinux'
line = '0.pool.ntp.org'
line = '0.arch.pool.ntp.org'
when 'Gentoo'
line = '0.gentoo.pool.ntp.org'
end
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,9 @@
super().merge({ :osfamily => 'ArchLinux' })
end

it 'uses the NTP pool servers by default' do
it 'uses the ArchLinux NTP servers by default' do
should contain_file('/etc/ntp.conf').with({
'content' => /server \d.pool.ntp.org/,
'content' => /server \d.arch.pool.ntp.org/,
})
end
end
Expand Down

0 comments on commit 8219435

Please sign in to comment.