Search code examples
puppet

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


I am newbie to Puppet. As a learning path, I was trying to install a package nagios-common.I have used the below Puppet manifest to install the package.

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

node default {
  include pckd
}

Also i have applied puppet apply on the master node. This package is installed in master successfully.

Below is the /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

I have applied puppet agent -t on the agent nodes and was unable to install the package on the agent node.This package is not installed in the agent node.Added to the above query, is there a time limit to which the package get reflected.


Solution

  • You are getting this error because your master and agent are having some issues with communication, try pinging master from slave and see.

    It should work fine when you add FQDN of master to the \etc\hosts file of agent.