Browse files

version 0.2.0, VPC shielded ELBs now will be handled

  • Loading branch information...
1 parent 3b2def4 commit c087899327170fe1cc977c512baef7962dd731f7 dan miley committed Jul 27, 2012
Showing with 11 additions and 4 deletions.
  1. +5 −0 README.markdown
  2. +2 −2 cap-elb.gemspec
  3. +3 −1 lib/cap-elb.rb
  4. +1 −1 lib/cap-elb/version.rb
View
5 README.markdown
@@ -100,6 +100,11 @@ add this to your cap deploy file:
This will give you the list of hosts behind the load balancer that meet the criteria.
% cap ec2:list
+Version Informatoin
+=============
+Version 0.2.0 - ELBs behind VPCs didn't work on all 0.1.x, due to no :dns_name for VPC shielded hosts. Now we fall back to IP addresses in 0.2.x and above
+
+
Documentation
=============
Additional Ruby class/method documentation is available at: [http://rubydoc.info/gems/cap-elb/frames] (http://rubydoc.info/gems/cap-elb/frames)
View
4 cap-elb.gemspec
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
s.authors = ["Dan Miley"]
s.email = ["dan.miley@gmail.com"]
s.homepage = "http://github.com/danmiley/cap-elb"
- s.summary = %q{Capistrano can perform tasks on EC2 intstance managed by individual Amazon ELB instances.}
- s.description = %q{Capistrano can perform tasks on the EC2 instances managed by named Amazon ELB instances. }
+ s.summary = %q{Capistrano can perform tasks on EC2 intstance managed by individual Amazon ELB instances. New: Now works with VPC managed ELBs.}
+ s.description = %q{Capistrano can perform tasks on the EC2 instances managed by named Amazon ELB instances. New: Now works with VPC managed ELBs.}
# Various filters are qvailable to allow EC2 instance top level metadata and tags to determine whether the task should be applied on the given instance.
s.rubyforge_project = "cap-elb"
View
4 lib/cap-elb.rb
@@ -130,7 +130,9 @@ def loadbalancer (named_load_balancer, *args)
# finally load the derived instances into the serverlist used by capistrano tasks
account_instance_list.each do |instance|
- server(instance[:dns_name], *args)
+ hostname = instance[:dns_name]
+ hostname = instance[:ip_address] if hostname.empty? # if host in a VPC, there will be no DNS name, use ip_address instead
+ server(hostname, *args)
end
end
View
2 lib/cap-elb/version.rb
@@ -1,5 +1,5 @@
module Cap
module Elb
- VERSION = "0.1.1"
+ VERSION = "0.2.0"
end
end

0 comments on commit c087899

Please sign in to comment.