projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7182ff
)
confine ip addr fact to linux
author
Stephen Gran
<steve@lobefin.net>
Sun, 7 Mar 2010 11:23:26 +0000
(11:23 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 7 Mar 2010 11:23:26 +0000
(11:23 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/ipaddresses.rb
patch
|
blob
|
history
diff --git
a/facts/ipaddresses.rb
b/facts/ipaddresses.rb
index
f1bbd69
..
a80fa6b
100644
(file)
--- a/
facts/ipaddresses.rb
+++ b/
facts/ipaddresses.rb
@@
-1,4
+1,5
@@
Facter.add("v4ips") do
+ confine :kernel => :linux
addrs = []
%x{ip addr list}.each do |line|
next unless line =~ /\s+inet/
@@
-13,6
+14,7
@@
Facter.add("v4ips") do
end
Facter.add("v6ips") do
+ confine :kernel => :linux
addrs = []
%x{ip addr list}.each do |line|
next unless line =~ /\s+inet/