I've been trying to create a new package provider to support pkgin (see
http://imil.net/pkgin for more about pkgin) as I use it on my Solaris
boxens but I get an error that I don't understand. My code is mainly
taken from the openbsd.rb file.
I still get this error :
err: Could not create uno: Parameter provider failed: Invalid package provider 'pkgin'
warning: Not using cache on failed catalog
warning: Configuration could not be instantiated: Parameter provider failed: Invalid package provider 'pkgin'
The pluginsync works fine and the pkgin.rb file is present on both
client and master (even if I think the master part is not important) but
I can't know if puppet does not find the file or if the file has
something wrong.
pkgin.rb is attached
sample manifest/class :
class tests::pkgin1
{
package { "uno":
provider => pkgin,
ensure => installed
}
}
| Hello,
|
| [...]
Answer to myself : when adding a provider who will reside in a subdir you have to recreate the filesystem hierarchy. Example, when creating a "package" provider you have to place it in "plugins/puppet/provider/package" not in "/plugins/puppet/provider"
Bye,
Nico.
Yeah, this one is a common problem, somehow.
Is there something that led you to think the first path was correct?
Maybe there are some docs we can update or something.
--
Charm is a way of getting the answer yes without asking a clear
question. -- Albert Camus
---------------------------------------------------------------------
Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199
Nothing let me think it was wrong :) I may have missed something but I
did not see any mention of subdirectories when working on (existing)
types.
Perhaps a little mention about this hierarchical organisation could be
added to wiki/Development/ProviderDevelopment ?
Regards,
Nico.