Если Вы используете решение.NET в качестве сервера приложений, который использует 2,0 платформы затем, предложение tvanzele должно работать просто великолепно. Шаги ниже:
What version of Chef do you have installed on the local system where you're using Knife? What version is running on the Chef Server? (I presume that with a 'url:4000' chef_server_url you're running your own server instead of Opscode's).
You can get additional information out of knife with '-VV'.
knife node edit test.example.com -c knife.rb -e vim -VV
The setting in the knife.rb for the default environment to use is environment
. On the node itself, chef_environment
is a method to the Node object that returns the value of the node's environment and it is not an attribute.
Also, I'd recommend putting knife.rb in the .chef
directory of your Chef Repository, or in your home directory. Knife will detect the configuration automatically by looking for .chef/knife.rb
, similar to git.
Knife will also use the editor specified in the shell environment variable, EDITOR, too.
export EDITOR=`which vim`
Will have it use vim.