Knife solo是 mat 的刀插件,我在这里看到了一个很好的截屏视频 在安装了 ruby、gem 和其他依赖项后,我做了:
sudo gem install knife-solo
Successfully installed knife-solo-0.0.8
1 gem installed
Installing ri documentation for knife-solo-0.0.8...
Installing RDoc documentation for knife-solo-0.0.8...
然后我得到以下信息:
sudo knife configure -r . --defaults
/usr/lib/ruby/1.8/optparse.rb:1450:in `complete': invalid option: --defaults (OptionParser::InvalidOption)
from /usr/lib/ruby/1.8/optparse.rb:1448:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1448:in `complete'
from /usr/lib/ruby/1.8/optparse.rb:1261:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/1.8/mixlib/cli.rb:162:in `parse_options'
from /usr/lib/ruby/1.8/chef/knife.rb:91:in `find_command'
from /usr/lib/ruby/1.8/chef/application/knife.rb:115:in `run'
from /usr/bin/knife:24
我忽略了上述内容并尝试了:
knife kitchen mychefrepo
[Sat, 05 May 2012 02:55:21 +0530] FATAL: Cannot find sub command for: kitchen mychefrepo
Sub-Command: client bulk delete REGEX (options)
Sub-Command: client create CLIENT (options)
-a, --admin Create the client as an admin
-f, --file FILE Write the key to a file
..... and the list contnues to show all other options.
我在 ubuntu 11.04 上。请让我知道什么是错的,谢谢。