Use Puppet 3.x's 'scope[]' to get the template variables.