By the way, if you are using Puppet 3.0.0 or newer you shouldn't need the hiera() function at all.
Just call out your variables like so: class test ( $a, $b, ) { file { 'testfile' : path => "/tmp/testfile", content => template("test/testfile.erb"), } } In your hiera yaml it would look like (assuming you've set up your site.pp to allow for calling classes within hiera): --- classes: - test test::a: 'foo' test::b: 'bar' Hope this helps, Alex -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/44799bde-64bb-44af-a6f8-772307f0151c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.