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

Version Path
bolt-0.17.0 vendored/facter/lib/facter/network.rb
bolt-0.16.4 vendored/facter/lib/facter/network.rb
bolt-0.16.3 vendored/facter/lib/facter/network.rb
bolt-0.16.2 vendored/facter/lib/facter/network.rb
bolt-0.16.1 vendored/facter/lib/facter/network.rb
bolt-0.16.0 vendored/facter/lib/facter/network.rb
bolt-0.15.0 vendored/facter/lib/facter/network.rb
bolt-0.14.0 vendored/facter/lib/facter/network.rb
bolt-0.13.0 vendored/facter/lib/facter/network.rb
bolt-0.12.0 vendored/facter/lib/facter/network.rb
bolt-0.11.0 vendored/facter/lib/facter/network.rb
bolt-0.10.0 vendored/facter/lib/facter/network.rb
bolt-0.9.0 vendored/facter/lib/facter/network.rb
bolt-0.8.0 vendored/facter/lib/facter/network.rb
bolt-0.7.0 vendored/facter/lib/facter/network.rb
bolt-0.6.1 vendored/facter/lib/facter/network.rb
bolt-0.6.0 vendored/facter/lib/facter/network.rb
bolt-0.5.1 vendored/facter/lib/facter/network.rb
bolt-0.5.0 vendored/facter/lib/facter/network.rb
facter-2.5.1 lib/facter/network.rb