<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:27, Howard Johnson
      wrote:<br>
    </div>
    <blockquote cite="mid:551B033B.7000604@mwob.org.uk" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      live quotes from #centos:<br>
      <blockquote cite="mid:551B0115.7010700@nobugconsulting.ro"
        type="cite"> <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 moz-do-not-send="true" 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>
    </blockquote>
    <br>
    It also broke Ansible:<br>
    <br>
    [root@c7dev2 ~]# rpm -q centos-release<br>
    centos-release-7-0.1406.el7.centos.2.5.x86_64<br>
    [root@c7dev2 ~]# ansible 127.0.0.1 -m setup -a
    filter=ansible_distribution<br>
    127.0.0.1 | success >> {<br>
        "ansible_facts": {<br>
            "ansible_distribution": "CentOS"<br>
        },<br>
        "changed": false<br>
    }<br>
    <br>
    [root@c7dev ~]# rpm -q centos-release<br>
    centos-release-7-1.1503.el7.centos.2.7.x86_64<br>
    [root@c7dev ~]# ansible 127.0.0.1 -m setup -a
    filter=ansible_distribution<br>
    127.0.0.1 | success >> {<br>
        "ansible_facts": {<br>
            "ansible_distribution": "RedHat"<br>
        },<br>
        "changed": false<br>
    }<br>
    <br>
    <br>
    And it's broken ohai, so Chef is broken:<br>
    <br>
    [root@c7dev2 ~]# ohai | fgrep platform<br>
      "platform": "centos",<br>
      "platform_version": "7.0.1406",<br>
      "platform_family": "rhel",<br>
          "platform": "x86_64-linux",<br>
    <br>
    [root@c7dev ~]# ohai | fgrep platform<br>
      "platform": "derived",<br>
      "platform_version": null,<br>
          "platform": "x86_64-linux",<br>
    <br>
    <br>
    So, does anyone know what this centos-release change fixes?<br>
    <br>
    -- <br>
    HJ<br>
  </body>
</html>