Skip to content

Commit

Permalink
Merge pull request redhat-openstack#265 from mmonaco/master
Browse files Browse the repository at this point in the history
Update Arch Linux defaults
  • Loading branch information
jonnytdevops committed Jun 23, 2015
2 parents 261f381 + 8219435 commit 45e234d
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 45e234d

Please sign in to comment.