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

Implement $server_max_open_files #671

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

baurmatt
Copy link
Contributor

This commit implements the $server_max_open_files parameter which allows
the user to configure the max open file descriptor limit for
Puppetserver.

Fixes #670.

@theforeman-bot

This comment has been minimized.

Copy link
Contributor

@alexjfisher alexjfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I've tested on EL7 (systemd dropin_file implementation). Works great!

manifests/server/puppetserver.pp Outdated Show resolved Hide resolved
manifests/server/puppetserver.pp Outdated Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're adding systemd as a soft dependency, could you describe this in README.md?

spec/spec_helper.rb Outdated Show resolved Hide resolved
.fixtures.yml Outdated Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an acceptance test as well?

spec/classes/puppet_server_puppetserver_spec.rb Outdated Show resolved Hide resolved
@baurmatt baurmatt force-pushed the feature/maxopenfiles branch from 51c36a9 to ea1ecb3 Compare January 24, 2019 16:42
@baurmatt
Copy link
Contributor Author

Could you add an acceptance test as well?

Done! :)

Since you're adding systemd as a soft dependency, could you describe this in README.md?

Not really sure where to add it. Can you point me to a good place for it? :)

This commit implements the $server_max_open_files parameter which allows
the user to configure the max open file descriptor limit for
Puppetserver.

Fixes #theforemanGH-670.
@baurmatt baurmatt force-pushed the feature/maxopenfiles branch from ea1ecb3 to 597aac3 Compare January 25, 2019 08:53
@baurmatt baurmatt closed this Jan 25, 2019
@baurmatt baurmatt reopened this Jan 25, 2019
it_behaves_like 'a idempotent resource'

# pgrep -f java.*puppetserver would be better. But i cannot get it to work. Shellwords.escape() seems to break something
describe command("grep '^Max open files' /proc/`cat /var/run/puppetlabs/puppetserver/puppetserver.pid`/limits"), :sudo => true do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may be able to parse this via systemctl status puppetserver as well. Both the main pid as the limit. On the other hand, this is a real test on the result so I'm fine with this.

@ekohl ekohl merged commit 27eb207 into theforeman:master Feb 14, 2019
@ekohl
Copy link
Member

ekohl commented Feb 14, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants