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 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 [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
