Use instance variables in template files (Puppet 3.x compatibility)

The variable lookup rules changed for Puppet 3.0. Details about referencing variables within templates can be found at http://docs.puppetlabs.com/guides/templating.html#referencing-variables

This pull request updates the templates of this Puppet module to use instance variables where appropriate to get rid of deprecation warnings in Puppet 3.x.