Hmmm . .   anyone have any idea why environment would not be getting
interpolated?
Cannot find datafile
/etc/puppetlabs/puppet/%{environment}/hieradata/10-host/gmatzpupnode.yaml

I have the following in my node's puppet.conf [agent] section:
environment = default

thanks again,
Guy

On Wed, May 2, 2012 at 6:59 PM, Gary Larizza <[email protected]> wrote:

>
>
> On Wed, May 2, 2012 at 2:51 PM, Ramin K <[email protected]> wrote:
>
>> On 5/2/2012 2:16 PM, Gary Larizza wrote:
>>
>>>    I'm using the following which I copied from somewhere. Quotes might
>>>    be part of the missing magic. Also I'm not sure you'd want a - in
>>>    there either.
>>>
>>>    :yaml:
>>>        :datadir: '/home/puppet/environments/%{**environment}/hieradata'
>>>
>>>
>>> I would use double-quotes for string interpolation, but this should
>>> work.  I've used this in a couple of on-site engagements, and it has
>>> worked well for us.
>>>
>>
>>        I don't think this is correct. If it were, my config should not
>> work at all. In this case single or double quotes should both work. It's my
>> understanding that hiera.yaml is a data file that is going to be parsed and
>> then consumed by Puppet where things like variable interpolation would
>> happen. There isn't any variable interpolation during the parsing so single
>> quotes are more correct.
>>
>> http://www.yaml.org/YAML_for_**ruby.html#single-quoted_**strings<http://www.yaml.org/YAML_for_ruby.html#single-quoted_strings>
>>
>>
> Yep, like RI said you're totally correct here.  Thanks for correcting :)
>
>
>
>>
>> Ramin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to puppet-users+unsubscribe@**
>> googlegroups.com <puppet-users%[email protected]>.
>> For more options, visit this group at http://groups.google.com/**
>> group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en>
>> .
>>
>>
>
>
> --
>
> Gary Larizza
> Professional Services Engineer
> Puppet Labs
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to