安装好puppet server后,接着要安装puppet client端。
客户端只须要安装puppet facter这些包就能够了
运行命令链接agent
puppet agent --server=puppet.example.com --no-daemonize --verbose
参数--no-daemonize使得Puppet客户端运行在前台并输出日志到标准输出。在默认状况下,Puppet客户端是以守护进程的方式运行的。
提示 选项--verbose会使客户端输出详细的日志。若是再加上--debug参数就能提供更加详细的输出,这在解决问题的时候很是有用。
为了完成链接并对agent进行验证,咱们须要对agent发送到master的证书进行签名,能够经过使用master上的puppet cert命令(或者是puppetca命令)来实现:
puppet# puppet cert --list
能够在下面的网址找到Puppet的所有命令列表:http://puppetlabs.com/trac/puppet/wiki/ PuppetExecutables。
参数--list会显示全部等待被签名的证书。咱们使用--sign参数来签名这些证书。
puppet# puppet cert --sign node1.example.com
Signed node1.example.com
node