Skip to content

Commit

Permalink
Update ntp to ca6bbcf
Browse files Browse the repository at this point in the history
ca6bbcf Merge pull request redhat-openstack#262 from bmjen/fix-rhel-ci
04d195c adds fix for redhat to disable ntp restart due to dhcp ntp server updates
94ccfd2 Merge pull request redhat-openstack#261 from bmjen/fix-acceptance-tests
bc136ef fixes debian-based flakiness in acceptance tests

Change-Id: I4f67d17254cfa530119edb1e4734eafc4958e385
  • Loading branch information
xbezdick committed Apr 30, 2015
1 parent ef9a5ff commit 06c2be9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mod 'nssdb',
:git => 'https://github.com/rcritten/puppet-nssdb.git'

mod 'ntp',
:commit => '060c453a9bbd87d1bf229db70ee6367033a2910e',
:commit => 'ca6bbcfbd2ff44e1a4abef8b91a8339a5b0b878c',
:git => 'https://github.com/puppetlabs/puppetlabs-ntp'

mod 'openstack_extras',
Expand Down
8 changes: 8 additions & 0 deletions ntp/spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
else
on host, puppet('module install puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]}
end

#Need to disable update of ntp servers from DHCP, as subsequent restart of ntp causes test failures
if fact('osfamily') == 'Debian'
shell('[[ -f /etc/dhcp/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
shell('[[ -f /etc/dhcp3/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp3/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
elsif fact('osfamily') == 'RedHat'
shell('echo "PEERNTP=no" >> /etc/sysconfig/network', { :acceptable_exit_codes => [0, 1]})
end
end
end

Expand Down

0 comments on commit 06c2be9

Please sign in to comment.