Jeffrey
2011-Aug-22 22:58 UTC
[Puppet Users] facter identifies Oracle Linux 6.1 as ''RedHat''
Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as "RedHat". Needless to say, this will cause logic errors in manifests trying to distinguish these two OSes. Anyone have a good idea for a work-around? # facter | egrep oper operatingsystem => RedHat operatingsystemrelease => 6.1 # cat /etc/issue Oracle Linux Server release 6.1 Kernel \r on an \m # facter -version 1.6.0 -- 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.
Nan Liu
2011-Aug-23 02:32 UTC
Re: [Puppet Users] facter identifies Oracle Linux 6.1 as ''RedHat''
On Mon, Aug 22, 2011 at 3:58 PM, Jeffrey <jeffreymlewis@yahoo.com> wrote:> Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as > "RedHat". Needless to say, this will cause logic errors in manifests > trying to distinguish these two OSes. Anyone have a good idea for a > work-around? > > # facter | egrep oper > operatingsystem => RedHat > operatingsystemrelease => 6.1 > > # cat /etc/issue > Oracle Linux Server release 6.1 > Kernel \r on an \m > > # facter -version > 1.6.0Don''t have access to OEL 6.1, however the facter code seems really straightforward: 40 elsif FileTest.exists?("/etc/enterprise-release") 41 if FileTest.exists?("/etc/ovs-release") 42 "OVS" 43 else 44 "OEL" 45 end I''m presuming that''s no longer available on 6.1? If facter is detecting RedHat, it''s finding the file /etc/redhat-release, what''s the content of that file? Thanks, Nan -- 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.
Jim Bala
2011-Aug-23 02:35 UTC
Re: [Puppet Users] facter identifies Oracle Linux 6.1 as ''RedHat''
OEL 6.1 now has these ''release'' files: $ ll /etc/*release* -rw-r--r--. 1 root root 32 May 22 20:15 /etc/oracle-release -rw-r--r--. 1 root root 55 May 22 20:15 /etc/redhat-release lrwxrwxrwx. 1 root root 14 Jul 22 16:36 /etc/system-release -> oracle-release -rw-r--r--. 1 root root 45 May 22 20:15 /etc/system-release-cpe Contents (notice the disappearance of ''Enterprise'', making it ''OL'' now): $ cat /etc/*release* Oracle Linux Server release 6.1 Red Hat Enterprise Linux Server release 6.1 (Santiago) Oracle Linux Server release 6.1 cpe:/o:oracle:oracle_linux:6server:ga:server -Jim On Aug 22, 2011, at 7:32 PM, Nan Liu wrote:> On Mon, Aug 22, 2011 at 3:58 PM, Jeffrey <jeffreymlewis@yahoo.com> wrote: >> Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as >> "RedHat". Needless to say, this will cause logic errors in manifests >> trying to distinguish these two OSes. Anyone have a good idea for a >> work-around? >> >> # facter | egrep oper >> operatingsystem => RedHat >> operatingsystemrelease => 6.1 >> >> # cat /etc/issue >> Oracle Linux Server release 6.1 >> Kernel \r on an \m >> >> # facter -version >> 1.6.0 > > Don''t have access to OEL 6.1, however the facter code seems really > straightforward: > > 40 elsif FileTest.exists?("/etc/enterprise-release") > 41 if FileTest.exists?("/etc/ovs-release") > 42 "OVS" > 43 else > 44 "OEL" > 45 end > > I''m presuming that''s no longer available on 6.1? If facter is > detecting RedHat, it''s finding the file /etc/redhat-release, what''s > the content of that file? > > Thanks, > > Nan > > -- > 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. >-- 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.
Avi Miller
2011-Aug-23 23:18 UTC
[Puppet Users] Re: facter identifies Oracle Linux 6.1 as ''RedHat''
Hi, On Aug 23, 8:58 am, Jeffrey <jeffreymle...@yahoo.com> wrote:> Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as > "RedHat".I''ve added an issue for this on the Puppet Labs site[1] and submitted a patch via GitHub to determine OracleLinux properly from 5 Update 6 and 6. This adds "OracleLinux" as an operatingsystem. Cheers, Avi [1] http://projects.puppetlabs.com/issues/9178 -- 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.
Nan Liu
2011-Aug-24 16:20 UTC
Re: [Puppet Users] Re: facter identifies Oracle Linux 6.1 as ''RedHat''
On Tue, Aug 23, 2011 at 4:18 PM, Avi Miller <avi.miller@gmail.com> wrote:> I''ve added an issue for this on the Puppet Labs site[1] and submitted > a patch via GitHub to determine OracleLinux properly from 5 Update 6 > and 6. This adds "OracleLinux" as an operatingsystem.Should we still use OEL? If we change the the value to OracleLinux, besides manifests changes, we also need to update types and provider that are currently configured to :confine(OEL). Thanks, Nan -- 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.
Avi Miller
2011-Aug-26 22:05 UTC
[Puppet Users] Re: facter identifies Oracle Linux 6.1 as ''RedHat''
Hi Nan, On Aug 25, 2:20 am, Nan Liu <n...@puppetlabs.com> wrote:> Should we still use OEL? If we change the the value to OracleLinux, > besides manifests changes, we also need to update types and provider > that are currently configured to :confine(OEL).I would prefer to change it to OracleLinux as it is no longer referred to as OEL. I did change the other location in Facter that OEL is referenced as well. The problem is that OEL is marked by the existence of /etc/enterprise-release, while OracleLinux, i.e. from 5 Update 6 and higher, is identified by the existence of /etc/oracle-release. That would also give users a way to differentiate between the older releases and the newer ones. But, it''s your call. I just submitted the patch. :) You guys get to decide what to do with it. Cheers, Avi -- 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.