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

Dependency to lsb packages is missing

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • FACT 4.0.52
    • None
    • Night's Watch
    • 3
    • NW - 2021-02-03, NW - 2021-02-17
    • New Feature
    • Hide
      The `os.distro` facts are now resolved without lsb_release on the following platforms: RHEL, Amazon, SLES. The information is read from the system as it was done by the lsb script.

      Note that the `os.distro.specification` fact which refers to lsb version is available only if lsb release is installed.
      Show
      The `os.distro` facts are now resolved without lsb_release on the following platforms: RHEL, Amazon, SLES. The information is read from the system as it was done by the lsb script. Note that the `os.distro.specification` fact which refers to lsb version is available only if lsb release is installed.
    • Needs Assessment

    Description

      Hi,
      I installed puppet-agent-7.1.0-1.el7.x86_64 on CentOS 7.

      puppet facts show os:

      {
        "os": {
          "architecture": "x86_64",
          "family": "RedHat",
          "hardware": "x86_64",
          "name": "CentOS",
          "release": {
            "full": "7.9.2009",
            "major": "7",
            "minor": "9"
          },
          "selinux": {
            "config_mode": "enforcing",
            "config_policy": "targeted",
            "current_mode": "enforcing",
            "enabled": true,
            "enforced": true,
            "policy_version": "31"
          }
        }
      }
      

      the lsb facts are missing because the rpm does not require redhat-lsb-core. With the package isntalled:

      {
        "os": {
          "architecture": "x86_64",
          "distro": {
            "codename": "Core",
            "description": "CentOS Linux release 7.9.2009 (Core)",
            "id": "CentOS",
            "release": {
              "full": "7.9.2009",
              "major": "7",
              "minor": "9"
            },
            "specification": ":core-4.1-amd64:core-4.1-noarch"
          },
          "family": "RedHat",
          "hardware": "x86_64",
          "name": "CentOS",
          "release": {
            "full": "7.9.2009",
            "major": "7",
            "minor": "9"
          },
          "selinux": {
            "config_mode": "enforcing",
            "config_policy": "targeted",
            "current_mode": "enforcing",
            "enabled": true,
            "enforced": true,
            "policy_version": "31"
          }
        }
      }
      

      facter does not print a warning that facts are missing because a dependency isn't installed. many modules depend on those facts. This issue isn't new since facter 4, it's present on facter 3 as well and probably not only on CentOS.

      • Can you please update your packages to depend on the lsb packages on the platforms you support?
      • Is there a documentation for dependencies like this for people that package facter for other platforms? (Like I do for Arch Linux)

      Attachments

        Issue Links

          Activity

            People

              gheorghe.popescu Gheorghe Popescu
              bastelfreak Tim Meusel
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support