#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Although the repo is named `cookbook-openstack-mellanox`, the cookbook itself is actually just named `openstack-mellanox`, so I'd recommend namespacing the attributes as `default['openstack-mellanox']` instead of `default['cookbook-openstack-mellanox']`.