#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Useless assignment to variable - `mellanox`.