[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, experimental_upstream, updated. 1.5.9-54-g5a4eeed

James Turnbull james at lovedthanlost.net
Wed Jun 22 08:51:45 UTC 2011


The following commit has been merged in the experimental_upstream branch:
commit b69b2df6f09a7a165c005b3270ee21d1db57eee4
Merge: d50db0cd74c8a198567db29ade75287f755a9bee 7c082702c72c168f3e739b9bc1c7562b0aa15ddd
Author: James Turnbull <james at lovedthanlost.net>
Date:   Fri Apr 1 17:19:45 2011 +1100

    Merge remote branch 'barn/tickets/next/5394-Improve_Facter_fact_value_documentation' into next
    
    * barn/tickets/next/5394-Improve_Facter_fact_value_documentation:
      (#5394) Document each Facter fact.

diff --combined lib/facter/macaddress.rb
index bf23ef6,fa9e567..54c3c84
--- a/lib/facter/macaddress.rb
+++ b/lib/facter/macaddress.rb
@@@ -1,3 -1,12 +1,12 @@@
+ # Fact: macaddress
+ #
+ # Purpose: 
+ #
+ # Resolution:
+ #
+ # Caveats:
+ #
+ 
  require 'facter/util/macaddress'
  
  Facter.add(:macaddress) do
@@@ -13,18 -22,6 +22,18 @@@
  end
  
  Facter.add(:macaddress) do
 +    confine :operatingsystem => "Solaris"
 +    setcode do
 +        ether = []
 +        output = Facter::Util::Resolution.exec("/usr/bin/netstat -np")
 +        output.each_line do |s|
 +            ether.push($1) if s =~ /(?:SPLA)\s+(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})/
 +        end
 +        ether[0]
 +    end
 +end
 +
 +Facter.add(:macaddress) do
      confine :operatingsystem => %w{FreeBSD OpenBSD}
      setcode do
      ether = []

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list