Puppet localconfig parser – 20100330


I had a few reports of problems with Puppet 0.25 and my localconfig.yaml parser, finally Andy Asquelt sent me a patch that resolved the problem, you can download the latest here. For background about what this is see my original post: What does Puppet manage on a node?

Puppet localconfig parser – 20100303


I’ve had some good feedback on my previous post about the puppet localconfig parser, have implemented the requested features so here’s a new version. First the ability to limit what resources are being printed: # parselocalconfig.rb –limit package Classes included on this node: fqdn common::linux   Resources managed by puppet on this node: package{redhat-lsb: } Read More

Few Rubyisms


While looking at some bits of other peoples Ruby code I came across a few shortcuts and interesting structures worth mentioning. Exception handling shortcut First up a shortcut to catch exceptions thrown by a method: def say_foo puts "foo" if doit rescue Exception puts "#fail" end So since we didn’t define doit this will raise Read More

Newer Posts
Older Posts