On Tue, Mar 23, 2010 at 10:14 AM, Roy Nielsen <[email protected]> wrote: > Hello Nigel, > > No, the message was on the client.. figured it out, I didn't have pluginsync > set in /etc/puppet/puppet.conf on the client (thought I had changed it from > factsync, but I hadn't) > > Now I get a different error, that I don't see when I manually copy the file: > > Could not autoload flatpkg: wrong number of arguments (2 for 1) > err: Could not run Puppet configuration client: Invalid package provider > 'flatpkg' at > /Groups/roytest/modules/flattest/manifests/definitions/fpkg.pp:31 > > Do I need to do something special to get it to work from the module tree?
Ah so that looks more familiar. Now try copying it into the libdir on the server :) Unfortunately the server needs to know about valid providers as well. There's a bug around about this. > > On Tue, Mar 23, 2010 at 10:49 AM, Nigel Kersten <[email protected]> wrote: >> >> This error is on the server right? >> >> Does the problem go away if you copy the provider to >> /var/lib/puppet/provider/package/flatpkg.rb on the *server* ? >> >> >> On Tue, Mar 23, 2010 at 9:43 AM, Roy Nielsen <[email protected]> wrote: >> > Hello, >> > >> > I wrote my own package provider for Mac flat packages, copied the .rb >> > file >> > to both the server and client puppet trees. The package provider works >> > fine >> > when I do that. >> > >> > I'd prefer being able to put the provider in a module, say: >> > >> > >> > <environment>/modules/<modulename>/lib/puppet/provider/package/flatpkg.rb >> > >> > (as set out in: >> > >> > http://projects.reductivelabs.com/projects/puppet/wiki/Module_Organisation >> > - >> > we're using 0.25, so we substituted lib for plugins) >> > >> > so I didn't have to manually copy the file to the clients - and it >> > complains >> > that: >> > >> > err: Could not run Puppet configuration client: Invalid package provider >> > 'flatpkg' at >> > /Groups/roytest/modules/flattest/manifests/definitions/fpkg.pp:31 >> > >> > Any suggestions? >> > >> > Thanks, >> > -Roy >> > >> > >> > -- >> > 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. >> > >> >> >> >> -- >> nigel >> >> -- >> 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. > -- nigel -- 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.
