Puppet
From Bashlinux
Server
How to check for errors in all puppet templates
find /etc/puppet -name '*.erb' | xargs -n 1 -t erb -x -T '-' | ruby -c
How to check all puppet facts for templates
find /etc/puppet -name '*.rb' | xargs -n 1 -t erb -x -T '-' | ruby -c
How to list all active puppet clients
puppet cert list --all
![]() |
Important Global variables cannot longer be called directly Reference: http://docs.puppetlabs.com/guides/scope_and_puppet.html |
Client
How to register the puppet client and do initial run
puppet agent --server=puppet.bashlinux.com --test
Troubleshooting
How to fix Error 414 on server
- Edit the file /usr/share/ruby/webrick/httprequest.rb
- Change the default value of
MAX_URI_LENGTH
to4096