Closed pranesh14 closed 6 years ago
Sysctl 0.6.0
12.22.1
Ubuntu 18.04
Trying to set autoclose to 0 in a Test Kitchen suite
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
File at /proc/sys/dev/cdrom/autoclose should have 0
File at /proc/sys/dev/cdrom/autoclose has 1
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.
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