Skip to content

Add the management of limits.conf file.#44

Merged
saz merged 2 commits intosaz:masterfrom
bschonec:manage_limits_file
May 3, 2023
Merged

Add the management of limits.conf file.#44
saz merged 2 commits intosaz:masterfrom
bschonec:manage_limits_file

Conversation

@bschonec
Copy link
Contributor

This pull request adds the management of the /etc/security/limits.conf file.

I used a RHEL7 limits.conf file as a "generic" template because I don't have access to Amazon, Gentoo or other non-RHEL-type OSes. These templates can be added easily in the future if desired. The limits.conf file would normally be devoid of anything other that commented-out examples and any limits would be managed in /etc/security/limits.d/ files.

metadata.json Outdated
],
"dependencies": [
{
"name": "puppetlabs/stdlib",
Copy link
Owner

Choose a reason for hiding this comment

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

@bschonec Why is the stdlib module required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would argue that stdlib has always been a requirement but because stdlib is ubiquitous that it's never been an issue before. Since some of my changes include specifying data types, stdlib datatypes is required.

Copy link
Owner

Choose a reason for hiding this comment

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

I don't see any usage of stdlib within the module right now and there's nothing special in your PR, which makes use of stdlib. Data types are "native" to Puppet and don't require the stdlib module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed the dependency. Thanks for that info.

@bschonec bschonec force-pushed the manage_limits_file branch from 2110e63 to dbf8478 Compare May 2, 2023 11:08
@saz saz merged commit cfbc5ba into saz:master May 3, 2023
jay7x added a commit to jay7x/puppet-limits that referenced this pull request Oct 17, 2024
Module hiera contains reference to a non-existent template (introduced in saz#44)
saz pushed a commit that referenced this pull request Oct 18, 2024
Module hiera contains reference to a non-existent template (introduced in #44)
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 this pull request may close these issues.

2 participants