Use instance instead of local variables in template

Otherwise, newer Puppet versions will show deprecation warnings.