Puppet Survival Commands

Puppet Survival Commands

In this article i will be sharing the main puppet commands you will be using most frequently.

Below are other articles you may want to take a loot at:


Testing Puppet Agent

puppet agent --test --ca_server=master-server-name

List Certificates

puppet cert list


List Nodes from Master

puppet cert list --all

Test Puppet Agent

puppet agent --test --noop


List All Resources

puppet describe --list

Check Resource Manual

puppet describe file

puppet describe package


List Used Resources

Puppet resource --types "This will list available resources used in the server"


List All Resources Available to Use

Puppet describe list   "This will list available resources"


Get Available Options "Parameters Example"

You don't need to remember everything and instead you can use something like below example to get all options.

puppet resource file /etc/passwd


puppet resource package httpd


Check Facts About System and Puppet


And you can use parameters like -p -a ...etc

facter memoryfree
facter is_virtual processor0


Run Puppet Without Applying Changes "Dry Run"

puppet agent -t --noop


Disable and Enable Agent

puppet agent --enable

puppet agent --disable


Find All Classes

cat /var/lib/puppter/classes.txt


Managing Puppet Certificates "From Master Server"

puppet cert list

puppet cert list --all

puppet cert sign <name>


Managing Modules


puppet module list


puppet module install <name>  // You get the name from forge.puppet.com, check article for more.


puppet module uninstall <name>




puppetd --test # enable standard debugging options
puppetd --debug # enable full debugging
puppetd --one-time --detailed-exitcodes # Enable exit codes:
# 2=changes applied
# 4=failure








Subscribe to
for video tutorials updates