We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hiera code declaration for our custom nginx configuration
custom_nginx::config: stream: true map_hash_bucket_size: 128 log_format: combined_lb: '[$time_local] TO:$http_host:$server_port FROM:$remote_addr:$remote_port BALANCED_TO:$upstream_addr REQ:"$request" $status upstream_resp_time:$upstream_response_time "$http_referer" "$http_user_agent" $remote_user' combined_lb_ssl: '[$time_local] TO:$http_host:$server_port FROM:$remote_addr:$remote_port WITH:$ssl_protocol/$ssl_cipher BALANCED_TO:$upstream_addr REQ:"$request" $status upstream_resp_time:$upstream_response_time "$http_referer" "$http_user_agent" $remote_user' stream_log_format: stream_combined_lb: '$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time "$upstream_addr" "$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"'
the code used on our custom puppet module
class { 'nginx': manage_repo => $manage_repo, package_source => $package_source, package_name => $package_name, package_ensure => $package_ensure, service_name => $service_name, server_purge => $server_purge, confd_purge => $confd_purge, log_format => $log_format, stream_log_format => $stream_log_format, server_tokens => 'off', worker_connections => $worker_connections, worker_rlimit_nofile => $worker_rlimit_nofile, http_raw_prepend => $http_raw_prepend, names_hash_bucket_size => $map_hash_bucket_size, stream => $stream, }
on the configuration file for nginx
stream { include /etc/nginx/conf.stream.d/*.conf; include /etc/nginx/streams-enabled/*; log_format stream_combined_lb '$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time "$upstream_addr" "$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"'; access_log /var/log/nginx/stream-access.log; }
stream { log_format stream_combined_lb '$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time "$upstream_addr" "$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"'; access_log off; include /etc/nginx/conf.stream.d/*.conf; include /etc/nginx/streams-enabled/*; }
when testing the nginx configuration file
sandbox-lb1-dev-rbx ~ # nginx -t nginx: [emerg] unknown log format "stream_combined_lb" in /etc/nginx/streams-enabled/my_stream_config_file:5 nginx: configuration file /etc/nginx/nginx.conf test failed sandbox-lb1-dev-rbx ~ #
The text was updated successfully, but these errors were encountered:
up
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Hiera code declaration for our custom nginx configuration
the code used on our custom puppet module
What are you seeing
on the configuration file for nginx
What behaviour did you expect instead
on the configuration file for nginx
Output log
when testing the nginx configuration file
The text was updated successfully, but these errors were encountered: