knife org utils
:no_entry: Warning :no_entry:
Run bin/migrate
if you have your current ~/.chef
folder managed by pre 1.0.x version if knife-org-utils
.
Pre 1.0.0 version used git to manage the ~/.chef
folder. Version 1.0.x and above will not use git to manage the ~/.chef
directory. Please backup your ~/.chef
directory before adding new configurations.
Description:
This is an EXPERIMENTAL knife plugin that allows you :
- to switch config files and keys in
~/.chef
quickly from command line. - to display information from the
knife.rb
config file in knife's configuration file search path.
Installation
This knife plugin is packaged as a gem and is available on rubygems.org.
gem install knife-org-utils
Requirements
:warning: backup your current ~/.chef
directory :warning:
Available Subcommands and what they do for you
knife switch init
Initializes your .chef
directory.
knife switch add $CHEF_RERO_DIR
Imports .chef
files from $CHEF_RERO_DIR/.chef
into ~/.chef
folder. The name of the imported CONFIG will be based on the chef_server_url
in the knife.rb
file. Starter Kit is a valid chef-repo directory.
Options
--overwrite
: Overwrites configuration files if they exists
knife switch CONFIG
switches the configuration in ~/.chef
to the named CONFIG
knife switch list
list of available CONFIGS in ~/.chef
folder.
knife info [options]
prints the current chef server referenced by your ~/.chef/knife.rb
.
Options
--tiny
: Show concise information in oneline--medium
: Show important information in oneline--long
: Show all information in multi-lines