Use instance instead of local variables in template

Otherwise, newer Puppet versions will show deprecation warnings.
Merge pull request #8 from red-trela/fix-template-variables-access

Use instance instead of local variables in template