krishna chaitanya kurnala
2014-Feb-19 17:48 UTC
[Puppet Users] connecting puppet master and agent
HI I am new to Puppet and having a tough time understanding the process of how Authentication works in puppet. I am trying to connect puppet 3.4 master and agent on a centos 6 machine. we use host files, rather than dns. This could be a simple question, but, I want to learn to Concepts. I made sure puppet is running on both master and agent. Here is my configuration: On Master: in puppet.conf [master] certname = host.company.com vardir = /var/lib/puppet in /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 puppet ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.16.7.22 host.company.com puppetmaster puppet On Agent: in puppet.conf [main] server = host.company.com in /etc/hosts 10.16.7.22 host.company.com puppetmaster puppet I still cant get them to authorize each other. I am getting different errors: On Agent: sudo puppet agent --server=host.company.com --test Error: Could not request certificate: Connection refused - connect(2) Exiting; failed to retrieve certificate and waitforcert is disabled If I change the certname to a fancy name, it gets even funnier, because, the agent looks for a host with than fancy name as there is no DNS. Please give some info on how to get that working too. Can Someone please guide me. Thanks Krishna -- 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/e90fb96a-97d2-4fb0-960b-da8307e6b5b2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.