From 0c1083e94eff65f95f47e9319334c1ddb439eb3f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 5 May 2012 14:51:16 +0200 Subject: [PATCH 1/1] No cryptostats behind nat --- modules/ntp/templates/ntp.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ntp/templates/ntp.conf b/modules/ntp/templates/ntp.conf index fea3e66ff..4672a85bb 100644 --- a/modules/ntp/templates/ntp.conf +++ b/modules/ntp/templates/ntp.conf @@ -6,11 +6,18 @@ driftfile /var/lib/ntp/ntp.drift statsdir /var/log/ntpstats/ +<% if scope.lookupvar('site::nodeinfo')['misc']['natted'] -%> +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable +<% else -%> statistics loopstats peerstats clockstats cryptostats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable filegen cryptostats file cryptostats type day enable +<% end -%> crypto randfile /dev/urandom keysdir /etc/ntp.keys.d -- 2.20.1