Created
March 24, 2011 21:34
-
-
Save coderanger/885944 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r = gem_package "amazon-ec2" do | |
version "0.9.17" | |
end | |
r.run_action(:install) | |
require 'rubygems' | |
Gem.clear_paths | |
require 'AWS' | |
ruby_block "register_with_elb" do | |
ec2 = AWS::ELB::Base.new(:access_key_id => "xxxxx", :secret_access_key => "yyyy") | |
block do | |
ec2.register_instances_with_load_balancer(:load_balancer_name => "integration-svnetwork-app", :instances => ["#{@node[:ec2][:instance_id]}"] ) | |
end | |
not_if {registered_with_load_balancer?(:ec2 => ec2)} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu, 24 Mar 2011 14:01:25 -0700] DEBUG: Setting gem_package[amazon-ec2] to the state of the prior gem_package[amazon-ec2] | |
[Thu, 24 Mar 2011 14:01:25 -0700] DEBUG: I am not loading apache2, because I have already seen it. | |
[Thu, 24 Mar 2011 14:01:25 -0700] DEBUG: Setting gem_package[amazon-ec2] to the state of the prior gem_package[amazon-ec2] | |
[Thu, 24 Mar 2011 14:01:25 -0700] ERROR: Running exception handlers | |
[Thu, 24 Mar 2011 14:01:25 -0700] ERROR: Exception handlers complete | |
[Thu, 24 Mar 2011 14:01:25 -0700] DEBUG: Re-raising exception: LoadError - no such file to load -- AWS | |
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' | |
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' | |
/var/chef/cache/cookbooks/svnetwork/recipes/app.rb:130:in `from_file' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:72:in `instance_eval' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:72:in `method_missing' | |
/var/chef/cache/cookbooks/svnetwork/recipes/app.rb:129:in `from_file' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
/var/chef/cache/cookbooks/svnetwork/recipes/primary_app.rb:1:in `from_file' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
/var/chef/cache/cookbooks/svnetwork/recipes/primary_app_integration.rb:27:in `from_file' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:94:in `load' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:91:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:91:in `load' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:55:in `initialize' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/client.rb:166:in `new' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/client.rb:166:in `run' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:222:in `run_application' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:212:in `loop' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:212:in `run_application' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application.rb:62:in `run' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/chef-client:26 | |
/opt/ruby-enterprise/bin/chef-client:19:in `load' | |
/opt/ruby-enterprise/bin/chef-client:19 | |
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- AWS (LoadError) | |
from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' | |
from /var/chef/cache/cookbooks/svnetwork/recipes/app.rb:130:in `from_file' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:72:in `instance_eval' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:72:in `method_missing' | |
from /var/chef/cache/cookbooks/svnetwork/recipes/app.rb:129:in `from_file' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
from /var/chef/cache/cookbooks/svnetwork/recipes/primary_app.rb:1:in `from_file' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
from /var/chef/cache/cookbooks/svnetwork/recipes/primary_app_integration.rb:27:in `from_file' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/cookbook_version.rb:473:in `load_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:94:in `load' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:91:in `each' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:91:in `load' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/run_context.rb:55:in `initialize' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/client.rb:166:in `new' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/client.rb:166:in `run' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:222:in `run_application' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:212:in `loop' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/client.rb:212:in `run_application' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application.rb:62:in `run' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/chef-client:26 | |
from /opt/ruby-enterprise/bin/chef-client:19:in `load' | |
from /opt/ruby-enterprise/bin/chef-client:19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
bunny (0.6.0) | |
chef (0.9.14) | |
erubis (2.6.6) | |
extlib (0.9.15) | |
highline (1.6.1) | |
json (1.4.6) | |
mime-types (1.16) | |
mixlib-authentication (1.1.4) | |
mixlib-cli (1.2.0) | |
mixlib-config (1.1.2) | |
mixlib-log (1.2.0) | |
moneta (0.6.0) | |
mysql (2.8.1) | |
ohai (0.5.8) | |
rest-client (1.6.1) | |
systemu (1.2.0) | |
uuidtools (2.1.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment