Puppet agent can't get file from puppet master as VM startup
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)