On 01-12-10 01:19, Roy Nielsen wrote: > You also have to put the function in the right place on the server, not > just in: > > modules/mymodule/lib/puppet/parser/functions/ > > Try putting it in: > /var/puppet/lib/puppet/parser/functions/ > > as well. At least this is what was required in 0.25.1 :)
No, that doesn't seem to be necessary with 2.6.1, at least not to get the function loaded /initially/. Perhaps it helps to copy the file there once it is changed, it didn't try that. Reloading the Puppetmaster solves the problem, I was just wondering if that is expected, or if it could be a bug. Best regards, Martijn. > On 11/30/10 6:43 AM, Martijn Grendelman wrote: >> Hi, >> >> Today, while working on some functions in Puppet, I got back lots of >> unexpected results. Lots of times, it seemed like my changes in the code >> were not picked up when I re-ran the test-classes. >> >> Even functions that I removed from the code, after using them once or so, >> kept working after removal, until.. I restarted the puppetmaster. >> >> Is is necessary to restart the puppetmaster after making changes in >> functions? >> >> I have been following >> http://projects.puppetlabs.com/projects/1/wiki/Writing_Your_Own_Functions. >> >> I read "it’ll be loaded by the Puppetmaster when you first use that >> function.". That, I can confirm, but is it REloaded, ever? >> >> The functions live in a module, in >> modules/mymodule/lib/puppet/parser/functions/ >> >> Everytime I do a catalog run on a test client, I see the diffs in the >> code >> passing on the screen after "info: Retrieving plugin", but the >> puppetmaster doesn't seem to pick up. >> >> I run Puppet 2.6.1. >> >> Best regards, >> Martijn. >> > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.