#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
What do you recommend? would `hostname -I | grep -v ^127 | head -1` be better?