Search code examples
chef-infrachef-soloknifeknife-solo

knife command can't be used for knife-solo


I use knife-solo to work with chef-solo, but I find I can't use many knife commands except knife solo

For example:

$ knife role list
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable

What can I do to use the knife commands? Thanks in advance.


Solution

  • Quoting the docs:

    The knife role subcommand is used to manage the roles that are associated with one or more nodes on a Chef server.

    So this does not work with chef-solo.