/etc/cfengine/debian-edu/cf.cfengine 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 | groups:
cfclient = ( "/bin/ping -c 1 cfservd" )
editfiles:
cfclient::
# Activate cfservd if there is a cfengine server on the net
{ /etc/default/cfengine2
BeginGroupIfNoMatch "RUN_CFSERVD=1"
LocateLineMatching "RUN_CFSERVD=0"
ReplaceLineWith "RUN_CFSERVD=1"
EndGroup
}
# Run cfengine on reboot
# (to make sure that clients that are offline a lot, get their "fix", too
{ /etc/cron.d/cfengine
AutoCreate
AppendIfNoSuchLine "@reboot root /usr/sbin/cfagent -f update.conf && /usr/sbin/cfagent -f cfagent.conf"
}
shellcommands:
cfclient::
"/etc/init.d/cfengine restart"
|