Closed src386 closed 2 years ago
You can use a heredoc with the L
switch: https://puppet.com/docs/puppet/7/lang_data_string.html#lang_data_string_heredocs-suppresslinebr
Any example would be appreciated because I already mentionned heredoc, it does not work.
I can't figure out the correct syntax to pass multi-lines arguments to
postfix::config
(or::postfix
config). Tried with@("EOF"/L)
, as a['list']
or line breaks\n
.Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
What behaviour did you expect instead
Here is what I expect to see in
/etc/postfix/main.cf
:Output log
Any additional information you'd like to impart
Works if I pass all parameters in the same line:
But this is ugly because I need to pass 7 parameters, resulting in a very long line, in the Puppet code and in the
main.cf
file.What's the proper syntax to pass multi-lines arguments ?