custom osx specific facter facts
I use these with Sal, so I find it useful to have a pkg build script like thus:
mkdir -p build_root/usr/local/sal/facter
sudo cp *.rb build_root/usr/local/sal/facter
sudo chown -R root:wheel build_root/
/usr/bin/pkgbuild --identifier tld.yourco.sal.facts.pkg \
--version 0.1 \
--root build_root pkgs/sal_yourco_mac_facts.pkg
If you're not deploying for Sal, change the first two lines to:
mkdir -p build_root/Library/Ruby/Site/facter
sudo cp *.rb build_root/Library/Ruby/Site/facter