We just started testing CentOS 6.0 here, and I''m using Facter 1.6.0 If I run this command from my CentOS 5.x test machine: [root@puppetclient.nj1:~]# facter --version 1.6.0 [root@puppetclient.nj1:~]# facter | grep lsb lsbdistcodename => Final lsbdistdescription => CentOS release 5.3 (Final) lsbdistid => CentOS lsbdistrelease => 5.3 lsbmajdistrelease => 5 lsbrelease => :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch I get reasonable results. But if I do that from my CentOS 6.0 test machine: [root@cos6test.nj1:~]# facter --version 1.6.0 [root@cos6test.nj1:~]# facter | grep lsb [root@cos6test.nj1:~]# I get remarkably less kosher results. Is this a known issue? Is there any work-around? It''s really breaking my CentOS 6 servers'' ability to find their REPOs. :-) Cheers, D -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 30/07/11 05:26, Derek J. Balling wrote:> We just started testing CentOS 6.0 here, and I''m using Facter 1.6.0 > > If I run this command from my CentOS 5.x test machine: > > [root@puppetclient.nj1:~]# facter --version > 1.6.0 > [root@puppetclient.nj1:~]# facter | grep lsb > lsbdistcodename => Final > lsbdistdescription => CentOS release 5.3 (Final) > lsbdistid => CentOS > lsbdistrelease => 5.3 > lsbmajdistrelease => 5 > lsbrelease => :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch > > I get reasonable results. But if I do that from my CentOS 6.0 test machine: > > [root@cos6test.nj1:~]# facter --version > 1.6.0 > [root@cos6test.nj1:~]# facter | grep lsb > [root@cos6test.nj1:~]# > > I get remarkably less kosher results. > > Is this a known issue? Is there any work-around? It''s really breaking my CentOS 6 servers'' ability to find their REPOs. :-)You need to have the lsb_release command installed for the lsb* results to appear. Fedora/Redhat have it in the redhat-lsb package, so it possibly has a similar name under CentOS. HTH, Dan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1>> Is this a known issue? Is there any work-around? It''s really breaking my CentOS 6 servers'' ability to find their REPOs. :-) > > You need to have the lsb_release command installed for the lsb* results > to appear. > > Fedora/Redhat have it in the redhat-lsb package, so it possibly has a > similar name under CentOS.yes, this is the missing package. It has the same name on centos. ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk42z70ACgkQbwltcAfKi3/TxQCfcaJFWkiyBKhpAWQ6grnIUkJ4 fBUAn2ZiusnYKuM5F51UscOg2e6WrTgf =xBYh -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Is the redhat-lsb package installed? IIRC it provides the necessary info for the lsb facts. On Aug 1, 2011 8:27 AM, "Derek J. Balling" <dredd@megacity.org> wrote:> We just started testing CentOS 6.0 here, and I''m using Facter 1.6.0 > > If I run this command from my CentOS 5.x test machine: > > [root@puppetclient.nj1:~]# facter --version > 1.6.0 > [root@puppetclient.nj1:~]# facter | grep lsb > lsbdistcodename => Final > lsbdistdescription => CentOS release 5.3 (Final) > lsbdistid => CentOS > lsbdistrelease => 5.3 > lsbmajdistrelease => 5 > lsbrelease =>:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch> > I get reasonable results. But if I do that from my CentOS 6.0 testmachine:> > [root@cos6test.nj1:~]# facter --version > 1.6.0 > [root@cos6test.nj1:~]# facter | grep lsb > [root@cos6test.nj1:~]# > > I get remarkably less kosher results. > > Is this a known issue? Is there any work-around? It''s really breaking myCentOS 6 servers'' ability to find their REPOs. :-)> > Cheers, > D > > > -- > You received this message because you are subscribed to the Google Groups"Puppet Users" group.> To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier wrote :> >> Is this a known issue? Is there any work-around? It''s really breaking my CentOS 6 servers'' ability to find their REPOs. :-) > > > > You need to have the lsb_release command installed for the lsb* results > > to appear. > > > > Fedora/Redhat have it in the redhat-lsb package, so it possibly has a > > similar name under CentOS. > > yes, this is the missing package. It has the same name on centos.The "minimal" install option doesn''t install the redhat-lsb package. I personally prefer it that way, since it pulls in a bunch of useless stuff (in my case, required to be LSB compliant), but it does make it a bit more tricky to detect your OS release. Workaround are simple enough, things like : if $::operatingsystem == "RedHat" and $::operatingsystemrelease < 6 And also selectors like these (note that $operatingsystemrelease includes the minor version such as ''5.7'' or ''6.1'') : $foo = $::operatingsystemrelease ? { /^5/ => $rhel5, /^6/ => $thel6, } Of course you can also do this, still without relying on redhat-lsb : $foo = "${::operatingsystem}${::operatingsystemrelease}" ? { /^RedHat5/ => $rhel5, /^RedHat6/ => $thel6, } You will need to update that regexp before RHEL 50 ;-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 Load : 0.49 0.45 0.42 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Aug 1, 2011, at 11:30 AM, Daniel Piddock wrote:> You need to have the lsb_release command installed for the lsb* results > to appear. > > Fedora/Redhat have it in the redhat-lsb package, so it possibly has a > similar name under CentOS.Thanks to you and everyone else who pointed it out. Apparently something in our CentOS 5 kickstart brought that in, that our kickstart config for 6 didn''t (almost certainly having to do with all those package group renames). Cheers, D -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.