This is the hostint module.
Apache License, Version 2.0
Please log tickets and issues at (http://www.thunderpoop.com)
Custom Fact for the host interface on a machine. It finds the interface based on the gateway of netstat -rn. Works on FreeBSD, RedHat, Ubuntu and probably others. I've found it extremely helpful building NSM servers and configure iptables. You can specify the variable <%= hostint %> in your puppet templates.