Assuming this is tested, +1 On Aug 23, 2009, at 8:03 AM, Paul Nasrat wrote:
> > From: Jim Pirzyk <[email protected]> > > > Signed-off-by: Paul Nasrat <[email protected]> > --- > lib/facter/ipaddress.rb | 4 ++-- > lib/facter/netmask.rb | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/facter/ipaddress.rb b/lib/facter/ipaddress.rb > index 4c0bfe4..95cdc64 100644 > --- a/lib/facter/ipaddress.rb > +++ b/lib/facter/ipaddress.rb > @@ -19,7 +19,7 @@ Facter.add(:ipaddress) do > end > > Facter.add(:ipaddress) do > - confine :kernel => %w{FreeBSD OpenBSD solaris} > + confine :kernel => %w{FreeBSD OpenBSD} > setcode do > ip = nil > output = %x{/sbin/ifconfig} > @@ -39,7 +39,7 @@ Facter.add(:ipaddress) do > end > > Facter.add(:ipaddress) do > - confine :kernel => %w{NetBSD} > + confine :kernel => %w{NetBSD SunOS} > setcode do > ip = nil > output = %x{/sbin/ifconfig -a} > diff --git a/lib/facter/netmask.rb b/lib/facter/netmask.rb > index 6ccef23..e4ddbc5 100644 > --- a/lib/facter/netmask.rb > +++ b/lib/facter/netmask.rb > @@ -9,7 +9,7 @@ > require 'facter/util/netmask' > > Facter.add("netmask") do > - confine :kernel => [ :sunos, :linux ] > + confine :kernel => > [ :sunos, :linux, :freebsd, :openbsd, :netbsd ] > setcode do > Facter::NetMask.get_netmask > end > -- > 1.6.1.3 > > > > -- Hanlon's razor: Never attribute to malice that which can adequately be explained by stupidity. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
