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. ================Barrow Kwan ThoughtWorks, Inc. New from ThoughtWorks: Mingle, an Agile project management application. Mingle. Project Intelligence. Powerfully Simple. More at http://studios.thoughtworks.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 please log a bug for this in the Facter TRAC please? With some examples please. 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 iD8DBQFHaZ6X9hTGvAxC30ARApvJAJ93bMLsm/eosc4yhLeIwFfCOYu8lgCfergu /20xcZXH/Jp/64S7x4a/vWY=O/Sv -----END PGP SIGNATURE-----
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 https://mail.madstop.com/mailman/listinfo/puppet-users
-----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-----