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?
↧