The PDK (Puppet Development Kit) is a set of tools for developing and testing modules. Puppet released the PDK to make developing modules easier and, more importantly, consistent.
To use the PDK, install the PDK following the directions at https://puppet.com/docs/pdk/latest/pdk_install.html.
For RHEL installations, pdk
can be installed with the puppet5 YUM repo
using the following:
[root@cookbook ~]# yum install pdk Loaded plugins: fastestmirror ... Running transaction Installing : pdk-1.5.0.0-1.el7.x86_64 1/1 Verifying : pdk-1.5.0.0-1.el7.x86_64 1/1 Installed: pdk.x86_64 0:1.5.0.0-1.el7 Complete!
Debian/Ubuntu LTS releases, such as Trusty and Xenial, have the PDK available in the apt
repository: http://apt.puppet.com/dists/xenial/puppet5/binary-amd64/
macOS and Windows have their own packages, available at https://puppet.com/download-puppet-development-kit.
The PDK will be installed into /opt/puppetlabs/pdk
; add /opt/puppetlabs/pdk/bin
to your PATH
variable...