Variablize templates

having a template pull from node-wide attributes prevents a definition or resource from being used to create multiple different mongodb instances.