Puppet 3.4 compability

Reference template variables in a puppet 3.4 compatible manner.