在Foreman上配置puppetrun

Foreman是一个强大的机器生命周期管理工具,还可以当做puppet的dashborad,如果想在Foreman上想要使用puppetrun的功能,你还需要一些配置。

 

1.首先,需要在Foreman的setting中将puppetrun设为true

 

2.然后配置你的puppet agent节点,在puppet.conf里添加一行:

listen = true

3.配置auth.conf:

path /run 
method save 
allow * 
path / 
auth any

 

OK,开启puppet进程。点击Run puppet,执行完成。如果提示No proxy found,请点Edit然后点submit更新数据库,这是一个已知的Bug。

 

或者你也可以通过在master端执行以下命令

puppetrun  -p 10  --host abc.test.com

 

常见故障排查:

1.查看pupet进程是否开启

2.查看8139端口是否监听

3.查看iptables规则,是否禁用了8139

4.查看foreman的配置是否正确

posted @ 2012-09-28 09:48  牛皮糖NewPtone  阅读(1443)  评论(0编辑  收藏  举报