/etc/cfengine/debian-edu/cf.ntp is in debian-edu-config 1.818+deb8u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | files:
debian.installation.!standalone::
/etc/ntp.conf owner=root group=root mode=644 act=touch
editfiles:
debian.!standalone.installation::
{ /etc/ntp.conf
AppendIfNoSuchLine "# /etc/ntp.conf, configuration for xntpd"
AppendIfNoSuchLine "# ntpd will use syslog() if logfile is not defined"
AppendIfNoSuchLine "#logfile /var/log/ntpd"
AppendIfNoSuchLine "driftfile /var/lib/ntp/ntp.drift"
AppendIfNoSuchLine "statsdir /var/log/ntpstats/"
AppendIfNoSuchLine "statistics loopstats peerstats clockstats"
AppendIfNoSuchLine "filegen loopstats file loopstats type day enable"
AppendIfNoSuchLine "filegen peerstats file peerstats type day enable"
AppendIfNoSuchLine "filegen clockstats file clockstats type day enable"
}
# Add local clock on the main-server to ensure clients can sync with
# the main-server even when all the machines are disconnected from
# the Internet. When they are on the Internet, all will sync with
# pool.ntp.org machines.
debian.server.installation::
{ /etc/ntp.conf
AppendIfNoSuchLine "server 127.127.1.0"
}
debian.!server.!standalone.installation::
{ /etc/ntp.conf
AppendIfNoSuchLine "server ntp iburst"
}
# Remove all ntp servers except 'ntp' (aka tjener) from ntp.conf.
debian.ltspclient.installation::
{ /etc/ntp.conf
CommentLinesMatching ".*debian.pool.ntp.*"
}
|