Skip to content
Open
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
12 changes: 12 additions & 0 deletions lib/facter/vmware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# ESXi 5.0u2 914586 ( Address: 0xE72C0 Release Date: 07/09/2012)
# ESXi 5.1 799733 ( Address: 0xEA0C0 Release Date: 06/22/2012)
# ESXi 5.1.0 1065491 ( Address: 0xEA0C0 Release Date: 06/22/2012)
# ESXi 5.1u3 2323236 ( Address: 0xE9AB0 Release Date: 10/22/2013)
# ESXi 5.5.0 1369380 ( Address: 0xEA050 Release Date: 07/30/2013)
#
Facter.add(:vmware) do
Expand Down Expand Up @@ -78,6 +79,8 @@
mainver = '5.0'
when address.match(/EA0C0/)
mainver = '5.1'
when address.match(/E9AB0/)
mainver = '5.1'
when address.match(/EA050/)
mainver = '5.5'
end
Expand Down Expand Up @@ -136,6 +139,15 @@
if biosdate.include? '07/09/2012'
update = 'u2'
end
# 5.1 u2 and u3
when address.match(/EA0C0/)
if biosdate.include? '08/16/2013'
update = 'u2'
end
when address.match(/E9AB0/)
if biosdate.include? '10/22/2013'
update = 'u3'
end
end
end
end
Expand Down