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.