Sha256: c6cc01b82609e63775ee7e50a2f99c2289471de776f771927b0323a5c54071ff
Contents?: true
Size: 928 Bytes
Versions: 99
Compression:
Stored size: 928 Bytes
Contents
# Fact: operatingsystemrelease # # Purpose: Returns the release of the operating system. # # Resolution: # Uses the release key of the os structured hash, which itself # operates on the following conditions: # # On RedHat derivatives, returns their `/etc/<variant>-release` file. # On Debian, returns `/etc/debian_version`. # On Ubuntu, parses `/etc/lsb-release` 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 fact's value. # # Caveats: # Facter.add(:operatingsystemrelease) do confine do !Facter.value("os")["release"]["full"].nil? end setcode { Facter.value("os")["release"]["full"].to_s } end
Version data entries
99 entries across 99 versions & 2 rubygems