iphostnumber.rb

Path: lib/facter/iphostnumber.rb
Last Update: Sat May 04 13:03:04 +0000 2013

Fact: iphostnumber

Purpose: On selected versions of Darwin, returns the host‘s IP address.

Resolution:

  Uses either the scutil program to get the localhost name, or parses output
  of ifconfig for a MAC address.

Caveats:

[Validate]