From 01d1b7f86fa7f1fc0d21fe594f162c6339ea53da Mon Sep 17 00:00:00 2001 From: jaketus Date: Thu, 16 Feb 2023 13:48:05 +0200 Subject: [PATCH] Fix streamhost default logging Current default values will cause Nginx to fail to start if nginx::stream is true. http://nginx.org/en/docs/stream/ngx_stream_log_module.html#access_log Format must be defined, which current default configuration doesn't do. Nginx default is "off", and therefore the module default should be "off" as well. --- REFERENCE.md | 2 +- manifests/init.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index cb9c0374b..ba9bd5a8f 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -491,7 +491,7 @@ Data type: `Variant[String, Array[String]]` -Default value: `"${log_dir}/stream-access.log"` +Default value: `'off'` ##### `stream_custom_format_log` diff --git a/manifests/init.pp b/manifests/init.pp index 33b067c91..dee28c30a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -65,7 +65,7 @@ Stdlib::Filemode $log_mode = $nginx::params::log_mode, Variant[String, Array[String]] $http_access_log = "${log_dir}/access.log", Optional[String] $http_format_log = undef, - Variant[String, Array[String]] $stream_access_log = "${log_dir}/stream-access.log", + Variant[String, Array[String]] $stream_access_log = 'off', Optional[String] $stream_custom_format_log = undef, Variant[String, Array[String]] $nginx_error_log = "${log_dir}/error.log", Nginx::ErrorLogSeverity $nginx_error_log_severity = 'error',