I just released a simple plugin for Capistrano, that looks up EC2 instance hostnames, based on security groups. The purpose of this is to avoid manually entering hostnames into deploy.rb, especially when using the auto-scaling feature. By organizing instances by security groups (as roles), the security groups can be used to look up all instances with a specific role.
I am sure that this has been done a lot of times directly in the deploy.rb, but I wanted to extract the code into a plugin in order to clean up the deploy.rb file and increase code re-use. The syntax for specifying a group of instances is similar to the 'server' method. This looks up all the instances in the "appservers" security group: group :appservers, :app Take a look at http://github.com/logandk/capistrano-ec2group - I hope this is of use to some of you. Issues can be posted on the GitHub page. Logan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
