Skip to content

Instantly share code, notes, and snippets.

@miguelfito
Last active December 21, 2016 07:09
Show Gist options
  • Save miguelfito/d799c4c7958be6d229f7d8d284c93a95 to your computer and use it in GitHub Desktop.
Save miguelfito/d799c4c7958be6d229f7d8d284c93a95 to your computer and use it in GitHub Desktop.
Puppet Cookbook
# Start Puppet Master process in foreground (v3.x)
puppet master --no-daemonize --debug --verbose
# Start Puppet Agent test without doing any change (v3.x)
puppet agent --test --debug --noop
# Get puppet config for a parameter
puppet config print "name_of_the_parameter"
# ... or print full configuration and then filter
puppet config print | grep -i "filter"
# See pending certificates on Puppet Master
puppet cert list
# Sign a pending certificate
puppet cert sign "name_of_the_cert"
# Get facts for a given node and pretty print in JSON
puppet facts find windu.redhat | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment