Questions on puppetlabs/apache

18 views
Skip to first unread message

Arnau

unread,
Jan 12, 2017, 8:28:08 AM1/12/17
to puppet...@googlegroups.com
Hi all,

I'm using puppetlabs/apache 1.7.0, puppet 3.8.7 and hiera 1.3.4.
I'd like to ask you 3 questions:

1) Is there any way to set CustomLog in the httpd.conf without changing the default template? I don't find a way to add custom entries in the server conf file.

2) how can I scape %{Refer}in hiera? I have the line:
  vhost_combined: '%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"'

and tried several ways to escape %{Refer} and %{User-Agent} but both are always interpreted as a vriables, thus become and empty string:

   LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"i\" \"i\"" vhost_combined

I tried %% , \%, \%\{, literal .... none worked .

3) apache::vhost is a define, how can I set in hiera a default for all vhosts? the same way that I do for classes, something like:

apache::vhost::access_log: false

but for a define... is that possible? (without calling create_resource).

TIA,
Arnau

Reply all
Reply to author
Forward
0 new messages