Puppet 安装:检索证书时超时

Puppet 安装:检索证书时超时

尝试按照他们的指南在 Azure 中的 Unbuntu 20.04 VM 上安装最新的 puppet enterprise (2023.0.0)。我从现成的 pe.conf 开始。安装持续了一段时间,直到我收到一些消息,例如:

2023-03-13T18:03:15.664+00:00 - [Notice]: Compiled catalog for [redacted].reddog.microsoft.com in environment enterprise in 0.33 seconds  
2023-03-13T18:08:16.307+00:00 - [Error]: Command exceeded timeout
2023-03-13T18:08:16.309+00:00 - [Error]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[retrieve cert for [redacted].reddog.microsoft.com]/returns: change from 'notrun' to ['0'] failed: Command exceeded timeout  
2023-03-13T18:08:16.316+00:00 - [Notice]: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]: Dependency Exec[retrieve cert for [redacted].reddog.microsoft.com] has failures: true

从这里开始,安装开始变得困难,并最终终止并显示以下消息:

2023-03-13T18:08:16.600+00:00 [ERROR]: !! There were problems during the application of the installation catalog. !!

似乎证书有问题,但我不清楚这里发生了什么。我知道微软在其所有无法解析的虚拟机上添加了 reddog.microsoft.com 的“虚假”DNS 后缀。这是问题所在吗?无法解析的 DNS 条目?

我尝试修改 pe.conf 文件以将“puppet_enterprise::puppet_master_host”值指定为正确解析的 DNS 条目(解析为机器本身),但这没有帮助。

非常感谢任何 puppet/linux 专家的帮助。谢谢!

答案1

我想我已经解决了。在安装程序 conf.d/pe.conf 文件中,有一个部分默认被注释掉:

"pe_install::puppet_master_dnsaltnames": ["puppet"]

我取消了对此的注释,并将我的 FQDN 添加到列表中,然后安装成功进行。

相关内容