Sunday, September 8, 2013

hostint v2.0.0

http://forge.puppetlabs.com/panaman/hostint

Custom Fact for the host interface on a machine.
It finds the interface based on the gateway of netstat -rn. 
Works on FreeBSD, OSX, RedHat, Centos, Scientific, 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.

Supports Interface, DNS, Duplex, Gateway, ipv4 address, and Speed.

<%= @hostint %> Host Interface - (Supports Kernel: FreeBSD, Darwin, Linux)
<%= @hostint_dns %> Primary DNS Server (Supports Kernel: FreeBSD, Darwin, Linux) 
<%= @hostint_duplex %>  Full (Supports Kernel: Linux)
<%= @hostint_gw %> 192.168.10.1 (Supports Kernel: FreeBSD, Darwin, Linux)
<%= @hostint_ipv4 %>  192.168.10.17 (Supports Kernel: FreeBSD, Darwin, Linux)
<%= @hostint_speed %>  1000Mb/s (Supports Kernel: Linux)

TODO: Need to add Windows facts

No comments:

Post a Comment