ANNOUNCE: Facter 1.5

7 views
Skip to first unread message

Luke Kanies

unread,
Jul 8, 2008, 12:52:18 AM7/8/08
to puppet...@googlegroups.com, puppet-...@googlegroups.com
Hi all,

I've finally gotten around to releasing Facter 1.5.

As the version bump implies, this is a relatively significant release
(for a 2.3k line program, anyway). Mostly, the biggest change is
refactoring the code internally so that all of the functionality is
split into separate classes in separate files.

Also, the facts are all loaded on-demand, which provides dramatic
speedups for printing individual facts, but generally doesn't affect
how Puppet and Facter interact, other than making it possible for
Facter to load facts that Puppet syncs via its pluginsync.

Here's the ChangeLog:

Fixed #1400 - OperatingSystemRelease should now work on CentOS

Changed 'timeout' option to 'limit' to avoid scope issue

Fixes #1376 - Display memory facts for AIX

Fixes #1334 - Forced Facter to use LANG=C

Fixes #1357 - Change ps syntax for OSX and BSD

Set the timeout on the AIX kernelrelease fact to 5 seconds.

Refactored so each fact resolution can specify a separate timeout,
but the default is still 0.5.

Refactered ipmess.rb and util/ip.rb to support separate *BSD
logic for
*BSD aliased interfaces.

Updated dmidecode facts fixing ticket #60

Added AIX support for some facts

Add lsbmajdistrelease fact for CentOS and Red Hat

Updated Red Hat spec file for new version
The 'facter' executable now has an option (-p|--puppet) for
loading the
Puppet libraries, which gives it access to Puppet's facts.

Added autoloading to Facter with a default of not loading all
facts,
which results in a significant speedup when only one fact is
sought.
Facts are autoloaded in either a single file named after the fact
or
in any file in a directory named after the fact.

Significantly refactored Facter's internals, including creating
tests
for all internal classes.

A netmask fact has been added closing ticket #46. It only
returns the
netmask of the primary interface (in the same behaviour as the
ipaddress
and macaddress facts).

Facts to return multiple interfaces on a host have also been
updated.
If you have multiple interfaces on Linux, *BSD, or Solaris/SunOS
you will
now get facts for each interface's IP address, MAC address and
netmask.
The facts will be structured like:
ipaddress_int = 10.0.0.x
macaddress_int = xx:xx:xx:xx
netmask_int = 255.255.255.0

Facter now identifies Ubuntu hosts and their releases using the
operatingsystem and operatingsystemrelease facts.

The Debian operatingsystemrelease fact now correctly returns the
current
Debian release.

Fixed ticket #48 - ioperatingsystem and operatingsystemrelease
for CentOS

Fixed ticket #44 and allowed support for Xen multiple interfaces
and aliased
interfaces. Supports both Linux and *BSD.

Added interfaces fact to add as index for ip/MAC address facts

Added Mandrake support for operatingsystem fact - closed ticket #47

Fixed ticket #45

Added netmask.rb closing ticket #46

--
Morgan's Second Law:
To a first approximation all appointments are canceled.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com

Randy Bias

unread,
Jul 8, 2008, 1:18:43 AM7/8/08
to puppet...@googlegroups.com, puppet-...@googlegroups.com
Nice job. That looks great.


Randy Bias, chief tactician, neoTactics, Inc.
(877) NEO-TKTX, ran...@neotactics.com

Jeff Leggett

unread,
Jul 10, 2008, 4:31:50 PM7/10/08
to Puppet Users
Anyone roll a RH5/CentoS5 RPM yet by chance?

Gary Law

unread,
Jul 10, 2008, 5:06:37 PM7/10/08
to puppet...@googlegroups.com
2008/7/10 Jeff Leggett <jeffrey...@etrade.com>:


Anyone roll a RH5/CentoS5 RPM yet by chance?

Solaris (beta) package here:
http://www.garylaw.net/packages/facter-1.5.0,REV=2008.07.10-SunOS5.10-all-CSW.pkg.gz

will be available through blastwave .... eventually

feedback welcome   :)

Gary

--
Gary Law
gary...@gmail.com

patobrien

unread,
Jul 12, 2008, 11:38:02 AM7/12/08
to Puppet Users
Rolled on a Centos5-i386 machine a few days ago:

http://64.209.129.23/facter-1.5-1.noarch.rpm

Rolled out to prod and works fine for us.

-Pat

Mark Phillips

unread,
Jul 13, 2008, 4:59:11 PM7/13/08
to puppet...@googlegroups.com
On 10 Jul 2008, at 22:06, Gary Law wrote:

> feedback welcome :)
>
> Gary

Looks good to me (i.e. it works ;-))

Interesting snippet though, and I'm sure this has probably come up
before (plus, it's not your package Gary, it's facter) - the netmask
for interfaces on Solaris are listed as they are in 'ifconfig', e.g.
ffffffff00.

--Mark

Ohad Levy

unread,
Jul 14, 2008, 1:25:25 AM7/14/08
to puppet...@googlegroups.com
Hi,
 
Facter looks good, only one thing about the RPM, it should use /usr/lib64/site_ruby on 64bit machines.
 
Thanks,
Ohad

 

David Lutterkort

unread,
Jul 17, 2008, 4:45:02 PM7/17/08
to puppet...@googlegroups.com, puppet-...@googlegroups.com
On Mon, 2008-07-07 at 23:52 -0500, Luke Kanies wrote:
> I've finally gotten around to releasing Facter 1.5.

I've finally built Fedora/RHEL RPM's. The unofficial versions are in my
personal repo[1] and in the archive[2].

Official builds are making their way through the Fedora/EPEL build
systems and should show up on a mirror near you shortly.

BTW, if anybody is interested in becoming a comaintainer of the
Fedora/EPEL packages, I'd be more than happy to set that up in pkgdb.

David

[1] http://people.redhat.com/dlutter/yum
[2] http://et.redhat.com/~lutter/puppet/


R.I.Pienaar

unread,
Jul 17, 2008, 5:09:15 PM7/17/08
to puppet...@googlegroups.com
hello,


> Official builds are making their way through the Fedora/EPEL build
> systems and should show up on a mirror near you shortly.

I have also ran a sync of http://yum.reductivelabs.com so its available there


>
> BTW, if anybody is interested in becoming a comaintainer of the
> Fedora/EPEL packages, I'd be more than happy to set that up in pkgdb.

I'd be willing to lend a hand, but do not have access to a whole long list of rpm based distros, just centos 4 and 5

--
R.I.Pienaar

David Lutterkort

unread,
Jul 17, 2008, 5:50:51 PM7/17/08
to puppet...@googlegroups.com
On Thu, 2008-07-17 at 22:09 +0100, R.I.Pienaar wrote:
> > Official builds are making their way through the Fedora/EPEL build
> > systems and should show up on a mirror near you shortly.
>
> I have also ran a sync of http://yum.reductivelabs.com so its available there

Cool .. BTW, all the official builds I ever made can also be found in
Koji (the ones on et.redhat.com were made on my own build machine and
are therefore a tad less official):

* Facter: http://kojipkgs.fedoraproject.org/packages/facter/
* Puppet: http://kojipkgs.fedoraproject.org/packages/puppet/

> >
> > BTW, if anybody is interested in becoming a comaintainer of the
> > Fedora/EPEL packages, I'd be more than happy to set that up in pkgdb.
>
> I'd be willing to lend a hand, but do not have access to a whole long
> list of rpm based distros, just centos 4 and 5

The most important thing you'd need for this is an account in the Fedora
account system, and then apply for membership in the 'cvsextras' group.

David


Ohad Levy

unread,
Jul 17, 2008, 9:35:45 PM7/17/08
to puppet...@googlegroups.com
Hi David,

Thanks for your rpm, but I have one question.
Does the facter and puppet rpms should be arch specific or can they be noarch?

Thanks,
Ohad

Martin Vuk

unread,
Jul 18, 2008, 3:45:53 AM7/18/08
to puppet...@googlegroups.com
I updated the packages for opensuse and SLES/SLED. They can be found
on Build Service as usual

http://download.opensuse.org/repositories/system:/management/

Martin

David Lutterkort

unread,
Jul 22, 2008, 3:16:12 PM7/22/08
to puppet...@googlegroups.com
On Fri, 2008-07-18 at 09:35 +0800, Ohad Levy wrote:
> Thanks for your rpm, but I have one question.
> Does the facter and puppet rpms should be arch specific or can they be
> noarch?

The answer is: it depends ;) For RHEL4 and earlier, there is no way to
build noarch Ruby packages since the i386 and x86_64 versions do not
have a single directory on $: in common.

This was fixed in FC-6, and therefore all current Fedora releases and
RHEL 5 have facter and puppet built as noarch.

David

Reply all
Reply to author
Forward
0 new messages