|
From: | William Salt |
Subject: | Re: [Fab-user] Best way to sort and maintain a list of server ? |
Date: | Fri, 3 Jan 2014 18:08:49 +0000 |
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
Will
Example of my servers.py :
# coding: utf-8
from __future__ import with_statement
from fabric.api import env
env.roledefs = {
#
'mutualized' : ['
'
'
'
serv
'
serv'
serv'
serv
#
'dedicated' : ['
'
'
serv
'
serv'
serv'
serv
[Prev in Thread] | Current Thread | [Next in Thread] |