Re: Facter operatingsystemrelease on CentOS

James Turnbull
Sat, 22 Dec 2007 04:36:41 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Lutterkort wrote:
> On Wed, 2007-12-19 at 16:34 -0600, Barrow H Kwan wrote:
>> I found that has been fixed in Fedora and RedHat which return the
>> version ( like 5, 7, 8 etc.. ) but in CentOS, it still return the
>> kernel version instead.
>
> Can you send me the output from facter on a CentOS box (I don''t
have
> one) and as many /etc/*-release files from different CentOS versions as
> you have ? I''ll be happy to add that to facter .. if you want to
do it
> yourself, I''d be happy to review/help. If you''re
interested in the
> latter, attached is the patch that added that functionality for
> RHEL/Fedora so you can see what change was needed (you really just need
> to copy the redhat stanza and modify it for CentOS .. tricky bit is
> making sure the /etc/*-release file gets processed right).
>

I''ve fixed this in Git.  It just needed the confine expanded to cover
CentOS - it uses the same redhat-release file as Red Hat but with
different content.

Regards

James Turnbull

- --
James Turnbull (james@lovedthanlost.net)
- --
Author of:
- - Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
- - Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
- - Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHbJRZ9hTGvAxC30ARAoAQAKCmKOZrEr7hhPEZPfFt0B0Jcv8p1QCghYvg
Oamj52Ju9nLSFeNU4FKoTII=AWvy
-----END PGP SIGNATURE-----