Issue #5256 has been updated by Egon Kastelijn.
I sometimes experience the same problem. I found out that restarting the Puppet Master solves the problem but is not needed. A simple "touch site.pp" causes the Puppet Master to "wake up" and generate proper catalogs again. ---------------------------------------- Bug #5256: Ruby DSL changes require puppet master restart https://projects.puppetlabs.com/issues/5256 Author: Nan Liu Status: Accepted Priority: High Assignee: Category: Target version: 2.7.x Affected Puppet version: 2.6.2 Keywords: ruby, dsl Branch: Unlike puppet manifests, changes to Ruby DSL require complete restart of puppet master to take effect. If you edit init.rb file after puppet master process the .rb file the agent will receive a class can not be found error: # vim /etc/puppet/modules/ntp/manifests/init.rb # puppet agent -t err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class ntp at /etc/puppet/manifests/site.pp:2 on node puppet.training A restart resolves the problem: # service puppetmaster restart Stopping puppetmaster: [ OK ] Starting puppetmaster: [ OK ] # puppet agent -t ... notice: puppet.training notice: /Stage[main]/Ntp/Notify[hello]/message: defined 'message' as 'puppet.training' notice: Finished catalog run in 0.76 seconds -- 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.
