Hey Charles,
You might try this:
http://stackoverflow.com/questions/2322413/how-do-i-escape-erb-code-in-fixtures
--
On Tue, Oct 16, 2012 at 1:27 PM, Charles Burns < "> > wrote:
> I have a line I need to add to my rsyslog.conf.erb template, but chef
> doesn't seem to like it because it contains the characters <% and %> and
> there's not any ruby between them.
>
> For example, I added this line to my template (it needs to be added to the
> rsyslog.conf on all my nodes):
>
> $template GRAYLOG2,"<%PRI%>1 %timegenerated:::date-rfc3339% %HOSTNAME%
> %syslogtag% - %APP-NAME%: %msg:::drop-last-lf%\n"
>
> but chef seems to be getting confused by <%PRI%>
>
> What do people suggest to work around this? Is there some way I can escape
> those characters in a template or tell chef to treat them literally and not
> as a ruby command or variable marker?
>
> --
> ----------------------------
> Charles J. Burns
> ">
Kevin Karwaski
Operations Engineer @ {Fiksu}
Archive powered by MHonArc 2.6.16.