Re: [Puppet Users] using heredoc in an erb template with hiera

2015-02-19 Thread Angel L. Mateo
El 18/02/15 a las 19:08, Mark Rosedale escribió: Hello, I'm using hiera with puppet 3.7. What I need to do is pass in a formatted string to puppet to be used inside an erb template. What I'd really like is to use heredoc, but it doesn't seem like that is going to work. Does anyone have

[Puppet Users] using heredoc in an erb template with hiera

2015-02-18 Thread Mark Rosedale
Hello, I'm using hiera with puppet 3.7. What I need to do is pass in a formatted string to puppet to be used inside an erb template. What I'd really like is to use heredoc, but it doesn't seem like that is going to work. Does anyone have information on this and whether it is possible or not?

Re: [Puppet Users] using heredoc in an erb template with hiera

2015-02-18 Thread Christopher Wood
I tend to go for the lazy way, create my complicated string in something like a perl data structure where the language understand here docs and then dump it out to yaml. That way I have a set of yaml that I can copy into my hiera data. It ends up hideous but usable (note line breaks): ---