class ntp::timeserver {
- file { '/var/lib/ntp/leap-seconds.list':
- source => 'puppet:///modules/ntp/leap-seconds.list',
- require => Package['ntp'],
- notify => Service['ntp'],
+ if ($::lsbmajdistrelease >= 9) {
+ file { '/var/lib/ntp/leap-seconds.list':
+ ensure => absent,
+ }
+ } else {
+ file { '/var/lib/ntp/leap-seconds.list':
+ source => 'puppet:///modules/ntp/leap-seconds.list',
+ require => Package['ntp'],
+ notify => Service['ntp'],
+ }
}
}
server 2.debian.pool.ntp.org iburst dynamic
server 3.debian.pool.ntp.org iburst dynamic
+<% if @lsbmajdistrelease >= '9' -%>
+leapfile /usr/share/zoneinfo/leap-seconds.list
+<% else -%>
leapfile /var/lib/ntp/leap-seconds.list
+<% end -%>
<% elsif scope.lookupvar('site::nodeinfo')['misc']['natted'] -%>
# autokey doesn't work behind nat