From d2e73a9e90b6d671c545ba2c552239bf55e1f20f Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Mon, 27 Apr 2015 07:53:18 +0800 Subject: [PATCH] Use the leap-seconds.list file from tzdata on jessie (see #775166) Allows us to get rid of the leap-seconds.list embedded data copy. --- modules/ntp/manifests/timeserver.pp | 14 ++++++++++---- modules/ntp/templates/ntp.conf | 4 ++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/ntp/manifests/timeserver.pp b/modules/ntp/manifests/timeserver.pp index f86ddf470..586ebc87e 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 >= 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'], + } } } diff --git a/modules/ntp/templates/ntp.conf b/modules/ntp/templates/ntp.conf index 9e6880470..0e63ee776 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 >= '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 -- 2.20.1