Knife solo被垫刀的插件,并且有很好的截屏只见here 安装红宝石,创业板等的依赖后,我做的:刀独奏开始配置厨师独奏不工作
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上。 请让我知道什么是错的,谢谢。
你安装了什么版本的厨师? (刀-v) –
'刀-v [Sat,05 May 2012 13:14:07 +0230]致命:对不起,你需要先传递一个子命令! 厨师:0.8.16' – user993563