We recommend that you use the open source Puppet Development Kit (PDK) to write and validate Puppet code and modules. The PDK includes a complete module skeleton, testing tools and all dependencies needed for its use.
You can also convert an existing module to a standardized PDK module with an infrastructure for testing it. This allows you to use PDK tools for creating classes, defined types, and tasks in your module, as well as validating and unit testing it.
Learn about PDK commands from our Command Reference. The most used commands are:
pdk new (
pdk validate, and
If you use the PDK to write code that doesn’t work and your code fails rspec testing, this is likely a code issue. If you have an issue with your code, you can ask for help from our community Slack, and IRC.
Provide feedback for the PDK
If you have any feedback or feature requests for the PDK, please provide feedback at the PDK JIRA project.