0.0
No commit activity in last 3 years
No release in over 3 years
Manages multiple chef server/org configuration files in the .chef folder.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 10
~> 3

Runtime

>= 11.16.4, ~> 11.16
 Project Readme

knife org utils

Gem Version Build Status Dependency Status

⛔ Warning ⛔

If you are using pre 1.0.x version of `knife-org-utils, please follow this instructions for migration.

git clone git@github.com:secret-sauce/knife-org-utils.git
gem install knife-org-utils -v 1.1.1
./knife-org-utils/bin/migrate

This script will migrate your existing git based ~/.chef to the new directory layout. your old ~/.chef folder will be backed up at /tmp/chef-repo/.chef.

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

⚠️ backup your current ~/.chef directory ⚠️

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