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