软件包安装在 Puppet master 中未安装在 Puppet agent 节点中

Packages are installed in Puppet master are not installed in Puppet agent nodes

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

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

node default {
  include pckd
}

我也在主节点上应用了puppet apply。此包已成功安装到 master 中。

下面是/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,但无法在代理上安装包 node.This 包未安装在代理中 node.Added 以上查询,是包裹反映有时间限制。

您收到此错误是因为您的主服务器和代理服务器在通信方面存在一些问题,请尝试从从服务器 ping 主服务器并查看。

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