Sha256: bee722ff5fed6fcc6a08fb6887befe174773c252180a4ca33dcda99679ed6d8c
Contents?: true
Size: 452 Bytes
Versions: 99
Compression:
Stored size: 452 Bytes
Contents
# Fact: network # # Purpose: # Get IP, network, and netmask information for available network # interfaces. # # Resolution: # Uses `facter/util/ip` to enumerate interfaces and return their information. # # Caveats: # require 'facter/util/ip' Facter::Util::IP.get_interfaces.each do |interface| Facter.add("network_" + Facter::Util::IP.alphafy(interface)) do setcode do Facter::Util::IP.get_network_value(interface) end end end
Version data entries
99 entries across 99 versions & 2 rubygems