fix template variable scoping for puppet 3.2