Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 75

Ignore literal special characters in template

$
0
0
I'm working on templatizing a postgres conf file that has a literal line like this log_line_prefix = '<%u %%%d %%%t %r>' that gets interpreted as ERB code because of the `<%`. A syntax check as well as a `puppet agent -t` run results in this error: $ erb -P -x -T '-' postgresql.conf.erb | ruby -c -:381: syntax error, unexpected tIDENTIFIER, expecting $end ; u %%%d %%%t %r>' How can I escape or ignore these values in the template so they do not get interpreted as ruby/erb code?

Viewing all articles
Browse latest Browse all 75

Trending Articles