I'm trying to test a recipe that uses the sudo
community cookbook.
I have installed berks locally, I have created a Berksfile
and added the following to it:
source "https://supermarket.getchef.com"
metadata
cookbook 'sudo'
and issued the commands berks install
and berks vendor
nonetheless, I'm still getting the error
[2016-11-30T12:32:53+00:00] ERROR: No resource or method named `sudo' for `Chef::Recipe "default"'
pointing to this part of my recipe:
49>> sudo 'reboot_bot' do
50: user 'reboot_bot'
51: nopasswd true
52: commands [
53: '/sbin/reboot'
54: ]
55: end
Anything else that needs to be done and I'm missing? Something I'm doing wrong?