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

Sysctl resource behaves incorrectly when supplied with comment #14308

Open
drdev opened this issue Mar 28, 2024 · 0 comments
Open

Sysctl resource behaves incorrectly when supplied with comment #14308

drdev opened this issue Mar 28, 2024 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@drdev
Copy link

drdev commented Mar 28, 2024

Description

When sysctl resource is suppied with comment property, each subsequent chef-client run marks the resource as changed.

Chef Version

Experienced the issue in 18.1.0, but source code of the resource proves any version is affected.

Platform Version

Debian 12.4

Replication Case

A minimal cookbook with sysctl resource will show the problem:

sysctl 'fs.inotify.max_user_watches' do
  value 32768
  comment 'Increase user limits on the number of inotify resources and inotify file watches'
end

Client Output

  * sysctl[fs.inotify.max_user_watches] action apply
    - Would update fs.inotify.max_user_watches
    - Would   set comment to "Increase user limits on the number of inotify resources and inotify file watches" (was [])
@drdev drdev added the Status: Untriaged An issue that has yet to be triaged. label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant