Issue #4411 has been updated by Valdis  Vitayaudom.

please note  that http://linux.die.net/man/8/puppet.conf says

... boolean options are turned on and off with a slightly different syntax on 
the command line:
    $ puppetd --storeconfigs

    $ puppetd --no-storeconfigs
The invocations above will enable and disable, respectively, the storage of the 
client configuration.
...
The file follows INI-style formatting. Here is an example of a very simple
puppet.conf file:

    [main]
      confdir = /private/puppet
      storeconfigs = true


... So one would think that the following in puppet.conf
    [agent]
      interval = 1
      listen = true  
      client = false

would work behave the same way as

    $ puppet agent --no-client --listen --interval 1

in fact I had better luck in puppet.conf using

    [agent
      interval = 1
      listen = true
      no-client = true 

where it only ran once 

except that I get the following error message in every startup

    err: Could not parse /etc/puppet/puppet.conf: Could not match line     
no-client = false at /etc/puppet/puppet.conf:    no-client = false

----------------------------------------
Bug #4411: runinterval=0 does not behave as expected
https://projects.puppetlabs.com/issues/4411

Author: Oliver Hookins
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.4
Keywords: 
Branch: 
Affected URL: 


Arguably "most" applications that can be configured to run periodically take a 
period of "0" to mean "don't run periodically". In Puppet's case, the value of 
runinterval is passed directly to the agent timer loop.

Evidently, EventLoop::Timer is happy to fire off an event after 0 seconds have 
passed and thus runinterval=0 signifies "run constantly" which is not the 
expected nor desired behaviour (would *anyone* want this behaviour???).

So I propose that a value of 0 should be taken to mean "disable the timed run 
loop".


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
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-bugs?hl=en.

Reply via email to