On Tuesday, July 24, 2012 1:04:38 PM UTC-5, Zippy Zeppoli wrote: > > >Does directory /var/run/puppet exist? Does the puppet agent have write > access to it? (Don't neglect to consider SELinux if you're running it in > enforcing mode.) > Yes it exists, and I turned selinux off just to make sure. It still has > the same problem. > > [root@ip ~]# puppet agent >
That would be a lot more informative if you included the --debug flag. You might also want --no-daemonize. Or else just use --test as you did before: it's *this* kind of testing for which that is intended. > dnsdomainname: Unknown host > dnsdomainname: Unknown host > Could not prepare for execution: Could not create PID file: > /var/run/puppet/agent.pid > How about tackling those "Unknown host" messages. Maybe that will even resolve the issue. I think you will find that the messages are ultimately coming from the 'dnsdomainname' command (and thus that bit is not fundamentally a Puppet problem). Its name notwithstanding, that command does not necessarily rely on DNS lookups. It does rely on the system's resolver library, which *can* attempt to perform DNS lookups, but it will look first in /etc/hosts if you have it so configured (in /etc/nsswitch.conf). It is a fundamental problem if a computer cannot resolve its own name, as seems to be the case for you, but I can't offer much specific help. I can say that in my experience, it is best to set the system hostname to a fully-qualified domain name (even if it's not registered in DNS). If you prefer GUI tools, then you can set the system hostname through CentOS's "Network Configuration" applet. Also, if you change the hostname then you may need to restart the system for it to recognize that you have done so. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nuw_9WsTnGsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
