#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Using `hostname -i` really isn't that recommended. It could cause issues, for example, if there is an `/etc/hosts` entry that resolves the hostname to `127.0.0.1`. Is the goal here to find the ip address that is resolved to by the fqdn?