Skip to content

Commit 2bd1f2f

Browse files
committed
Update ntp to ca6bbcf
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: I062d13b204a66b4dc5d3518849a194c51657f9a4
1 parent a131bf7 commit 2bd1f2f

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mod 'nssdb',
131131
:git => 'https://github.com/rcritten/puppet-nssdb.git'
132132

133133
mod 'ntp',
134-
:commit => '060c453a9bbd87d1bf229db70ee6367033a2910e',
134+
:commit => 'ca6bbcfbd2ff44e1a4abef8b91a8339a5b0b878c',
135135
:git => 'https://github.com/puppetlabs/puppetlabs-ntp'
136136

137137
mod 'openstack_extras',

ntp/spec/spec_helper_acceptance.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
else
2525
on host, puppet('module install puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]}
2626
end
27+
28+
#Need to disable update of ntp servers from DHCP, as subsequent restart of ntp causes test failures
29+
if fact('osfamily') == 'Debian'
30+
shell('[[ -f /etc/dhcp/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
31+
shell('[[ -f /etc/dhcp3/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp3/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
32+
elsif fact('osfamily') == 'RedHat'
33+
shell('echo "PEERNTP=no" >> /etc/sysconfig/network', { :acceptable_exit_codes => [0, 1]})
34+
end
2735
end
2836
end
2937

0 commit comments

Comments
 (0)