7 releases

new 0.1.6 Jan 6, 2025
0.1.5 Jan 6, 2025
0.1.1 Dec 28, 2024

#1032 in Command line utilities

Download history 238/week @ 2024-12-23 250/week @ 2024-12-30

488 downloads per month

MIT license

39KB
910 lines

souschef

CLI utility to interact with Chef server

Chef server API docs

https://chef-server-api-docs.chef.io/

Profiles - Chef and Cinc

Supports using profiles from standard locations for:

  • Chef ~/.chef/knife.rb
  • Cinc ~/.cinc/knife.rb

If you have a configuration file in a non-standard location you can use -c or --config flag to use the path to the file.

Example:

souschef -p cinc ...
souschef -p chef ...

souschef -c /some/path/knife.rb ... 
  

Supported operations:

  • search
  • node list | show | ssh
  • roles list | show
  • environment list | show
  • data bag list | show (encrypted data bag items not supported yet)
  • ssh

SSH usage

For using SSH in node ssh NODE or ssh subcommand a valid ~/.ssh/config would be needed, as the process would spawn a SSH client, equivalent to the ssh NODE command.

If you want to specify a username, use -x as:

  souschef knife ssh NODE -x user
  souschef ssh 'search:query' 'command' -x user 

Dependencies

~15–29MB
~456K SLoC