From 91b390303b5ccebb245d7475e01d0ae4f34871cb 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 2d7dc1575..8598f2505 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -502,7 +502,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 4c25fc014..99826f1da 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -237,7 +237,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',