The pdk new command

The command pdk new module brings the user to a prompt, requesting that the user specify the Puppet Forge username, the author's full name, the module license, and the supported operating systems. If you do not have a Forge username or a module license, you can enter in any value. After the prompt, you'll find a new directory that contains code. If you want to send this code to an upstream repository, follow these steps on the command line:

# From directory pdk new module was run in, enter the module, create a# git repository and add all files to staging$ cd module$ git init$ git add .# Initial Commit is a good common message as a starting point$ git commit -m 'Initial Commit'# Add the upstream remote$ git remote add origin ...

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.