class ntp::timeserver {
- if ($::lsbmajdistrelease >= 8) {
- 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'],
- }
+ 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 >= '8' -%>
-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