Re: Facter operatingsystemrelease on CentOS

David Lutterkort
Thu, 20 Dec 2007 18:33:44 -0000

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).

David




_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com