<% if userotatelogs == false -%>
CustomLog /var/log/httpd/<%= name %>/access.log combined
<% else -%>
CustomLog "|/usr/sbin/rotatelogs <%= if @rotatelogsuselocaltime then '-l' end %> <%= if @rotatelogsforceopen then '-f' end %> <%= if @rotatelogsuselink then "-L /var/log/httpd/<%= name %>/access.log" end %> /var/log/httpd/<%= name %>/access.log.%Y-%m-%d <%= rotatelogstime %>" combined
<% end -%>
The problematic part seems to be the part in yellow.
Here is the error I get:
compile error /etc/puppet/modules/apache/templates/vhost-proxy_w_access.conf.erb:70: syntax error, unexpected $undefined, expecting kEND ...; _erbout.concat "/access.log\" end %> /var/log/httpd/"; _er... ^ /etc/puppet/modules/apache/templates/vhost-proxy_w_access.conf.erb:76: syntax error, unexpected $end, expecting ')' ; _erbout
I tried with single quotes, as <%= name %>, <%= @name %>, <%= $name %>, but it always fails.
Thanks,
Ugo