OlliesDad@googlemail.com
2012-Oct-12 07:19 UTC
[Puppet Users] Overriding default providers
Hello, I have a need to extend a default provider. Now whilst I can/will raise a request to add the required functionality to the blastwave.rb provider in the short-term what would be the best way to use my extended version. I can add the updated provider to my global module which drops my custom versions in and pluginsync pulls that into $libdir fine. But what is the lookup path list. Will Puppet go to $rubysitedir/... before $libdir or will my synced version get used first consistently ? Thanks Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/YONL5CBfRBMJ. 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.
On Friday, October 12, 2012 2:19:18 AM UTC-5, Olli...@googlemail.com wrote:> > Hello, > > I have a need to extend a default provider. Now whilst I can/will raise a > request to add the required functionality to the blastwave.rb provider in > the short-term what would be the best way to use my extended version. > > I can add the updated provider to my global module which drops my custom > versions in and pluginsync pulls that into $libdir fine. > > But what is the lookup path list. Will Puppet go to $rubysitedir/... > before $libdir or will my synced version get used first consistently ? > >You can test and see whether your custom provider gets chosen. The choice should be consistent, at least as long as the set of other providers remains constant. Safer, though, would be to explicitly specify the provider to use via your resources'' ''provider'' parameter. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/e668T12xccoJ. 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.