Puppet Cheat Sheet



Puppet Cheat Sheet

Puppet Cheat Sheet

I’m trying to keep a log of my fixes, stuff learned while using puppet.
Many have skipped my mind already. 😦
I’ll try to change publish date on this post every time I edit it so that it stays on top.

Puppet Code Cheat Sheet

How to find config settings or env variables in puppet?

$ puppet --configprint templatedir # Specific Env Variable
templatedir = /var/lib/puppet/templates
$ puppet --configprint all # Specific Env Variable
..

  1. Puppet Cheat Sheet. A lot of this is taken from Puppet 3 Beginner's Guide by John Arundel Table of Contents. Puppet Cheat Sheet. Check puppet version. File content manifest - site.pp. File content manifest - node.pp - for multiple nodes. Specific version. Removing packages.
  2. “CHEAT SHEET” NOW: First Name. Learn how to be able to push and how we started the Puppet Podcast with free resources. We are here to help the community get out of obscurity and to show the world how the art of puppetry will always be exist.
  3. Puppet is the industry standard for IT automation. Module cheat sheet. Open Source Puppet — 5.5. A quick reference to Puppet module terms and concepts.

Puppet Agent Commands

How to syntax check your templates?

$ erb -x -T '-' ./files/apt/sources.list.erb | ruby -c
Syntax OK
$ erb -x -T '-' ./files/apt/sources.list.d/lenny-backports.list.erb | ruby -c
Syntax OK

Puppet Cheat SheetPuppet cheat sheetPuppet resource cheat sheet

Puppet Exported Resources Cheat Sheet

Aja konalhe plus sdi i/o driver. This cheat sheet is designed for those who have already stepped forward into learning Chef but needs a more handy aid. This open-source tool, released by Opscode, is a config management technology developed primarily to automate infrastructure provisioning.

Unable to sign certificates?
The errors could be:

Cheat

Puppet Resource Cheat Sheet

    a. hostname was not match with the server certificate (or)
    b. Exiting; no certificate found and waitforcert is disabled
    In both cases you will not find the certificate on pupptemaster to sign.

Puppet Server Cheat Sheet

2106_v82_lya9500m_qhd_asx driver download. Solution:

1. /etc/hosts file on client should have the server listed in format
IPAddress hostname_of_server short_hostname_of_server puppet
Example: 192.168.1.90 predator01.mydomain.local predator01 puppet
2. Make sure that the domain and search parameters in /etc/resolv.conf of client is same as your host domain
Example: /etc/resolv.conf
domain local
search local
nameserver 8.8.8.8
And my hostname is human01.mydomain.local
If your hostname is like human01.yourdomain.com then 'domain' and 'search' in /etc/resolv.conf should be domain.com
3. After ensuring (1) and (2) are fixed as above, clear ssl stuff
$ cd /var/lib/puppet/ssl
$ sudo mkdir old
$ sudo mv * old/
4. Now run client again
$ sudo puppetd -tdv
5. On server sign the cert
$ sudo puppetca --list
human01.yourdomain.local
$ sudo puppetca --sign human01.yourdomain.local