灌溉梦想,记录脚步
« »
2009 年 09 月 03 日技术合集

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 !"

日志信息 »

该日志于2009-09-03 15:50由 kevin 发表在技术合集分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

没有评论

发表评论 »