Skip to content
New issue

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

Support disabling "worker_rlimit_nofile" #1611

Open
DoctorFTB opened this issue Sep 1, 2024 · 0 comments · May be fixed by #1612
Open

Support disabling "worker_rlimit_nofile" #1611

DoctorFTB opened this issue Sep 1, 2024 · 0 comments · May be fixed by #1612

Comments

@DoctorFTB
Copy link

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 -%>
@DoctorFTB DoctorFTB linked a pull request Sep 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant