Sous-Chefs-Boneyard / sysctl

Development repository for the sysctl cookbook
https://supermarket.chef.io/cookbooks/sysctl
Apache License 2.0
42 stars 79 forks source link

Kernel parameters do not get set through attributes #130

Closed pranesh14 closed 6 years ago

pranesh14 commented 6 years ago

Cookbook version

Sysctl 0.6.0

Chef-client version

12.22.1

Platform Details

Ubuntu 18.04

Scenario:

Trying to set autoclose to 0 in a Test Kitchen suite

Steps to Reproduce:

Created a Test Kitchen Suite with Ubuntu 18.04 that has an almost empty recipe in the run-list but has attributes defining 'dev.cdrom.autoclose': 0

Also, tried setting node.default['sysctl']['params']['dev.cdrom.autoclose'] = 0 include_recipe 'sysctl::apply' inside the recipe

Expected Result:

File at /proc/sys/dev/cdrom/autoclose should have 0

Actual Result:

File at /proc/sys/dev/cdrom/autoclose has 1

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.