File: operatingsystemrelease.rb [facter-1.7.3 Documentation]

Last Modified
  2014-01-23 06:39:29 +0000
Requires
  - facter/util/file_read

## Description

Fact: operatingsystemrelease

Purpose: Returns the release of the operating system.

Resolution:

    On RedHat derivatives, returns their '/etc/<variant>-release' file.
    On Debian, returns '/etc/debian_version'.
    On Ubuntu, parses '/etc/issue' for the release version.
    On Suse, derivatives, parses '/etc/SuSE-release' for a selection of version
    information.
    On Slackware, parses '/etc/slackware-version'.
    On Amazon Linux, returns the 'lsbdistrelease' value.
    On Mageia, parses '/etc/mageia-release' for the release version.

    On all remaining systems, returns the 'kernelrelease' value.

Caveats: