blob: 309ef631d81f946d2e0536de4021dd0f9b350f93 (
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 ]
setcode do
Facter::NetMask.get_netmask
end
end
|