Issue #10271 has been updated by Ken Barber.

Subject changed from CloudLinux operationsytem and operatingsystemversion and 
osfamily facts do not work to Amazon Linux operatingsytem and 
operatingsystemversion and osfamily facts do not work

I presume this is for Amazon Linux not CloudLinux?

Looks like the usage of lsb tools was not the correct path:

<https://github.com/puppetlabs/facter/commit/9101e466a2119308db73c334f103a66157d9cf7b#diff-0>

Its my fault - I should have known this. I presume when you get lsb tools on 
the box it works - but its another dependency.
----------------------------------------
Bug #10271: Amazon Linux operatingsytem and operatingsystemversion and osfamily 
facts do not work
https://projects.puppetlabs.com/issues/10271

Author: Dan Bode
Status: Accepted
Priority: Normal
Assignee: Dan Bode
Category: 
Target version: 
Keywords: 
Branch: 
Affected Facter version: 


I am using the latest AMI (ami-7f418316) for Amazon Linux and it has no 
/etc/redhat-release

In the documentation 
(http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?LinuxAMIUserGuide.html)

it states that /etc/system-release should be used to determine current release:

<pre>
Amazon linux AMIs contain a /etc/system-release file that specifies the current 
release that is installed. This file is updated through yum and is part of the 
system-release rpm.

Following is an example of /etc/system-release file:

# cat /etc/system-release
Amazon Linux AMI release 2011.09
      

An Amazon Linux AMI also contains a machine readable version of the 
/etc/system-release file found in /etc/system-release-cpe and follows the CPE 
specification from MITRE (CPE).
</pre>

<pre>
# cat /etc/system-release
Amazon Linux AMI release 2011.09
</pre>

It looks like release version is 2011.09, I am not sure how to map that to 
rhel5/rhel6


-- 
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 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-bugs?hl=en.

Reply via email to