Put your provider in /etc/puppet/modules/mymodule/lib/
  puppet/provider/package/myprovider.rb

Notice the provider/TYPE subfolder

Hope this does the trick

-Stefan
On Mon, Sep 13, 2010 at 07:52:48AM -0700, SiD wrote:
> Hi all,
> 
> I've recently created a new custom provider. I put it into /etc/puppet/
> modules/mymodule/lib/puppet/provider/myprovider.rb
> 
> So it works fine, at least at the first.
> 
> puppet-agent[8329]: (/File[/var/lib/puppet/lib/puppet]/ensure) created
> puppet-agent[8329]: (/File[/var/lib/puppet/lib/puppet/provider]/
> ensure) created
> puppet-agent[8329]: (/File[/var/lib/puppet/lib/puppet/provider/
> myprovider.rb]/ensure) defined content as '{md5}
> 13be544b81b7e77abfec081b912c4b1f'
> 
> Then, everytime when Puppet reload the configuration, Puppet can not
> find my custom provider anymore :
> 
> puppet-agent[11205]: Could not run Puppet configuration client:
> Parameter provider failed: Invalid package provider 'myprovider' at /
> etc/puppet/modules/mymodule/manifests/init.pp:10
> 
> Line number 10, it's the call to my custom provider :
> 
>   package {
>     "mymodule":
>       ensure   => installed,
>       provider => "myprovider",
>       source   => "/home/mymodule.rpm",
>       vendor   => "--prefix=/myprefix";
>   }
> 
> $ rpm -aq | grep puppet
> puppet-2.6.1-0.3.rc3.el5
> 
> I've also tired with Puppet 2.6.0, but same trouble.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" 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-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to