Puppet Development Kit release notes
Release notes for Puppet Development Kit (PDK), a development kit containing tools for developing and testing Puppet code. For known issues, see PDK known issues
Released 14 September 2017
Generation of defined types
Selection of Operating System support when creating a new module
The module creation interview now asks which Operating Systems your module supports. You can select supported OSes from an interactive dialog menu.
Improved error output
pdk test unitprovides improved error messages when unit tests fail to better show what went wrong. PDK-369
spec_cleanfailures are improved to provide only relevant error information. PDK-465
If you try to create a class that already exists, PDK gives an error instead of a fatal error. PDK-415
User-friendly help messages after generation of a module
After module creation, PDK tells you where the new module is located and what steps you can take next. PDK-365
Modules generated with PDK no longer depend on stdlib module by default
This release removes an unnecessary dependency on the puppetlabs-stdlib module in a newly generated module’s
Installing PDK in a non-default location caused an error
Installing PDK in a non-default location caused an error condition because the template URL was saved into the answer file. With this release, the template URL is no longer saved into the answer file. PDK-430
PDK package installation created unnecessary directories
PDK package installation created an unnecessary directory:
/etc/puppetlabs on Linux,
/private/etc/puppetlabs on OSX,
C:\Documents and Settings\$user\Application Data\PuppetLabs on Windows. These directories are no longer created on installation. PDK-424
.gitattributes file caused Ruby validation failure
An error in the generated
gitattributes file caused Ruby style checking with Rubocop to fail. Now PDK configures
.gitattributes to correctly match end-of-line behavior with the recommended Git attribute configuration, always requiring LF line ends. PDK-443.
PDK module template contained a TravisCI configuration error
An error in the module template’s TravisCI configuration (
.travis.yml) caused TravisCI to not run any CI jobs. This was because the environment variable
CHECK, which specifies what each TravisCI build job should do, was undefined. TravisCI now properly runs the unit tests and validators. PDK-448
PDK conflicted with the Puppet 5 gem
If Puppet 5 and PDK were both specified in a Bundler Gemfile, Puppet code within PDK conflicted with the Puppet 5 gem, causing an unhandled exception. PDK-420
PDK did not work correctly with PowerShell 2
This release improves the PowerShell integration so that PDK works on PowerShell 2, the standard version on Windows 7. PDK-463
PDK not added to PATH in some shells
PDK was not automatically added to the PATH in some shells, including zsh on Mac OS X and Debian. This issue is now resolved on our supported OSes. PDK-446
Released 17 August 2017
PowerShell’s PATH environment variable became corrupted
This release fixes an issue where the PATH environment variable on Windows PowerShell became corrupted, breaking all other PDK commands.
Puppet Development Kit 220.127.116.11
Released 15 August 2017.
This is the first major release of Puppet Development Kit (PDK).
- Generates modules with a complete module skeleton, metadata, and README template.
- Generates classes.
- Generates unit test templates for classes.
- Validates Puppet code style and syntax.
- Validates Ruby style and syntax.
- Runs RSpec unit tests on modules and classes.