On Wed, Sep 19, 2012 at 2:11 PM, Philip Brown <[email protected]> wrote:
> On Wed, Sep 19, 2012 at 1:30 PM, Andy Parker <[email protected]> wrote:
>> On Tue, Sep 18, 2012 at 4:26 PM, Philip Brown <[email protected]> wrote:
>>> puppet  resource --debug package gnu-patch provider=pkg_test
>>>...
>>> You will then see debug output by practically all other package providers.
>>>
>>
>> Could you provide that debug output. I'm at a loss for what is happening now.
>
>
> okies.
> This is actually from a "standard" machine without pkg_test, so
> command line I used is
> puppet  resource --debug package gnu-patch provider=pkg >/tmp/output 2>&1
> Excerpt from output:
>
> # more /tmp/output
> debug: Puppet::Type::Package::ProviderPortupgrade: file 
> /usr/local/sbin/portupgr
> ade does not exist
> debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox 
> does n
> ot exist
> debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not 
> exis
> t
> debug: Puppet::Type::Package::ProviderBlastwave: file pkg-get does not exist
> debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_info does 
> not
> exist
> debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist
> debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does not 
> exi
> st
>
> and so on and so forth.
>
> So, on solaris, it is having ALL providers for resource type package, poll.
> Whether you specify a provider explicitly on commandline, or not.
>

Yeah, even when a provider is specified it'll check the others to see
if they would work. I'm not certain why that is done, but may not be
needed. However, I dont' think it is causing the problem.

Are you certain that the pkg_test.rb file is available in the load
path when you are running puppet? One way to find out if it is looking
at the right files is to break the pkg.rb provider and see if your
command breaks. This will tell you if it is loading the code you think
it is.

> --
> 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.

Reply via email to