Re: [Puppet Users] Hiera.yaml not interpolate variables

2014-05-10 Thread Andreas Ntaflos
On 2014-05-08 17:21, Israel Calvete wrote: > Hi, > > This is my hiera config. > > /---/ > /:backends: - yaml/ > /:hierarchy: - %{::environment}/ > /- common/ You must use double quotes when you want interpolation to work. See http://docs.puppetlabs.com/hiera/1/variables.html#interpol

Re: [Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Jeff Adams
Pretty sure I ran across this same issue. Try pulling the :: out of the variable name. e.g. %{environment} - Jeff On 05/08/2014 11:21 AM, Israel Calvete wrote: Yes, hiera file is in /etc/puppet/hiera.yaml On Thursday, May 8, 2014 6:15:34 PM UTC+2, Brendan O'Bra wrote: Where is your hiera

Re: [Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Israel Calvete
Yes, hiera file is in /etc/puppet/hiera.yaml On Thursday, May 8, 2014 6:15:34 PM UTC+2, Brendan O'Bra wrote: > > Where is your hiera.yaml located? Default for puppet is > /etc/puppet/hiera.yaml > > > On Thu, May 8, 2014 at 8:21 AM, Israel Calvete > > wrote: > >> Hi, >> >> This is my hiera config

Re: [Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Brendan O'Bra
Where is your hiera.yaml located? Default for puppet is /etc/puppet/hiera.yaml On Thu, May 8, 2014 at 8:21 AM, Israel Calvete wrote: > Hi, > > This is my hiera config. > > *---* > *:backends: - yaml* > *:hierarchy: - %{::environment}* > *- common* > *:yaml:* > * :datadir: > "/usr/s

[Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Israel Calvete
Hi, This is my hiera config. *---* *:backends: - yaml* *:hierarchy: - %{::environment}* *- common* *:yaml:* * :datadir: "/usr/share/puppet/configuration/%{::environment}/hiera/current/hieradata"* *:puppet:* * :datasource: data* It seems if puppet master can't resolve enviroment va