Fix streamhost default logging #573
Triggered via pull request
December 14, 2024 08:44
Status
Failure
Total duration
14m 21s
Artifacts
–
ci.yml
on: pull_request
Puppet
/
Static validations
17s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
2s
Annotations
21 errors and 20 warnings
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1604
nginx on debian-11-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_con
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1616
nginx on debian-11-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ clie
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1604
nginx on debian-12-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_con
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1616
nginx on debian-12-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ clie
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1604
nginx on redhat-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ prox
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1616
nginx on redhat-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1604
nginx on redhat-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ prox
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1616
nginx on redhat-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1604
nginx on rocky-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ proxy
|
Puppet / 8 (Ruby 3.2):
spec/classes/nginx_spec.rb#L1616
nginx on rocky-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1604
nginx on debian-11-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_con
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1616
nginx on debian-11-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ clie
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1604
nginx on debian-12-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_con
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1616
nginx on debian-12-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser www-data;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,74 +1,147 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user www-data;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+include /etc/nginx/modules-enabled/*.conf;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ clie
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1604
nginx on redhat-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ prox
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1616
nginx on redhat-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1604
nginx on redhat-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ prox
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1616
nginx on redhat-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1604
nginx on rocky-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+ proxy_send_timeout 90s;
+ proxy_read_timeout 90s;
+ proxy
|
Puppet / 7 (Ruby 2.7):
spec/classes/nginx_spec.rb#L1616
nginx on rocky-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 nginx::config with defaults when stream is true when stream_custom_format_log is non-default is expected to contain File[/etc/nginx/nginx.conf] with content =~ /access_log \/var\/log\/nginx\/stream-access.log stream_format;/
Failure/Error:
is_expected.to contain_file('/etc/nginx/nginx.conf').with_content(
%r{access_log /var/log/nginx/stream-access.log stream_format;}
)
expected that the catalogue would contain File[/etc/nginx/nginx.conf] with content set to /access_log \/var\/log\/nginx\/stream-access.log stream_format;/ but it is set to "# MANAGED BY PUPPET\nuser nginx;\nworker_processes auto;\nworker_rlimit_nofile 1024;\n\npid /var/run/nginx.pid;\n\nevents {\n accept_mutex on;\n accept_mutex_delay 500ms;\n worker_connections 1024;\n}\n\nhttp {\n\n include mime.types;\n default_type application/octet-stream;\n\n access_log /var/log/nginx/access.log;\n error_log /var/log/nginx/error.log error;\n\n\n sendfile on;\n server_tokens on;\n\n types_hash_max_size 1024;\n types_hash_bucket_size 512;\n\n server_names_hash_bucket_size 64;\n server_names_hash_max_size 512;\n\n\n keepalive_timeout 65s;\n keepalive_requests 100;\n client_body_timeout 60s;\n send_timeout 60s;\n lingering_timeout 5s;\n tcp_nodelay on;\n\n\n client_max_body_size 10m;\n client_body_buffer_size 128k;\n proxy_connect_timeout 90s;\n proxy_send_timeout 90s;\n proxy_read_timeout 90s;\n proxy_buffers 32 4k;\n proxy_buffer_size 8k;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Host $host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header Proxy \"\";\n proxy_headers_hash_bucket_size 64;\n\n ssl_session_cache shared:SSL:10m;\n ssl_session_timeout 5m;\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;\n ssl_prefer_server_ciphers on;\n ssl_stapling off;\n ssl_stapling_verify off;\n\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\nstream {\n include /etc/nginx/conf.stream.d/*.conf;\n include /etc/nginx/streams-enabled/*;\n\n access_log off stream_format;\n}\n"
Diff:
@@ -1,73 +1,145 @@
-(?-mix:access_log \/var\/log\/nginx\/stream-access.log stream_format;)
+# MANAGED BY PUPPET
+user nginx;
+worker_processes auto;
+worker_rlimit_nofile 1024;
+
+pid /var/run/nginx.pid;
+
+events {
+ accept_mutex on;
+ accept_mutex_delay 500ms;
+ worker_connections 1024;
+}
+
+http {
+
+ include mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log error;
+
+
+ sendfile on;
+ server_tokens on;
+
+ types_hash_max_size 1024;
+ types_hash_bucket_size 512;
+
+ server_names_hash_bucket_size 64;
+ server_names_hash_max_size 512;
+
+
+ keepalive_timeout 65s;
+ keepalive_requests 100;
+ client_body_timeout 60s;
+ send_timeout 60s;
+ lingering_timeout 5s;
+ tcp_nodelay on;
+
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+ proxy_connect_timeout 90s;
+
|
Puppet / Test suite
Process completed with exit code 1.
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-11-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-12-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on oraclelinux-8-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on oraclelinux-9-x86_64 with Facter 4.9.0 and Puppet 8.10.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-11-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-12-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on oraclelinux-8-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on oraclelinux-9-x86_64 with Facter 4.9.0 and Puppet 7.34.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|