> But meanwhile, I have no template, so Im' still wondering where I put my
> type and resource provider files in this thing :-}
> "puppet module build" just seemed to create a "pkg" directory, and a
> tarfile.
> Without some output like the "generate" stuff, I still have been given no
> clue where or how it determines the contents for the tarfile, so I have no
> idea how to even get my files into it, let alone what the right place for
> them are. :(

So the top level location of stuff is defined here:

http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html

And then zooming into the 'lib' stuff:

http://docs.puppetlabs.com/guides/plugins_in_modules.html

You want your type here:

<module_name>/type/<type_name>.rb

And provider here:

<module_name>/provider/<type_name>/<provider_name>.rb

And then make sure your Modulefile has all the correct metadata. It
should be located here:

<module_name>/Modulefile

Find an example here:
https://github.com/puppetlabs/puppetlabs-opennebula/blob/master/Modulefile

And that's the minimum you'll need as far as I'm aware - just those 3
files. Everything else is optional.

Now, running:

puppet module build

Will generate the tarball in:

<module_name>/pkg/<module_name>_<revision>.tar.gz

And thats the bit you want to upload to the forge. Once its uploaded
you should be able to use the module tool to install it.

ken.

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