Chris,

You may be stuck using a task to define the roles() -- you can read a little
on a YAML concept I came up with here:

   - http://lee.hambley.name/2009/02/capistrano-with-yaml-configuration

Theres a similar idea in the Capistrano Handbook that I'm working on ...
look for the section that reads "The Multi-Stage Extension may be
implementing something like the following internally:" and see the example,
I suppose you can insert some MySQL magic in there somewhere...

   -
   
http://github.com/leehambley/capistrano-handbook/blob/2fa2a3c06dc149b20fb1cbfa383d172bcef1ccbe/index.markdown

- Lee


2009/6/30 Chris F <[email protected]>

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