On 31/03/2015 21:18, Manuel Wolfshant wrote:
On 03/31/2015 11:15 PM, Stephen John Smoogen wrote:


On 31 March 2015 at 14:09, Howard Johnson <merlin@mwob.org.uk> wrote:

On 22/02/2015 23:19, Karanbir Singh wrote:
/etc/centos-release:
CentOS Linux release 7.1.1503 (Core)

/etc/redhat-release
Derived from Red Hat Enterprise Linux 7.1 (Source)


Yay, thread necromancy.

This change is causing some surprise, because (as least some) config management tools are mis-identifying centos 7.  What problem did it solve?


What tools are broken?
live quotes from #centos:
<MerlinTHP> duritong: what is facter identifying 7.1 as?
<duritong> MerlinTHP: RedHat
<duritong> but it isn't able to figure out the release version

Yeah, looking at the facter sources, there's this bit of code:

https://github.com/puppetlabs/facter/blob/master/lib/src/facts/linux/operating_system_resolver.cc#L126

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.

I'm going to poke 7.1 with a few more tools and see what they say.

--
HJ