Puppet agent can't get file from puppet master as VM startup

asked 2014-03-24 17:18:17 -0500

Compass gravatar image

updated 2014-03-24 17:19:40 -0500

I have this weird problem with puppet being executed when the VM first time startup.

I have setup a VM image with puppet agent installed and a customization script being executed at first startup. In the script I call "/usr/bin/puppet agent -t --server puppetmaster.example.com" to register this new node and do the initial setup. I got this weird message in the log:

Error: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata for puppet:///modules/sudo/sudoers.rhel6: getaddrinfo: Name or service not known

However ... (more)

edit retag flag offensive close merge delete

Comments

Check the permissions of your /etc/hosts file, also verify that hostname -f and uname -n resolves correctly

spuder gravatar imagespuder ( 2014-03-26 23:42:02 -0500 )edit

Both hostname and uname resolved to the correct domain name. /etc/hosts permission is 644. I assume it is correct?

Compass gravatar imageCompass ( 2014-03-27 00:02:05 -0500 )edit