Issue #11658 has been updated by Jiri Hoogeveen.

Hi,

facterversion => 1.7.1
puppetversion => 3.2.1
rubyversion => 1.8.7


I had the issue, that puppet did know the operatingsystemrelease. This because 
I change my /etc/issue. 
I don't think /etc/issue is a good place to get the OS version.

Can this be changed to /etc/os-release or "lsb_release -a"

Thnx

----------------------------------------
Bug #11658: Noticed operatingsystemrelease isn't trying to use lsbdistrelease 
on Linux boxes
https://projects.puppetlabs.com/issues/11658#change-92192

* Author: Joe McDonagh
* Status: Accepted
* Priority: Normal
* Assignee: Hailee Kenney
* Category: library
* Target version: 2.x
* Keywords: 
* Branch: 
* Affected Facter version: 1.6.4
----------------------------------------
Causing some of my code to fail on the upcoming Ubuntu LTS 12.04. Basically 
it's got a ton of conditionals in this file, which I can see the utility of 
having in case LSB isn't available. However, I think the more clever, and 
proper way to handle this, is on Facter.value(:kernel) == "Linux", first try to 
use lsbdistrelease to fill in operatingsystemrelease if it's there, then fall 
back to these sort of rough around the edges determination methods if it's not 
available.

This is what the fact operatingsystemrelease shows on my 12.04 test box:

operatingsystemrelease => 3.2.0-2-generic

This is cause it can't glean the info from /etc/issue (which is a pretty 
unreliable place to look for OS info) so it uses kernelrelease... I am kind of 
depending on a version here which is the other problem. Should this fact 
contain strings? I'd have a patch ready for you guys but I think this is a 
design question really...


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to