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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.