On Tue, Sep 18, 2012 at 11:43 AM, Philip Brown <[email protected]> wrote: > On Tue, Sep 18, 2012 at 11:27 AM, Andy Parker <[email protected]> wrote: >> On Tue, Sep 18, 2012 at 10:04 AM, Philip Brown <[email protected]> wrote: >> >>> Still wondering how to force override of a package provider type for >>> "puppet resource package ..." command line use, though. >>> >> >> I think (haven't tried) that you can do "puppet resource .... >> provider=pkg_test" if you also rename the provider to pkg_test in the >> pkg_test.rb file. >> > > Hmm. well, it does seem to not complain, if you put it as the last > thing on the line. > However, according to --debug, it doesn't seem to actually DO anything. > It still calls all the other providers. > > debug: Puppet::Type::Package::ProviderRpm: file rpm does not exist > debug: Puppet::Type::Package::ProviderUp2date: file > /usr/sbin/up2date-nox does not exist > .... >
That is odd. However, this should only work if you have a self.instances method. Can you post the code that you are trying to use? > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" 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-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
