hunkeelin
2014-Oct-24 05:00 UTC
[Puppet Users] unable to establish connection between agent and master.
I know this question has been asked before in many different variant. I read all the post related to the problem but I cannot get agent and master talking to each other. I boot up 2 vm via vmwork station both running on linuxmint 17. I'll start this thread by telling what's my /etc/hosts and /etc/hostname in client and puppetmaster looks like. In my client's vm my host name in /etc/hostname looks like the following: puppetclient my client's vm hosts in /etc/hosts looks like the following: 127.0.0.1 localhost 127.0.1.1 puppetclient 192.168.75.143 puppetmaster In my master's vm /etc/hostname looks like the following: puppetmaster My master's vm /etc/hosts looks like the following: 127.0.0.1 localhost 127.0.1.1 puppetmaster 192.168.75.144 puppetclient My /etc/puppet/puppet.conf in my master looks like the following: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY my /etc/puppet/puppet.conf in my client looks like the following: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY [agent] server=puppetmaster I have many variant of puppet.conf during my search and I don't feel like posting here. One of the variant is to have `server=puppetmaster`in [main] in both my client and master's vm. Anyways, for all the puppet.conf variants i tried, my first error when I run `sudo puppet agent --test` is always `warning: unable to fetch my node definitoin, but agent run will continue:`the error after that is different for each variant of puppet.conf I implement. Can anyone tell me the right configuration for my setup? Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fee20e12-a57e-42f0-b5af-acc644dbdb12%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.