Puppet Labs: Develop modules faster with the new Puppet Development Kit

综合技术 2017-08-15

We are excited to announce the first release of our new open source Puppet Development Kit (PDK).Download it, get helpinstalling it and then run through the Getting Started Guide
to learn more.

With the Puppet Development Kit you can:

  • Quickly get started developing Puppet modules while using best practices and new integrated tools that enable you to develop, test and publish high-quality Puppet modules.
  • Shift quality to the left by catching issues earlier and faster, before Puppet code is applied to live infrastructure.
  • Unit-test modules from your workstation to ensure that Puppet code is creating and managing resources as intended.

The Puppet Development Kit addresses long-standing needs of our Puppet Enterprise and open source users, as well as our Technology Alliance Partners
. Tools like puppet-lint and rspec-puppet have been around for a long time to help you catch issues in your code. However, you had to discover these tools, install them and figure out how to use them effectively on your own. With the Puppet Development Kit, we now take care of all that, so you don't have to.

For those of you writing your Puppet code on workstations that run Windows — and there are a lot of you! — it's important to us that you have a great experience while developing Puppet code. With the Puppet Development Kit, we’ve improved Windows support for all the included tools, and created a native package for Windows. Once you’ve installed the Puppet Development Kit on your Windows box, you can just open the PowerShell Console and start working. Of course, there are native packages for OS X and Linux as well.

The Puppet Development Kit arms our customers and partners with a bundle of helpful tools for anyone who writes or consumes Puppet code, plus a simple, unified interface to those tools. We’ve improved the module skeleton, and the Puppet Development Kit will generate modules and classes for you, plus get you started with unit testing.

The Puppet Development Kit introduces a new command line interface (CLI), named pdk
, to provide a consistent interface for creating, developing and testing modules. Under the hood are puppet-lint, puppet-syntax, metadata-json-lint, rspec-puppet, rspec-puppet-facts and other tools.

To date, our vibrant community of customers, users and partners have contributed to more than 5,000 modules on thePuppet Forge — modules that help you automate everything from NTP and DNS to Apache, IIS, WebSphere, Microsoft Azure, Splunk, Docker and much more.

Puppet modules are the “batteries included” of automated configuration management, because they let you begin automating different parts of your infrastructure without having to write Puppet code from scratch. With this release, we’re providing you with the tools and prescriptive best practices you need to easily develop Puppet modules that are tested, hardened and trusted.

The Puppet Development Kit open source project lives at https://github.com/puppetlabs/pdk
, and we’d love to get your comments and contributions.

I’d like to thank the Puppet development team for the hours the spent making this release happen. I also want to thank the community members who offered the first feedback on the PDK, making this release so much better.

Lindsey Smith is a senior product manager in engineering at Puppet.


Puppet Labs: Top 5 reasons to get Puppet training ... The demand for professionals who know their way around Puppet is high — and continues to grow. So for individual people, Puppet training is a big adv...
Puppet Labs: Puppet 5 Platform is released! I have run out of superlatives to try to express how excited I am about this release, so I'll just put it out there: The Puppet 5 Platform is avai...
Counting Resource Translation Misses This is another post in the wake of CfgMgmtCamp 2018, where the mgmt hack room saw lively discussion that inspiredsome new ideas as well as reminding...
Example 42: Tip of the Week 38 – When to pla... When Puppet Inc. released hiera, we gained the possibility to separate data from code. Prior hiera we used logic patterns like if and case to...
onekick Back in 2014 I moved to San Francisco and joined ThousandEyes looking for a more challenging role, along with a few other reasons. One of the probl...