How to Create Puppet Module Skeleton?
Step 1 – Install PDK
# RHEL 7
$ sudo rpm -Uvh https://yum.puppet.com/puppet-tools-release-el-7.noarch.rpm
$ sudo yum install pdk
$ exec bash
# RHEL 8
$ sudo rpm -Uvh https://yum.puppet.com/puppet-tools-release-el-8.noarch.rpm
$ sudo yum install pdk
$ exec bash
# Ubuntu 20.04
$ wget https://apt.puppet.com/puppet-tools-release-focal.deb
$ sudo dpkg -i puppet-tools-release-focal.deb
$ sudo apt-get update
$ sudo apt-get install pdk
$ exec bashCode language: PHP (php)
Reference – https://www.puppet.com/docs/pdk/2.x/pdk_install.html
Step 2 – Install PDK
$ pdk new module <MODULE_NAME>
$ pdk new module websphere
root@agent1:~# pdk new module tcb-websphere
pdk (INFO): Creating new module: tcb-websphere
We need to create the metadata.json file for this module, so we're going to ask you 4 questions.
If the question is not applicable to this module, accept the default option shown after each question. You can modify any answers at any time by manually updating the metadata.json file.
[Q 1/4] If you have a Puppet Forge username, add it here.
We can use this to upload your module to the Forge when it's complete.
--> tcb
[Q 2/4] Who wrote this module?
This is used to credit the module's author.
--> Rajesh Kumar
[Q 3/4] What license does this module code fall under?
This should be an identifier from https://spdx.org/licenses/. Common values are "Apache-2.0", "MIT", or "proprietary".
--> Apache-2.0
[Q 4/4] What operating systems does this module support?
Use the up and down keys to move between the choices, space to select and enter to continue.
--> RedHat based Linux, Debian based Linux, Windows
Metadata will be generated based on this information, continue? Yes
pdk (INFO): Using the default template-url and template-ref.
pdk (INFO): Module 'websphere' generated at path '/root/websphere'.
pdk (INFO): In your module directory, add classes with the 'pdk new class' command.
Code language: PHP (php)

I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals