Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2144

Sys variable for OS major and minor version

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Environment Detection
    • Labels:
      None

      Description

      We set classes for discovered OS major and minor versions (e.g. for RHEL on 3.7.1: https://github.com/cfengine/core/blob/3.7.1/libenv/sysinfo.c#L1739).
      However, we only have a variable (sys.flavour) for the major version (e.g. for RHEL on 3.7.1:https://github.com/cfengine/core/blob/3.7.1/libenv/sysinfo.c#L1733).

      It would be nice to add a variable that includes the minor version as well, e.g. sys.distribution.
      Also note the inventory_os bundle in masterfiles. If this feature is implemented, we probably want to rely on the new variable there.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10003 Eystein Maloy Stenberg
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel