I wrote some tasks that do dynamic role assignment for SCALR
http://scalr.net which is a EC2 management application.

(It uses a hosts directory that SCALR maintains, but you could swap
out the enum process for however you would like to enumerate the hosts
and roles.

http://groups.google.com/group/scalr-discuss/web/scalr-with-capistrano

On Mon, Jun 29, 2009 at 5:01 PM, Chris F<[email protected]> wrote:
>
> I'm trying to role out to a dynamically changing list of web servers
> using capistrano.
> I need to query a mysql table to retrieve a list of hostnames and then
> deploy to them.
>
> I've been trying to pass the list via
>
> -S ec2instance="'www1','www2'"
>
> and
>
> role :web, #{ec2instances}
>
> but this seems to cause an issue with the quotes.
>
> I can't set HOSTS env variable as we use a gateway.
>
> Any ideas?
>
> Thanks
>
> Chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to