GNU Cfengine 配置文件
# cfservd.conf
control:
domain = ( haoyuan-inc.com )
AllowUsers = ( root )
cfrunCommand = ( "/usr/sbin/cfagent" )
any::
IfElapsed = ( 1 )
ExpireAfter = ( 5 )
MaxConnections = ( 50 )
MultipleConnections = ( true )
grant:
/var/cfengine/inputs *.haoyuan-inc.com
#update.conf
control:
actionsequence = ( copy tidy )
domain = ( haoyuan-inc.com )
policyhost = ( cfg.haoyuan-inc.com )
work_dir = ( /var/cfengine )
cf_install_dir = ( /usr/local/sbin )
SplayTime = ( 0 )
copy:
$(work_dir)/inputs/cfagent.conf dest=$(work_dir)/inputs/cfagent.conf
server=$(policyhost)
mode=644
tidy:
#cfagent.conf
control:
actionsequence = ( shellcommands )
shellcommands:
/bin/echo "fuck you !"