Discussion:
[Fab-user] advice on organizing servers and groups
S Ahmed
2013-10-09 20:40:05 UTC
Permalink
I am using fabric to deploy code to ec2.
I have 3 sets of servers: web, application, jobs

After I spin up these servers: 1 x web, 3 x app, 1 x jobs

I have to grap the ipaddresses for each, and update my fabfile.py with the
ip addresses.

How would you suggest I do this, any best practises around this?
Andres Riancho
2013-10-09 21:01:00 UTC
Permalink
I would say... don't. Modifying source in an automated way is not a
good idea, also this will break stuff like git.

I would recommend you somehow find out the IP addresses for your
servers by calling the Amazon API. For example, call the API to list
all instances, then retrieve the instance name and filter by "web",
for each of those instances get the IP address and use that to connect
to it.
Post by S Ahmed
I am using fabric to deploy code to ec2.
I have 3 sets of servers: web, application, jobs
After I spin up these servers: 1 x web, 3 x app, 1 x jobs
I have to grap the ipaddresses for each, and update my fabfile.py with the
ip addresses.
How would you suggest I do this, any best practises around this?
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
--
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
Twitter: @w3af
GPG: 0x93C344F3
S Ahmed
2013-10-09 23:51:36 UTC
Permalink
Yeah I could use the python api client, and somehow fetch the instances by
tags.
Post by Andres Riancho
I would say... don't. Modifying source in an automated way is not a
good idea, also this will break stuff like git.
I would recommend you somehow find out the IP addresses for your
servers by calling the Amazon API. For example, call the API to list
all instances, then retrieve the instance name and filter by "web",
for each of those instances get the IP address and use that to connect
to it.
Post by S Ahmed
I am using fabric to deploy code to ec2.
I have 3 sets of servers: web, application, jobs
After I spin up these servers: 1 x web, 3 x app, 1 x jobs
I have to grap the ipaddresses for each, and update my fabfile.py with
the
Post by S Ahmed
ip addresses.
How would you suggest I do this, any best practises around this?
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
--
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
GPG: 0x93C344F3
Rahul Menon
2013-10-10 00:10:37 UTC
Permalink
Here is a good example of how you can use boto+fabric

https://gist.github.com/gtaylor/1901752

Rahul
Post by S Ahmed
Yeah I could use the python api client, and somehow fetch the instances by
tags.
Post by Andres Riancho
I would say... don't. Modifying source in an automated way is not a
good idea, also this will break stuff like git.
I would recommend you somehow find out the IP addresses for your
servers by calling the Amazon API. For example, call the API to list
all instances, then retrieve the instance name and filter by "web",
for each of those instances get the IP address and use that to connect
to it.
Post by S Ahmed
I am using fabric to deploy code to ec2.
I have 3 sets of servers: web, application, jobs
After I spin up these servers: 1 x web, 3 x app, 1 x jobs
I have to grap the ipaddresses for each, and update my fabfile.py with
the
Post by S Ahmed
ip addresses.
How would you suggest I do this, any best practises around this?
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
--
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
GPG: 0x93C344F3
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Loading...