Updated scope of variables in templates to work with puppet 2.7+

 Updating variables in template to Ruby instance variables to prevent puppet warnings