Re: [Puppet Users] how to query yaml file with hiera function.

2012-11-26 Thread Evelio VILA
> > <%= scope.function_hiera([cluster['port']]) %> > using the var name or the string direclty wont work... <%= scope.function_hiera([var['port']]) %> evelio -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web

Re: [Puppet Users] how to query yaml file with hiera function.

2012-11-26 Thread Evelio VILA
> Hi, > > 2012/11/23 Evelio VILA > > >> 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 ha

Re: [Puppet Users] how to query yaml file with hiera function.

2012-11-23 Thread Dominik Żyła
Hi, 2012/11/23 Evelio VILA > 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.ya

[Puppet Users] how to query yaml file with hiera function.

2012-11-23 Thread Evelio VILA
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