From: Paul Wise Date: Sun, 26 Apr 2015 23:53:18 +0000 (+0800) Subject: Use the leap-seconds.list file from tzdata on stretch (see #775166) X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9a0c71f8def6b3228f782f1388b2fa2e0e106da2;p=mirror%2Fdsa-puppet.git Use the leap-seconds.list file from tzdata on stretch (see #775166) Allows us to get rid of the leap-seconds.list embedded data copy. --- diff --git a/modules/ntp/manifests/timeserver.pp b/modules/ntp/manifests/timeserver.pp index f86ddf470..74bb73550 100644 --- a/modules/ntp/manifests/timeserver.pp +++ b/modules/ntp/manifests/timeserver.pp @@ -1,7 +1,13 @@ 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'], + } } } diff --git a/modules/ntp/templates/ntp.conf b/modules/ntp/templates/ntp.conf index 9e6880470..ad6db6572 100644 --- a/modules/ntp/templates/ntp.conf +++ b/modules/ntp/templates/ntp.conf @@ -21,7 +21,11 @@ server 1.debian.pool.ntp.org iburst dynamic 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