First page Back Continue Last page Overview Graphics
Modules
Modules allow you to group both the logic and the files for an application together.
Puppet automatically searches its module path to find modules.
Modules can contain four 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".
- 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>/files/<file name>.
- Plugins – additional types, providers or facts.