Hi,

I'm using Puppet 3.2.1 and heavily relying on hiera data bindings.
I have the following situation:

class software (
  $my_content = undef,
) {
  file { '/path/to/file':
    content => $software::my_content,
  }
}

in hieradata/software.yaml (hiera.yaml seems ok):
software::my_content: template('mymodule/myfile.erb')

With this configuration I get /path/to/file to contain the string 
'template(mymodule/myfile.erb)' (that is, template() function isn't 
evaluated).
Is this a normal behaviour?

Of course if I declare my class with:
class { 'software': my_content => template('mymodule/myfile.erb') }
everything works fine.

If I use the 'source' attribute instead of 'content', I can write in hiera:
software::my_source: puppet:///modules/mymodule/myfile.conf
and it works as expected.

Must I intend that this is something related just to functions in hiera?

Thanks,
Fabio

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to