Module of the Week: Puppet Module Tool – Part 1
This week we're going to begin our coverage of the Puppet Module Tool (PMT). The PMT is the command-line interface to the Puppet Forge—an online repository for re-usable Puppet modules. As of Puppet 2.7.14 and Puppet Enterprise 2.5 PMT is no longer a separate product; it's now part of Puppet Core. What this means for you is that PMT is ready-to-go out of the box.
New featuresThe latest version of PMT offers a few new features over the previous stand-alone tool:
- Search the Puppet Forge from the command line
- List, upgrade, and uninstall modules
- Automatically resolve and install module dependencies
PMT SearchThe search command searches a repository for modules whose names, descriptions, or keywords match the provided search term. For example, if we search for the term "tomcat", we would get the following output: Notice the results include modules that match based on keywords and the module name.
PMT ListThe list command lists the installed Puppet modules in our modulepath. Notice the apache module has a version number of (???). This is because an apache module is installed but does not have a valid metadata file. If you would like to see how the installed modules relate to each other, use the