puppet - Windows Puppet 代理无法连接到 AWSOpsWorks Puppet Enterprise 主服务器

标签 puppet aws-opsworks puppet-enterprise

我使用 aws opsworks 创建了 puppet master。我可以将 ami linux 节点自动添加到 puppet master。

当我尝试通过此链接 https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package 将 Windows 64 位节点添加到我的 Puppet Master 时遇到问题

我将 puppet-agent-x64.msi 从所在位置的 puppet master 复制到 Windows 节点和/opt/puppetlabs/server/data/packages/public//windows-x86_64-/并运行安装程序进行安装中介。安装成功,“开始”菜单包含一个 Puppet 文件夹,其中包含用于手动运行代理、运行 Facter 以及打开命令提示符以与 Puppet 工具一起使用的快捷方式。

但是 Windows 节点没有显示在 puppet web ui 中,当我尝试运行 puppet 代理时,我收到此错误

"Running Puppet agent on demand ...
Error: Could not request certificate: Error 403 on SERVER: Forbidden request: /puppet-ca/v1/certificate/ca (method :get). Please see the server logs for details.
Exiting; failed to retrieve certificate and waitforcert is disabled
Press any key to continue . . ."

最佳答案

您需要在 OpsWorks Master 上将 allow_unauthenticated_ca 设置为 true,然后在其上运行 puppet 来进行更改。之后,即使您没有从 AWS 进行配置或选择不使用用户数据脚本,您也应该能够安装代理。

步骤:

  1. 登录控制台。
  2. 点击分类
  3. 在 PE 基础架构下,选择 PE 主控。
  4. 转到配置选项卡
  5. 查找类puppet_enterprise::profile::master
  6. 在参数下,选择 allow_unauthenticated_ca 并将其设置为 true

屏幕截图:

enter image description here

关于puppet - Windows Puppet 代理无法连接到 AWSOpsWorks Puppet Enterprise 主服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48647384/

相关文章:

puppet-enterprise - 如何自动将节点添加到组中?

ssl - puppet 企业 ssl 证书错误

amazon-web-services - 我无法添加 "AWS": "*" in my cloudformation code

amazon-web-services - 如何接收 OpsWorks 部署通知?

kubernetes - Puppet kubernetes 模块

puppet 4.7 - 如何在运行结束时执行某些操作?

deployment - Opsworks Chef 12 Recipe

puppet - 禁用 Puppet 代理运行间隔

linux - Puppet 或 Chef 上的虚拟主机/Apache 设置,需要重新配置吗?

puppet - 如何修复 'Could not parse for environment production'错误?