Andriy Yurchuk
2013-Feb-13 13:49 UTC
[Puppet Users] Daemonize puppet agent but disable periodic runs
I need puppet agent daemon running because I need to access agent''s REST API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api). But I don''t need the agent to run periodic checks. Is there any way to either access REST API without daemonizing agent (I suspect this id not possible) or disable periodic runs while running agent as a daemon? -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Vaidas Jablonskis
2013-Feb-13 15:51 UTC
[Puppet Users] Re: Daemonize puppet agent but disable periodic runs
You would have to run your agent daemon wiht ''--no-client'' parameter. See ''man puppet.conf''. On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote:> > I need puppet agent daemon running because I need to access agent''s REST > API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api). > But I don''t need the agent to run periodic checks. Is there any way to > either access REST API without daemonizing agent (I suspect this id not > possible) or disable periodic runs while running agent as a daemon? >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Andriy Yurchuk
2013-Feb-14 10:21 UTC
[Puppet Users] Re: Daemonize puppet agent but disable periodic runs
This works, but this disables the ability to push configs via MCollective, i.e. mco puppet runall/runonce do not work. On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis wrote:> > You would have to run your agent daemon wiht ''--no-client'' parameter. See > ''man puppet.conf''. > > On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote: >> >> I need puppet agent daemon running because I need to access agent''s REST >> API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api). >> But I don''t need the agent to run periodic checks. Is there any way to >> either access REST API without daemonizing agent (I suspect this id not >> possible) or disable periodic runs while running agent as a daemon? >> >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Feb-15 15:29 UTC
Re: [Puppet Users] Re: Daemonize puppet agent but disable periodic runs
Hi, have you made sure you pass the --listen option alongside --no-client? On 02/14/2013 11:21 AM, Andriy Yurchuk wrote:> This works, but this disables the ability to push configs via > MCollective, i.e. mco puppet runall/runonce do not work. > > On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis wrote: > > You would have to run your agent daemon wiht ''--no-client'' > parameter. See ''man puppet.conf''. > > On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote: > > I need puppet agent daemon running because I need to access > agent''s REST API > (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api > <http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api>). > But I don''t need the agent to run periodic checks. Is there any > way to either access REST API without daemonizing agent (I > suspect this id not possible) or disable periodic runs while > running agent as a daemon?-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Andriy Yurchuk
2013-Feb-15 15:29 UTC
[Puppet Users] Re: Daemonize puppet agent but disable periodic runs
There is a ignoreschedules option for puppet agent (http://docs.puppetlabs.com/references/latest/configuration.html#ignoreschedules), but it does not seem to work. Even if it is set to true the agent is being run every "runinterval" seconds. On Thursday, February 14, 2013 12:21:39 PM UTC+2, Andriy Yurchuk wrote:> > This works, but this disables the ability to push configs via MCollective, > i.e. mco puppet runall/runonce do not work. > > On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis wrote: >> >> You would have to run your agent daemon wiht ''--no-client'' parameter. See >> ''man puppet.conf''. >> >> On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote: >>> >>> I need puppet agent daemon running because I need to access agent''s REST >>> API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api). >>> But I don''t need the agent to run periodic checks. Is there any way to >>> either access REST API without daemonizing agent (I suspect this id not >>> possible) or disable periodic runs while running agent as a daemon? >>> >>-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Andriy Yurchuk
2013-Feb-15 15:57 UTC
Re: [Puppet Users] Re: Daemonize puppet agent but disable periodic runs
Yes, I had --no-client and listen = true in puppet.conf. With these settings the agent does not respond to MCollective calls. On Friday, February 15, 2013 5:29:44 PM UTC+2, Felix.Frank wrote:> > Hi, > > have you made sure you pass the --listen option alongside --no-client? > > On 02/14/2013 11:21 AM, Andriy Yurchuk wrote: > > This works, but this disables the ability to push configs via > > MCollective, i.e. mco puppet runall/runonce do not work. > > > > On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis > wrote: > > > > You would have to run your agent daemon wiht ''--no-client'' > > parameter. See ''man puppet.conf''. > > > > On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote: > > > > I need puppet agent daemon running because I need to access > > agent''s REST API > > ( > http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api > > < > http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api>). > > But I don''t need the agent to run periodic checks. Is there any > > way to either access REST API without daemonizing agent (I > > suspect this id not possible) or disable periodic runs while > > running agent as a daemon? >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.