Hi, 2012/11/23 Evelio VILA <eveliov...@gmail.com>
> Hi guys, > > i have a hiera.yaml config file like this: > > --- > :hierarchy: > - %{env}/%{tmp_module_name} > - %{env}/%{tmp_module_name}.common > :backends: > - yaml > :yaml: > :datadir: '/etc/puppet/hieradata' > > > I also have a test/some_module.yaml file like this: > > --- > db: > root : pass > port : '3306' > > > I am also using the hiera function from a template like this > > class.pp > $::class::var='db' > > template.erb > <%= scope.function_hiera([var]) %> Try this: <%= scope.function_hiera([var['root']]) %> -- Dominik Żyła -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.