如何检查puppet配置是否正确?(How to check if puppet is configured correctly?)

如何检查我的木偶设置(一个主服务器,Ubuntu 14.04上的一个代理)是否配置正确? 是否有一些命令来验证一切是否正确?

How can I check if my puppet set-up (one master, one agent on Ubuntu 14.04 ) is configured correctly? Is there some command to verify if everything is right?

最满意答案

如果你想知道,木偶代理是否可以连接到木偶大师并拉动配置。 您可以尝试在干运行模式下运行代理程序:

puppet agent -t --noop

有关详细信息,请访问: https : //docs.puppet.com/puppet/latest/reference/man/agent.html

注意:如果您没有启用自动签名,则可能需要在主服务器上签署puppet agent证书。

If you want to know, whether the puppet agent can connect to the puppet master and pull the configs. You can try running the agent in dry-run mode:

puppet agent -t --noop

For more details: https://docs.puppet.com/puppet/latest/reference/man/agent.html

Note: You may need to sign the puppet agent cert on the master, if you don't have auto signing enabled.

如何检查puppet配置是否正确?(How to check if puppet is configured correctly?)

如何检查我的木偶设置(一个主服务器,Ubuntu 14.04上的一个代理)是否配置正确? 是否有一些命令来验证一切是否正确?

How can I check if my puppet set-up (one master, one agent on Ubuntu 14.04 ) is configured correctly? Is there some command to verify if everything is right?

最满意答案

如果你想知道,木偶代理是否可以连接到木偶大师并拉动配置。 您可以尝试在干运行模式下运行代理程序:

puppet agent -t --noop

有关详细信息,请访问: https : //docs.puppet.com/puppet/latest/reference/man/agent.html

注意:如果您没有启用自动签名,则可能需要在主服务器上签署puppet agent证书。

If you want to know, whether the puppet agent can connect to the puppet master and pull the configs. You can try running the agent in dry-run mode:

puppet agent -t --noop

For more details: https://docs.puppet.com/puppet/latest/reference/man/agent.html

Note: You may need to sign the puppet agent cert on the master, if you don't have auto signing enabled.