|
From: | Vincent Barillere |
Subject: | Re: [Fab-user] Best way to sort and maintain a list of server ? |
Date: | Mon, 6 Jan 2014 09:37:33 +0100 |
Regards,
Hi Vincent,
You could look at using boto and ec2 tags, but i find them somewhat inflexible.
Instead, i use chef for basic service discovery, and apply roles to nodes. You can then search for nodes woth a role in an environment.
The pychef library has fabric integration too.Regards
WillHi,First of all I wish you a happy new year.
I have my trouble to easily maintain about 70 servers placed in different groups.
Currently I have a separate file that I import but it is not very practical because a server can be found in different groups when adding a server so I need to add in the different groups.
Do you have any tips to sort and simply maintain a list of serverin fabric?Example of my servers.py :
# coding: utf-8
from __future__ import with_statement
from fabric.api import env
env.roledefs = {
#
mutualized servers'mutualized' : ['
serv','
serv1','
serv2','
serv3',
'
serv4','
serv5','
serv6'],
#
dedicated servers'dedicated' : ['
serv0','
serv7','
serv8',
'
serv9','
serv10','
serv11'],....
Thanks for your help,
Regards.Vincent
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
[Prev in Thread] | Current Thread | [Next in Thread] |