projects
/
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 f1bbd6990fc401d6530b00db9b516c5713689c1d..a80fa6be3dc74d404018d99a11fcf7a45a832b5c 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/