default[:hardware][:sensors] = {}
if node[:dmi] && node[:dmi][:system]
- case dmi.system.manufacturer
+ case node[:dmi][:system][:manufacturer]
when "HP"
default[:apt][:sources] |= ["management-component-pack"]
- case dmi.system.product_name
+ case node[:dmi][:system][:product_name]
when "ProLiant DL360 G6", "ProLiant DL360 G7"
default[:hardware][:sensors][:"power_meter-*"][:power][:power1] = { :ignore => true }
end
if interface[:role] && (role = node[:networking][:roles][interface[:role]])
if role[interface[:family]]
- node.set[:networking][:interfaces][name][:prefix] = role[interface[:family]][:prefix]
- node.set[:networking][:interfaces][name][:gateway] = role[interface[:family]][:gateway]
+ node.normal[:networking][:interfaces][name][:prefix] = role[interface[:family]][:prefix]
+ node.normal[:networking][:interfaces][name][:gateway] = role[interface[:family]][:gateway]
end
- node.set[:networking][:interfaces][name][:metric] = role[:metric]
- node.set[:networking][:interfaces][name][:zone] = role[:zone]
+ node.normal[:networking][:interfaces][name][:metric] = role[:metric]
+ node.normal[:networking][:interfaces][name][:zone] = role[:zone]
end
prefix = node[:networking][:interfaces][name][:prefix]
- node.set[:networking][:interfaces][name][:netmask] = (~IPAddr.new(interface[:address]).mask(0)).mask(prefix)
- node.set[:networking][:interfaces][name][:network] = IPAddr.new(interface[:address]).mask(prefix)
+ node.normal[:networking][:interfaces][name][:netmask] = (~IPAddr.new(interface[:address]).mask(0)).mask(prefix)
+ node.normal[:networking][:interfaces][name][:network] = IPAddr.new(interface[:address]).mask(prefix)
end
package network_packages