Puppet Modules
When you have multiple files related to a single application, it often
makes sense to turn them into a module. This allows you to distribute
all of the files in one chunk, and Puppet will automatically look
through its module path for the files when you go to use them.
Modules can contain three types of files, each of which must be stored
in a separate subdirectory:
Manifests – must be stored in manifests/, and if you create
manifests/init.pp then that file will be loaded if you import the
module name directly, e.g. import “mymodule”. All other manifests must
have the module name included in the import statement, e.g., import
“mymod/mymanifest”.
Templates – must be stored in templates/, and the module name must
be added to the template name: template(“mymodule/mytemplate.erb”)
Files – stored in files/, these are available from the file server
under modules/<module name>/<file name>.
These three file types cover all of the content you would provide to
puppetmasterd. For a more detailed description of how modules should
be organised, see Module Organization .
http://123maza.com/48/joy002/
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.