Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions inventory/os.cf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ _inventory_lsb_found::

# Hard coded values for exceptions / platforms without os-release:

(redhat_5|redhat_6).redhat_pure::
Comment thread
olehermanse marked this conversation as resolved.
"description" string => regex_replace("$(inventory_lsb.description)", " release ", "", "g"),
if => isvariable("inventory_lsb.description"),
meta => { "inventory", "attribute_name=OS", "derived-from=inventory_lsb.description" };

centos_5::
"description" string => "CentOS Linux 5", # Matches format of os-release on 7+
meta => { "inventory", "attribute_name=OS", "derived-from=centos_5" };
Expand Down