Untitled


SUBMITTED BY: Guest

DATE: Nov. 10, 2013, 2:25 p.m.

FORMAT: Text only

SIZE: 1.6 kB

HITS: 10324

  1. r = gem_package "redis" do
  2. action :install
  3. end
  4. r.run_action(:install)
  5. r = chef_gem "redis" do
  6. action :install
  7. end
  8. r.run_action(:install)
  9. [2013-10-03T16:11:41+00:00] DEBUG: filtered backtrace of compile error:
  10. [2013-10-03T16:11:41+00:00] DEBUG: filtered backtrace of compile error:
  11. [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''
  12. [2013-10-03T16:11:41+00:00] DEBUG: Line number of compile error: '1'
  13. [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'
  14. r = chef_gem "redis" do
  15. action :nothing
  16. end
  17. r.run_action(:install)
  18. Gem.clear_paths
  19. action :create do
  20. if @current_resource.exists
  21. Chef::Log.info "#{ @new_resource } already exist - nothing to do."
  22. else
  23. converge_by("Create #{ @new_resource }") do
  24. create_app_key
  25. end
  26. end
  27. end
  28. def create_app_key
  29. redis = ::Redis.new
  30. redis.set "#{@new_resource.app_name}", "#{@new_resource.api_key}"
  31. end

comments powered by Disqus