fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Best way to sort and maintain a list of server ?


From: Vincent Barillere
Subject: [Fab-user] Best way to sort and maintain a list of server ?
Date: Fri, 3 Jan 2014 17:08:00 +0100

Hi,

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 server
in 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
',

'

serv
2
',

'

serv
3
',

'

serv
4
',

'

serv
5
',

'

serv
6
'],

#

dedicated servers

    'dedicated' : ['

serv0
',

'

serv7
',

'

serv
8
',

'

serv
9
',

'

serv
10
',

'

serv
11
'
]
,

....

Thanks for your help,


Regards.
Vincent


reply via email to

[Prev in Thread] Current Thread [Next in Thread]