【问题标题】:Packages are installed in Puppet master are not installed in Puppet agent nodes软件包安装在 Puppet 主节点中 未安装在 Puppet 代理节点中
【发布时间】:2018-04-13 23:23:34
【问题描述】:

我是 Puppet 的新手。作为一个学习路径,我试图安装一个包nagios-common。我已经使用下面的 Puppet 清单来安装这个包。

class pckd {
  package {'nagios-common':
    ensure => present,
  }
}

node default {
  include pckd
}

我还在主节点上应用了puppet apply。这个包安装成功了。

下面是/var/log

labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution
labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution
labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution
labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution
labcluster01node01 nagios: Auto-save of retention data completed successfully.
labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution
labcluster01node01 puppet-agent[99575]: Could not request certificate: getaddrinfo: Temporary failure in name resolution

我在代理节点上申请了puppet agent -t,无法在代理节点上安装包。代理节点中没有安装这个包。在上面的查询中添加了,该包是否有时间限制得到反映。

【问题讨论】:

  • 这些日志表明您的客户端未成功针对您的主服务器上的 CA 进行认证。你需要先解决这个问题。
  • 当然。我会检查的。
  • @MattSchuchard 我尝试在代理节点中运行 shell 脚本。我成功地执行了它。如果存在认证问题,那么它就不会安装在代理节点中。

标签: puppet


【解决方案1】:

您收到此错误是因为您的 master 和 agent 在通信方面遇到了一些问题,请尝试从 slave ping master 并查看。

将 master 的 FQDN 添加到代理的 \etc\hosts 文件中应该可以正常工作。

【讨论】:

  • 谢谢它对我有用。就像你说的,我已将 master 的 FQDN 添加到代理的主机文件中
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-04
  • 1970-01-01
  • 1970-01-01
  • 2017-12-07
  • 2016-07-23
  • 1970-01-01
相关资源
最近更新 更多