diff --git a/manifests/wsgi/apache.pp b/manifests/wsgi/apache.pp index 3eff9c53..3f50dc0c 100644 --- a/manifests/wsgi/apache.pp +++ b/manifests/wsgi/apache.pp @@ -69,6 +69,18 @@ # [*vhost_custom_fragment*] # (optional) Additional vhost configuration, if applicable. # +# [*access_log_file*] +# The log file name for the virtualhost. +# Optional. Defaults to false. +# +# [*access_log_format*] +# The log format for the virtualhost. +# Optional. Defaults to false. +# +# [*error_log_file*] +# The error log file name for the virtualhost. +# Optional. Defaults to undef. +# # [*custom_wsgi_process_options*] # (optional) gives you the oportunity to add custom process options or to # overwrite the default options for the WSGI main process. @@ -104,6 +116,9 @@ define heat::wsgi::apache ( $threads = $::os_workers, $priority = '10', $vhost_custom_fragment = undef, + $access_log_file = false, + $access_log_format = false, + $error_log_file = undef, $custom_wsgi_process_options = {}, ) { if $title !~ /^api(|_cfn|_cloudwatch)$/ { @@ -144,5 +159,8 @@ define heat::wsgi::apache ( allow_encoded_slashes => 'on', require => Anchor['heat::install::end'], vhost_custom_fragment => $vhost_custom_fragment, + access_log_file => $access_log_file, + access_log_format => $access_log_format, + error_log_file => $error_log_file, } } diff --git a/spec/classes/heat_wsgi_apache_api_cfn_spec.rb b/spec/classes/heat_wsgi_apache_api_cfn_spec.rb index 8d5c5b44..b0a921b8 100644 --- a/spec/classes/heat_wsgi_apache_api_cfn_spec.rb +++ b/spec/classes/heat_wsgi_apache_api_cfn_spec.rb @@ -20,7 +20,9 @@ describe 'heat::wsgi::apache_api_cfn' do :ssl_certs_dir => nil, :threads => facts[:os_workers], :priority => 10, - :custom_wsgi_process_options => {}, ) + :custom_wsgi_process_options => {}, + :access_log_file => false, + :access_log_format => false,) } end end diff --git a/spec/classes/heat_wsgi_apache_api_spec.rb b/spec/classes/heat_wsgi_apache_api_spec.rb index ded5b8af..a33c8416 100644 --- a/spec/classes/heat_wsgi_apache_api_spec.rb +++ b/spec/classes/heat_wsgi_apache_api_spec.rb @@ -20,7 +20,9 @@ describe 'heat::wsgi::apache_api' do :ssl_certs_dir => nil, :threads => facts[:os_workers], :priority => 10, - :custom_wsgi_process_options => {}, ) + :custom_wsgi_process_options => {}, + :access_log_file => false, + :access_log_format => false,) } end end