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): --- key: this is the value of a key long: "really really long really really long really really long really really long really really long really really long really really long \n\nreally really long really really long really really long really really long really really long really really long really really long really really long \n\n\nreally really long really really long really really long " Otherwise I might encrypt it via hiera-eyaml, using the encryption as a fake-base64. Or maybe store it like you would binary data in yaml, aka base64 itself? Not tried this one myself. http://yaml.org/type/binary.html On Wed, Feb 18, 2015 at 10:08:37AM -0800, Mark Rosedale wrote: > 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? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [1]puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > > [2]https://groups.google.com/d/msgid/puppet-users/b3462d5f-b0a9-4c02-9266-6f64beef3458%40googlegroups.com. > For more options, visit [3]https://groups.google.com/d/optout. > > References > > Visible links > 1. mailto:puppet-users+unsubscr...@googlegroups.com > 2. > https://groups.google.com/d/msgid/puppet-users/b3462d5f-b0a9-4c02-9266-6f64beef3458%40googlegroups.com?utm_medium=email&utm_source=footer > 3. https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20150218192650.GA18520%40iniquitous.heresiarch.ca. For more options, visit https://groups.google.com/d/optout.