<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 31/03/2015 21:18, Manuel Wolfshant
wrote:<br>
</div>
<blockquote cite="mid:551B0115.7010700@nobugconsulting.ro"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 03/31/2015 11:15 PM, Stephen John
Smoogen wrote:<br>
</div>
<blockquote
cite="mid:CANnLRdiEMNBJo2mDeQFgy5iA1MsssZeYpJ-i8ZHUe=sTosfsyQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 31 March 2015 at 14:09, Howard
Johnson <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:merlin@mwob.org.uk" target="_blank">merlin@mwob.org.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class=""><br>
On 22/02/2015 23:19, Karanbir Singh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
/etc/centos-release:<br>
CentOS Linux release 7.1.1503 (Core)<br>
<br>
/etc/redhat-release<br>
Derived from Red Hat Enterprise Linux 7.1 (Source)<br>
<br>
</blockquote>
<br>
</span> Yay, thread necromancy.<br>
<br>
This change is causing some surprise, because (as least
some) config management tools are mis-identifying centos
7. What problem did it solve?<span class="HOEnZb"><font
color="#888888"><br>
<br>
</font></span></blockquote>
<div><br>
</div>
<div>What tools are broken?<br>
</div>
</div>
</div>
</div>
</blockquote>
live quotes from #centos:<br>
<MerlinTHP> duritong: what is facter identifying 7.1 as?<br>
<duritong> MerlinTHP: RedHat<br>
<duritong> but it isn't able to figure out the release
version<br>
</blockquote>
<br>
Yeah, looking at the facter sources, there's this bit of code:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/puppetlabs/facter/blob/master/lib/src/facts/linux/operating_system_resolver.cc#L126">https://github.com/puppetlabs/facter/blob/master/lib/src/facts/linux/operating_system_resolver.cc#L126</a><br>
<br>
It's only looking at /etc/redhat-release, and it's looking for
various strings in that file to work out what OS it is. As the C7.1
redhat-release says "Red Hat" in it, it's identifying the OS as Red
Hat.<br>
<br>
I'm going to poke 7.1 with a few more tools and see what they say.<br>
<br>
-- <br>
HJ<br>
<br>
</body>
</html>