Integrating the PDK

The Puppet PDK provides us with a framework for repeatable Continuous Integration. We'll be taking our bare bones module and converting it with PDK, and then we will begin by using PDK validate to replace our basic puppet parser validate command. Because the PDK is available on our Jenkins master, all PDK commands will also be available for use.

Our first step will be to change branches so that we don't impact the master as we're adding new code:

[root@pe-puppet-master profile]# git checkout -b pdkSwitched to a new branch 'pdk'

Next, let's convert our existing module with the PDK convert command. We'll be prompted with a series of questions, mostly aimed at publishing modules to the forge. The final question asks which ...

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.