0
我正在編寫一個LWRP,用API密鑰對redis數據庫進行種子處理以允許進行身份驗證。我的麻煩是使用redis庫進行ruby。我搜索了一下,發現了一些在線的例子,沒有任何工作可以幫助我。在廚師中安裝,需要和使用ruby庫lwrp
我在AWS OpsWorks運行此所以它是用廚師獨奏
我試過,包括我跑列表中的食譜,安裝Redis的寶石(https://github.com/brianbianco/redisio/blob/master/recipes/redis_gem.rb)
我也試過在烹飪書中安裝寶石。
r = gem_package "redis" do
action :install
end
r.run_action(:install)
或
r = chef_gem "redis" do
action :install
end
r.run_action(:install)
這是我正在讓我的廚師跑
[2013-10-03T16:11:41+00:00] DEBUG: filtered backtrace of compile error:
[2013-10-03T16:11:41+00:00] DEBUG: filtered backtrace of compile error:
[2013-10-03T16:11:41+00:00] DEBUG: backtrace entry for compile error: '/opt/aws/opsworks/releases/20130926123105_208/site-cookbooks/ilnkmx/providers/add_app.rb:1:in `require''
[2013-10-03T16:11:41+00:00] DEBUG: Line number of compile error: '1'
[2013-10-03T16:11:42+00:00] ERROR: Caught exception while compiling OpsWorks custom run list: LoadError - no such file to load -- redis - /opt/aws/opsworks/releases/20130926123105_208/site-cookbooks/ilnkmx/providers/add_app.rb:1:in `require'
我是新來的紅寶石所以任何錯誤和所有幫助讚賞,謝謝。