On Fri, Feb 3, 2012 at 8:57 AM, Dick Davies <[email protected]>wrote:
> Just started a rollout of centos 6.x across our Puppet deployment > (100-odd servers). > > what fact would people suggest I use to distinguish 5.x from 6.x > (quite a lot of subsystems are different between major releases)? > They'll be there if you have the redhat-lsb package installed. I'd use the lsbmajdistrelease fact. root@pe-centos6:~# facter | grep lsb lsbdistcodename => Final lsbdistdescription => CentOS release 6.1 (Final) lsbdistid => CentOS lsbdistrelease => 6.1 *lsbmajdistrelease* => 6 lsbrelease => :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch root@pe-centos6:~# rpm -qilp `which lsb_release` error: /usr/bin/lsb_release: not an rpm package (or package manifest) root@pe-centos6:~# rpm -qif `which lsb_release` Name : redhat-lsb Relocations: (not relocatable) Version : 4.0 Vendor: CentOS Release : 3.el6.centos Build Date: Sun 20 Nov 2011 01:44:34 PM PST Install Date: Thu 15 Dec 2011 01:22:18 PM PST Build Host: c6b5.bsys.dev.centos.org Group : System Environment/Base Source RPM: redhat-lsb-4.0-3.el6.centos.src.rpm Size : 22558 License: GPL Signature : RSA/SHA1, Mon 21 Nov 2011 04:54:30 PM PST, Key ID 0946fca2c105b9de Packager : CentOS BuildSystem <http://bugs.centos.org> URL : http://www.linuxfoundation.org/collaborate/workgroups/lsb Summary : LSB base libraries support for CentOS Description : The Linux Standard Base (LSB) is an attempt to develop a set of standards that will increase compatibility among Linux distributions. The redhat-lsb package provides utilities needed for LSB Compliant Applications. It also contains requirements that will ensure that all components required by the LSB that are provided by CentOS are installed on the system. -- Jeff McCune -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
