I am doing this training module: https://learn.chef.io/modules/getting-started-with-policyfiles#/step5
And ran into this error that has had me going out of my mind:
[2019-06-20T21:44:36+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-06-20T21:44:36+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2019-06-20T21:44:36+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2019-06-20T21:44:36+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-06-20T21:44:36+00:00] ERROR: undefined method `sysctl' for cookbook: os-hardening, recipe: sysctl :Chef::Recipe
[2019-06-20T21:44:36+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
This error has had me stumped for the awhile now.. and now getting back into it, I searched and found that this method is now deprecated: https://supermarket.chef.io/cookbooks/sysctl
Perhaps this cookbook should be updated being part of the training module?
How would I fix this?