Use the open source Puppet Development Kit (PDK) to write and validate Puppet code and modules. 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.
We’d like to make sure that you get help with PDK and your code. We support PDK, but not the code created with it.
If you use PDK to write code that doesn’t work but your code passes rspec testing, please submit a priority 3 ticket so that we can help you figure out if there is an issue with PDK or an issue with your code.
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 the pe-users mailing list.
If you find a bug in PDK, please provide feedback at the PDK Jira project. If you have ideas for new features or enhancements for PDK, we welcome them! Please visit the Puppet Idea Portal or send an email with your company name, contact information, and ideas to email@example.com.
Learn about PDK commands from our command reference. The most used commands are:
pdk new (
pdk validate, and
pdk test unit.