Thanks guys, a stupid mistake from my side.
But the strange thing, it works the first time, and then Puppet can
not find anymore the custom provider.

One more thing : the official (?) documentation is not update to
date : http://docs.puppetlabs.com/guides/plugins_in_modules.html.

Thanks a lot for your quick help !

On Sep 14, 9:39 pm, Erik <[email protected]> wrote:
> Yes, this does the trick.  Thanks!
>
> Erik
>
> On Sep 13, 12:55 pm, Stefan Schulte <[email protected]>
> wrote:
>
> > 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 
> > > athttp://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