X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fntp%2Ftemplates%2Fntp.conf;h=4672a85bb728d685f7908f5d2e474059c462ed48;hb=0c1083e94eff65f95f47e9319334c1ddb439eb3f;hp=fea3e66ffd5481a3561e9f31603646f8549d0a8d;hpb=9caedbb284c9729af8cc1ac483ab9daae9ee987e;p=mirror%2Fdsa-puppet.git 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