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, chief tactician, neoTactics, Inc.
(877) NEO-TKTX, ran...@neotactics.com
Anyone roll a RH5/CentoS5 RPM yet by chance?
> 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
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/
> 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
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
http://download.opensuse.org/repositories/system:/management/
Martin
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