Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using KNIFE_HOME env to allow multiple knives on same machine #235

Closed
wants to merge 3 commits into from

Conversation

aeris
Copy link
Contributor

@aeris aeris commented Feb 18, 2012

Hi,

Here is a patch for knife to allow multiple knives on same machine.
This is very usefull for admin managing multiple networks with one distinct chef for each.

  • for multiple commands

export KNIFE_HOME=~/.chef/network1
knife client list
knife cookbook upload apache

  • for single command

KNIFE_HOME=~/.chef/network2 knife client list

@proffalken
Copy link

This is shameless I know, however I've written a plugin for Knife that will allow you to do just this: https://github.com/greenandsecure/knife-block

I'd be interested in your thoughts

@sean-horn
Copy link
Contributor

aeris,

If you would like to have this pull request considered further for inclusion in chef.

  1. Please create an account at community.opscode.com
  2. Please create a ticket referencing this pull request for example: http://tickets.opscode.com/browse/CHEF-2994
  3. Sign and submit a CLA using the instructions at http://wiki.opscode.com/display/chef/How+to+Contribute

Thanks,
Opscode Support

@aeris
Copy link
Contributor Author

aeris commented Apr 18, 2012

Account and CLA are good, i just miss the ticket

Ticket is here : http://tickets.opscode.com/browse/CHEF-3044

@btm
Copy link
Contributor

btm commented Apr 26, 2012

Merged!

@btm btm closed this Apr 26, 2012
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants