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
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?
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):
---