----- Original Message ----- > From: "Christopher Wood" <[email protected]> > To: "puppet-users" <[email protected]> > Sent: Friday, 28 October, 2016 19:45:42 > Subject: [Puppet Users] paragraphing hiera yaml
> Here's a Friday sort of question. > > All the yaml emitters don't add the extra space that I can add as a person > editing a file to make things more readable. Or to be more accurate, I can't > manage it myself and I can't find one that does. > > Consider the readability of the two examples below when thinking about what > keys > go with which classes. Also keep in mind that while example one may be fine > for > many of us, lots more people will find it easier to work with yaml using > example two. > > So how would I auto-magically auto-paragraph hiera yaml to make it friendlier > for more people, while still keeping it syntactically valid? > > > Example one: > > --- > one::services::enabled: true > one::two::abc: 8.45 > one::two::three: this is the string > puppet4::ca_server: otherhostname > puppet4::server: hostname > > > Example two: > > --- > one::services::enabled: true > > one::two::abc: 8.45 > one::two::three: this is the string > > puppet4::ca_server: otherhostname > puppet4::server: hostname nothing really built in but you can hack this up yourself (emphasis on hack) https://gist.github.com/ripienaar/097aa19b928ffffa57b4b7a4ec861fa4 -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2124299857.120.1477817859281.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.
