Open
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 8.8.1
- Ruby: 3.1.2p20
- Distribution: Debian GNU/Linux 12 (bookworm)
- Module version: 6.0.0
How to reproduce (e.g Puppet code you use)
class { 'nginx':
worker_rlimit_nofile => undef,
}
What are you seeing
row worker_rlimit_nofile 1024;
inside /etc/nginx/nginx.conf
file
What behaviour did you expect instead
Config without worker_rlimit_nofile
Output log
None? Maybe I missed something
Any additional information you'd like to impart
I don't want to use "worker_rlimit_nofile" inside the config and try disable it from rendering from template.
Also I try to use false or empty string and get errors when validating.
As a potential solution:
Add > 0
inside template
<% if @worker_rlimit_nofile * > 0 * -%>
worker_rlimit_nofile <%= @worker_rlimit_nofile %>;
<% end -%>
Metadata
Metadata
Assignees
Labels
No labels