== cfengine tar zxvf cfengine-2.2.7.tar.gz ./configure && make && make install /usr/local/sbin/cfagent mkdir /var/cfengine/inputs mkdir /var/cfengine/outputs /usr/local/sbin/cfkey -- server [root@localhost inputs]# cat cfservd.conf control: domain = (localhost.localdomain ) MaxConnections = ( 50 ) AllowConnectionsFrom = ( 192.168.20 ) AllowMultipleConnectionsFrom = ( 192.168.20 ) TrustKeysFrom = (192.168.20.156 ) admit: /etc/hosts * [root@localhost inputs]# cat /var/cfengine/inputs/cfagent.conf control: actionsequence = ( copy editfiles ) EmailTo = ( sakaijunsoccer@hotmail.com ) editfiles: !SuSE:: { /var/spool/cron/crontabs/root AutoCreate AppendIfNoSuchLine "0,15,30,45 * * * */var/cfengine/bin/cfexecd -F" } SuSE:: { /var/spool/cron/tabs/root AutoCreate AppendIfNoSuchLine "0,15,30,45 * * * * /var/cfengine/bin/cfexecd -F" } [root@localhost inputs]# cfservd -vf cfservd.conf -- Client [root@localhost cfengine]# cat /var/cfengine/inputs/update.conf control: any:: actionsequence = ( copy processes ) policyhost = ( 192.168.20.115 ) workdir = ( /var/cfengine ) any:: /etc/hosts server=$(policyhost) dest=/etc/hosts mode=644 owner=root trustkey=true backup=true syslog=true processes: any:: "cfexecd" restart "/usr/local/sbin/cfexecd" [root@localhost inputs]# cfagent -vf update.conf