Line breaks
Quoted strings can continue over multiple lines, and line
breaks are preserved as a literal part of the string. Heredocs let you suppress these line
breaks if you use the L
escape switch.
Puppet does not attempt to convert line breaks, so whatever type of line break is used in the file (LF for *nix or CRLF for Windows) is preserved. Use escape sequences to insert specific types of line breaks into strings:
To insert a CRLF in a manifest file that uses *nix line endings, use the
\r\n
escape sequences in a double-quoted string, or a heredoc with those escapes enabled.To insert an LF in a manifest that uses Windows line endings, use the
\n
escape sequence in a double-quoted string, or a heredoc with that escape