-if node[:kernel] and node[:kernel][:modules]
- raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
+if Chef::Util.compare_versions(node[:kernel][:release], [3, 3]) < 0
+ default[:hardware][:modules] |= ["microcode"]
+
+ if node[:cpu][:"0"][:vendor_id] == "GenuineIntel"
+ default[:hardware][:modules] |= ["coretemp"]
+ end
+end
+
+if node[:kernel] && node[:kernel][:modules]
+ raidmods = node[:kernel][:modules].keys & %w(cciss hpsa mptsas mpt2sas mpt3sas megaraid_mm megaraid_sas aacraid)