Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-893

CentOS 7.1.1503 breaks /etc/redhat-release

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: FACT 2.4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-04-15

      Description

      By default, CentOS 7.1.1503 sets /etc/redhat-release to

      Derived from Red Hat Enterprise Linux 7.1 (Source)

      http://lists.centos.org/pipermail/centos-devel/2015-February/012876.html

      which breaks facter pretty badly. Setting it to the be the same as /etc/centos-release fixes facter. Facter should check for /etc/centos-release first before checking /etc/redhat-release.

      [root@foobar]# rpm -q facter
      facter-2.4.1-1.el7.x86_64
      [root@foobar log]# rpm -q puppet
      puppet-3.7.5-1.el7.noarch
      [root@foobar]# facter --puppet | grep -i centos
      lsbdistdescription => CentOS Linux release 7.1.1503 (Core)
      lsbdistid => CentOS
      os => {"name"=>"RedHat", "family"=>"RedHat", "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", "distdescription"=>"CentOS Linux release 7.1.1503 (Core) ", "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.1.1503", "majdistrelease"=>"7", "minordistrelease"=>"1"}}
      [root@foobar]# facter --puppet | grep -i redhat
      operatingsystem => RedHat
      os => {"name"=>"RedHat", "family"=>"RedHat", "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", "distdescription"=>"CentOS Linux release 7.1.1503 (Core) ", "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.1.1503", "majdistrelease"=>"7", "minordistrelease"=>"1"}}
      osfamily => RedHat
      [root@foobar]# facter --puppet | grep operatingsystem
      operatingsystem => RedHat
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  huasome Huaqing Zheng
                • Votes:
                  4 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support