Package: puppet-module-puppetlabs-ntp Severity: normal Dear Maintainer,
Using the option logfile in the class ntp leads to a syntax error in the ntp.conf files of the clients.(Jessie 8.2). The relevant line in the config is logfile = /var/log/ntp.log but should be logfile /var/log/ntp.log Solution: remove the "=" in /usr/share/puppet/modules.available/puppetlabs-ntp/templates/ntp.conf.erb diff /usr/share/puppet/modules.available/puppetlabs-ntp/templates/ntp.conf.erb ~/ntp.conf.erb 47c47 < logfile = <%= @logfile %> --- > logfile <%= @logfile %> For instance, create file /etc/puppet/manifests/site.pp with ************************* On puppet master class { '::ntp': servers => [ '0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org', ], logfile => '/var/log/ntp.log', } include '::ntp' ************************* update client with "puppet agent -t" and check result with ************************* root@euwe:~# service ntp status ● ntp.service - LSB: Start NTP daemon Loaded: loaded (/etc/init.d/ntp) Active: active (running) since Fr 2016-01-08 22:03:04 CET; 2s ago Process: 13904 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS) Process: 13914 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS) CGroup: /system.slice/ntp.service └─13923 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 124:130 Jan 08 22:03:04 euwe ntpd[13923]: syntax error in /etc/ntp.conf line 28, column 11 Jan 08 22:03:04 euwe ntpd[13923]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Jan 08 22:03:04 euwe ntp[13914]: Starting NTP server: ntpd. Jan 08 22:03:04 euwe ntpd[13923]: Listen and drop on 1 v6wildcard :: UDP 123 Jan 08 22:03:04 euwe ntpd[13923]: Listen normally on 2 lo 127.0.0.1 UDP 123 Jan 08 22:03:04 euwe ntpd[13923]: Listen normally on 3 eth0 192.168.1.223 UDP 123 Jan 08 22:03:04 euwe ntpd[13923]: Listen normally on 4 lo ::1 UDP 123 Jan 08 22:03:04 euwe ntpd[13923]: Listen normally on 5 eth0 fe80::1e6f:65ff:feaf:abf UDP 123 Jan 08 22:03:04 euwe ntpd[13923]: peers refreshed Jan 08 22:03:04 euwe ntpd[13923]: Listening on routing socket on fd #22 for interface updates **************************** -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) greets Bernd