Issue #7273 has been updated by Ben Hughes. Status changed from Investigating to Needs Decision
You can change puppet.conf and it will re-read it, but it will only re-read it at the start of a run. <pre> puppet agent --runinterval 120 --filetimeout 5 && sleep 25 && touch /etc/puppet/puppet.conf </pre> Which gives <pre> Jul 7 17:37:12 a4 puppet-agent[7596]: Finished catalog run in 11.22 seconds Jul 7 17:37:22 a4 puppet-agent[7596]: Reparsing /etc/puppet/puppet.conf Jul 7 17:39:45 a4 puppet-agent[7596]: Finished catalog run in 14.14 seconds </pre> This is due to puppet agent sleeping during that period. I'm not sure if event-loop is capable of having a hook into it to monitor the config file. (not aided by event-loop's website being down http://www.brockman.se/software/ruby-event-loop/). One notions that it could be tunable of a re-run hook on the end of reparse in lib/puppet/settings.rb. We would need to be careful to not change current behaviour and be very careful to get stuck in an infinite loop of reparsing itself. Something akin to: <pre> diff --git i/lib/puppet/util/settings.rb w/lib/puppet/util/settings.rb index f243b86..1f3a96c 100644 --- i/lib/puppet/util/settings.rb +++ w/lib/puppet/util/settings.rb @@ -415,6 +415,10 @@ class Puppet::Util::Settings Puppet.notice "Reparsing #{file.file}" parse reuse + if self[:runonconfigreparse] == true + # Thread safety goes here. + Puppet.run + end end end </pre> Matt/Nigel, adding both of you as watchers as I'd like sign-off/comments from both of you. Thanks. ---------------------------------------- Bug #7273: Modifying puppet.conf causes 'reparsing config' and TERM signal results in shutdown of daemon https://projects.puppetlabs.com/issues/7273 Author: Randall Hansen Status: Needs Decision Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: ... waiting for details from Ryan Conway ... -- 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.
