No cryptostats behind nat
authorPeter Palfrader <peter@palfrader.org>
Sat, 5 May 2012 12:51:16 +0000 (14:51 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 5 May 2012 12:51:16 +0000 (14:51 +0200)
modules/ntp/templates/ntp.conf

index fea3e66..4672a85 100644 (file)
@@ -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