Mark Foster
2008-Jul-15 23:07 UTC
[Puppet Users] function incompatible with pre-commit hook
I went about implementing the rand function as described here: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions I found it my subversion pre-commit hook. (subversion repo is on another system, not the puppetmaster, so rand.rb is naturally not found). So I''m looking at my alternatives and wondering whether rand could (just) be a define or plugin. Or should I install rand.rb on the subversion server? What is the best approach? -- Mark Foster - Sr. Systems Engineer - BitPusher, LLC We push your bits so you don''t have to! http://www.bitpusher.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Mark Foster
2008-Jul-15 23:12 UTC
[Puppet Users] Re: function incompatible with pre-commit hook
Mark Foster wrote:> I found it my subversion pre-commit hook. (subversion repo is on > another system, not the puppetmaster, so rand.rb is naturally not found). >Ah, I meant to say it BROKE my pre-commit hook. Sorry. -- Mark Foster - Sr. Systems Engineer - BitPusher, LLC We push your bits so you don''t have to! http://www.bitpusher.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
RijilV
2008-Jul-15 23:19 UTC
[Puppet Users] Re: function incompatible with pre-commit hook
2008/7/15 Mark Foster <mfoster@bitpusher.com>:> > Mark Foster wrote: >> I found it my subversion pre-commit hook. (subversion repo is on >> another system, not the puppetmaster, so rand.rb is naturally not found). >> > Ah, I meant to say it BROKE my pre-commit hook. > Sorry. >Yeah, I ran into this as well. I ended up doing a short term fix and a long term fix. short term: have the pre-commit hook ignore my site.pp long term: migrate to an external node classification tool and just include all the information the custom functions where generating there. Obviously I''m not generating a random number. I''m curious why you''re doing this :) .r'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Jul-16 07:59 UTC
[Puppet Users] Re: function incompatible with pre-commit hook
Hi> I went about implementing the rand function as described here: > http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions > > I found it my subversion pre-commit hook. (subversion repo is on another > system, not the puppetmaster, so rand.rb is naturally not found). > > So I''m looking at my alternatives and wondering whether rand could > (just) be a define or plugin. Or should I install rand.rb on the > subversion server? What is the best approach?This is tracked in Bug #1387 [1], I couldn''t yet find a solution for it and just disabled the pre-commit hook :-/ If you have additional infos or even a solution, it would be nice to feed the bug tracker. greets Pete [1] http://reductivelabs.com/redmine/issues/show/1387 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---