Permalink
Browse files

Add parameter to allow access logs to be turned off

  • Loading branch information...
1 parent dc11bfd commit 7488739eeb3ec11b1b66a9feebae576a941f6998 @lboynton lboynton committed with Oct 19, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 manifests/vhost.pp
  2. +2 −0 templates/vhost-default.conf.erb
View
@@ -54,6 +54,7 @@
$apache_name = $apache::params::apache_name,
$vhost_name = $apache::params::vhost_name,
$logroot = "/var/log/$apache::params::apache_name",
+ $access_log = true,
$ensure = 'present'
) {
@@ -23,7 +23,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
</Directory>
ErrorLog <%= logroot %>/<%= name %>_error.log
LogLevel warn
+<% if access_log %>
CustomLog <%= logroot %>/<%= name %>_access.log combined
+<% end %>
ServerSignature Off
</VirtualHost>

0 comments on commit 7488739

Please sign in to comment.