簡體   English   中英

刀-獨奏開始配置廚師-獨奏不起作用

[英]knife-solo to start configuring chef-solo not working

單獨安裝Knife刀是一個刀子插件,在這里我看到一個很好的截屏視頻。

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。 請讓我知道怎么了,謝謝。

刀插件已添加到Chef 0.10中。 使用sudo gem install chef升級。 0.8已經過時了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM