Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 930 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 930 Bytes

chef-env

Manage multiple chef configurations in isolation from one central location (something like rbenv for chef)

Installation

$ git clone [email protected]:plymouthsoftware/chef-env.git
$ cd chef-env
$ chmod u+x ./chef-env
$ chef-env help

Setup

$ cp ~/.chef ~/.chef.bak # backup your existing ~/.chef folder just in case!
$ chef-env init # moves any existing ~/.chef to ~/.chef-configs/default

Usage

$ chef-env list
  List of chef configurations available in ~/.chef-configs
    default
    other-org

$ chef-env use default
$ knife node list
  organisationA-node1
  organisationA-node2

$ chef-env use other-org
$ knife node list
  organisationB-node1
  organisationB-node2
  organisationB-node3

$ chef-env clear
$ knife node list
  [Fail, no configuration at ~/.chef]