Think before you speak, read before you think.

puppet master与agent认证

首先要更改主机名和hosts
时间要一致

server端

puppet master --verbose --no-daemon
agent端
puppet agent --server=master-test.hupu.com --no-daemonize --verbose --debug
然后到master查看申请
puppet cert --list
通过申请
puppet cert --sign agent-test.hupu.com
清理不需要的申请
puppet cert --clean agent-test.localdomain
puppetca clean db2-1-220.jh.abc.com
认证完成之后
在agent上应用master上的配置
puppet agent --server=master-test.hupu.com --no-daemonize --verbose --onetime
 master 端查看所有已经认证的机器
puppetca list --all
puppet cert list --all


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *