-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
I'm completely new to Chef so please excuse me if I'm missing something obvious. I've installed Chef-DK and Knife-Zero on my mac, and can successfully bootstrap my test node (a macOS Big Sur VM). However when I try to test the provisioning by running knife zero converge with a sample recipe, the command just doesn't seem to do anything at all. This is what I see:
➜ ~/dev/chef-repo git:(master) knife zero converge "name:macos-intel-1-test" --override-runlist "macos::keep_awake"
WARN: Deprecation CHEF-18 from /opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/knife-17.0.246/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'
Starting local-mode server in deprecated socket mode
Please see https://docs.chef.io/deprecations_local_listen/ for further details and information on how to correct this problem.
➜ ~/dev/chef-repo git:(master)
The command runs for a few secs and terminates. It does seem to connect to the node by ssh very briefly before exiting, because if I intentionally break the auth settings then it errors out.
However if I pass on the same recipe to knife zero bootstrap then it does work and executes the recipe after the bootstrap is done, e.g.:
knife zero bootstrap 10.0.0.143 --node-name macos-intel-1-test -i ~/.ssh/id_rsa --sudo -y -r "macos::keep_awake"
Other than that I can run successfully other commands like knife node show macos-intel-1-test so the node querying works.
Any idea what's possibly going on?