extlookup - a puppet extension you can't live without

I've been using puppet for a while now, and have had to, grudgingly, add an if $hostname == "somehostname" several places in modules and in my general templates.pp.

Until now I could find no other option to properly control things, without having to have a subclass for each special case - which is too much in some situations.

I was recently informed about extlookup (from Volcane (ircname) - the author) - a one-stop solution to removing all those annoying dependencies on specific hostnames.

http://nephilim.ml.org/~rip/puppet/extlookup.rb

Now I just have a central repository - with a "defaultsettings" and a file for each hostname(or groupname or whatever you want) containing the variables which differ from the defaultsettings - and I can just fetch variable in my module/template/whatever like this:

extlookup("snmp_contact")

0 comments on extlookup - a puppet extension you can't live without