[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] fabric to retrieve information from systems
From: |
Geoff Crompton |
Subject: |
[Fab-user] fabric to retrieve information from systems |
Date: |
Wed, 14 Dec 2011 09:58:08 +1100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 |
Is it possible for fabric tasks to retrieve information from systems,
and record the information locally?
So given this simple task:
unames = dict()
def get_uname():
uname_info = run('/bin/uname -a')
unames[env.host] = uname_info
How do I make fabric run some python code at the end of it's execution
to do json.dump(unames)?
Cheers,
--
+-Geoff Crompton
+--Debian System Administrator
+---Trinity College
- [Fab-user] fabric to retrieve information from systems,
Geoff Crompton <=