Skip to content

Commit

Permalink
Delete not necessary facter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Clariana committed Mar 18, 2015
1 parent 411ca00 commit 3425968
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/facter/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
require 'open-uri'
require 'timeout'

#Public IP
# Expected output: The public ipaddress of this node.
Facter.add("network_public_ip") do
setcode do
Timeout::timeout(2) do
open('http://ip-echo.appspot.com', 'User-Agent' => 'Ruby/Facter').read.match(/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/).to_s
end
end
end

#Gateway
# Expected output: The ip address of the nexthop/default router
Facter.add("network_nexthop_ip") do
Expand Down

0 comments on commit 3425968

Please sign in to comment.