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

Facter fails to detect more recent openSUSE versions

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Platform OS

      Description

      More recent openSUSE versions ( not sure about SLE ) have removed the /etc/SuSE-release file. In fact, as of openSUSE 13.2 that file contained a warning

      # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead

      Right now on openSUSE Tumbleweed ( and I would assume on the upcoming openSUSE Leap 42.2 and SLE 12 ) getting the operatingsystem fact returns an empty string.

      The solution that I've found is to patch /lib/facter/operatingsystem/linux.rb to check if lsbdistid == "openSUSE" and the set the operatingsystem fact accordingly.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support