On Wed, May 2, 2012 at 2:51 PM, Ramin K <ramin-l...@badapple.net> 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 puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users+unsubscribe@**
> googlegroups.com <puppet-users%2bunsubscr...@googlegroups.com>.
> 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 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.

Reply via email to