Posts Tagged ‘facter’

Facter facts for PCI devices

Friday, June 17th, 2011

We are in the process of building the configuration for our monitoring system from exported resources (more on that in the future). To accomplish one of the checks we needed a way to identify the brand of RAID controller in our physical servers. The best way to do this is facter. We’ve written some custom […]


Facter facts for memory in bytes

Tuesday, March 22nd, 2011

By default facter returns the free and total memory and swap of a machine only in GB or MB. To remedy this we rewrote the memory.rb bundled with Puppet to return the numbers in bytes.


Puppet Tips&Tricks: Variable variables

Wednesday, September 1st, 2010

Sometimes you want to use variable variables, for instance when you want to iterate over all the ipaddress_* facts that facter found. Using something like ${ipaddress_$if} doesn’t work, though. Inline_template to the rescue! Thanks to Volcane on IRC, this is a possible solution: $ifs = split($interfaces,”,”) define do_this { $mule = “ipaddress_${name}” $donkey = inline_template(“<%= […]


Puppet Tips&Tricks: Getting the version from a package

Monday, March 1st, 2010

Creating a fact which contains the installed version of a package.