/usr/share/doc/cfengine2/examples/cfagent.conf.example is in cfengine2 2.2.10-4build2.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ##################################################
#
# cfagent.conf
#
# This is a simple file for getting started with
# cfengine. It is harmless. If you get cfengine
# running with this file, you can build on it.
#
##################################################
###
#
# BEGIN cfagent.conf (Only hard classes in this file )
#
###
control:
actionsequence = ( files shellcommands copy )
domain = ( example.com )
timezone = ( MET )
smtpserver = ( smtphost.example.org ) # used by cfexecd
sysadm = ( admin@example.com ) # where to mail output
######################################################################
resolve:
#
# Add these name servers to the /etc/resolv.conf file
#
129.0.2.10 # local nameserver
129.0.2.156 # backup nameserver
######################################################################
copy:
# Get a file from some trusted server, e.g. password sync
# To do this, you need to use cfkey to install keys
# /etc/shadow mode=0600 server=passwordserver
######################################################################
files:
/etc/passwd
mode=644 # make sure the file permissions are right
owner=root # make sure it's owned by root
action=fixall # if anything is wrong, fix it immediately!
checksum=md5 # keep a "tripwire" checksum to tell us
# if any changes occur here
/etc/shadow mode=600 owner=root action=fixall
######################################################################
shellcommands:
"/bin/echo Replace me with something useful"
Wednesday.Hr00||Saturday.Hr02::
"/usr/local/bin/MyScript"
######################################################################
processes:
"inetd" signal=hup
"irc" signal=kill
###
#
# END cfagent.conf
#
###
|