Hi, I have installed puppet using gem. Version it is installing is 2.7.10. I want to set up the client server architecture. So when I am running the "puppet agent --server <server> --test", it is giving me the error "err: Could not request certificate: Connection refused - connect(2) Exiting; failed to retrieve certificate and waitforcert is disabled" I have changed the owner of /var/lib/puppet to puppet:puppet. also changed the mode to 0755. Still I am getting this error. Please let me know where I am going wrong. Thanks in advance, Sateesh B. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, On 02/03/2012 01:48 PM, sateesh wrote:> "err: Could not request certificate: Connection refused - connect(2)are you absolutely certain the default port is open on your master? It sure doesn''t look like it.> Exiting; failed to retrieve certificate and waitforcert is disabled"If you don''t have a signed cert yet, you need to specify --waitforcert=60 (or another number of seconds) as well. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks Felix. Solved the problem by adding waitforcert flag in command line. On Feb 3, 6:46 pm, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote:> Hi, > > On 02/03/2012 01:48 PM, sateesh wrote: > > > "err: Could not request certificate: Connection refused - connect(2) > > are you absolutely certain the default port is open on your master? It > sure doesn''t look like it. > > > Exiting; failed to retrieve certificate and waitforcert is disabled" > > If you don''t have a signed cert yet, you need to specify > --waitforcert=60 (or another number of seconds) as well. > > HTH, > Felix-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Puppet Master / Agent is set up now. I have started the puppet master and also started the puppet agent. Puppet master command: puppet master Puppet agent: puppet agent --server <server> --waitforcert=60 I have signed the certificate from the server. I have written the site.pp in master machine to create a sample file in /tmp folder. I have observed that the file is not created. But when I run the agent command along with parameter "--test", then the catalog is executed for the client to create the test file. Please let me know where I have went wrong. I have waited for 1 hour whether the test file will be created after starting the agent. But it didn''t created. Also, is there any way to run a command on server to execute the catalog for the client. Thanks in advance. Sateesh B. On Feb 6, 10:30 am, sateesh <bbalasate...@gmail.com> wrote:> Thanks Felix. Solved the problem by adding waitforcert flag in command > line. > > On Feb 3, 6:46 pm, Felix Frank <felix.fr...@alumni.tu-berlin.de> > wrote: > > > Hi, > > > On 02/03/2012 01:48 PM, sateesh wrote: > > > > "err: Could not request certificate: Connection refused - connect(2) > > > are you absolutely certain the default port is open on your master? It > > sure doesn''t look like it. > > > > Exiting; failed to retrieve certificate and waitforcert is disabled" > > > If you don''t have a signed cert yet, you need to specify > > --waitforcert=60 (or another number of seconds) as well. > > > HTH, > > Felix > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, On 02/06/2012 11:39 AM, sateesh wrote:> when > I run the agent command along with parameter "--test", then the > catalog is executed for the client to create the test file. Please let > me know where I have went wrong. I have waited for 1 hour whether the > test file will be created after starting the agent. But it didn''t > created.Simply running "puppet agent" will fork the agent to the background for regular operation. The catalog from the master should be applied twice an hour. If puppet fails to do so, that''s an error. Please inspect your system logs. The puppet agent should leave a trace of its routine run there, also logs of the changes it makes to your system and any errors that occur.> Also, is there any way to run a command on server to execute the > catalog for the client.Have a look at "puppet kick" please. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.