summaryrefslogtreecommitdiffstats
path: root/lib/facter/netmask.rb
blob: d6d125e2aff8f7f072d4628371fb0f9657ec466e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# netmask.rb
# Find the netmask of the primary ipaddress
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# Copyright (C) 2007 Mark 'phips' Phillips
#
# idea and originial source by Mark 'phips' Phillips
#

require 'facter/util/netmask'

Facter.add("netmask") do
    confine :kernel => [ :sunos, :linux, :freebsd, :openbsd, :netbsd, :darwin, :"gnu/kfreebsd" ]
    setcode do
        Facter::NetMask.get_netmask
    end
end