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.21.7 vendored/facter/lib/facter/network.rb
bolt-0.21.6 vendored/facter/lib/facter/network.rb
bolt-0.21.5 vendored/facter/lib/facter/network.rb
bolt-0.21.4 vendored/facter/lib/facter/network.rb
bolt-0.21.3 vendored/facter/lib/facter/network.rb
bolt-0.21.2 vendored/facter/lib/facter/network.rb
bolt-0.21.1 vendored/facter/lib/facter/network.rb
bolt-0.21.0 vendored/facter/lib/facter/network.rb
bolt-0.20.7 vendored/facter/lib/facter/network.rb
bolt-0.20.6 vendored/facter/lib/facter/network.rb
bolt-0.20.5 vendored/facter/lib/facter/network.rb
bolt-0.20.3 vendored/facter/lib/facter/network.rb
bolt-0.20.2 vendored/facter/lib/facter/network.rb
bolt-0.19.1 vendored/facter/lib/facter/network.rb
bolt-0.19.0 vendored/facter/lib/facter/network.rb
bolt-0.18.2 vendored/facter/lib/facter/network.rb
bolt-0.18.1 vendored/facter/lib/facter/network.rb
bolt-0.18.0 vendored/facter/lib/facter/network.rb
bolt-0.17.2 vendored/facter/lib/facter/network.rb
bolt-0.17.1 vendored/facter/lib/facter/network.rb