FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


operation:fabric.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
operation:fabric.html [2018/01/28 23:41]
kurihara
operation:fabric.html [2020/01/22 09:22] (current)
kurihara [About Fabric]
Line 1: Line 1:
 [[:index.html#How to use FastHandle|Top#How to use FastHandle]] [[:index.html#How to use FastHandle|Top#How to use FastHandle]]
-====== How to use Fabric======+====== How to use Fabric in Python======
  
 \\ \\
Line 10: Line 10:
  
 ===== About Fabric ===== ===== About Fabric =====
-http://www.fabfile.org/ 
  
->Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.+Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.  
 + 
 +|<100% 100px ->| 
 +| Fabric   | Python (2.5-2.7)\\ http://www.fabfile.org/                                                                                                                                                                         | 
 +| fabric2  | Python (2.7, 3.4+)\\ http://www.fabfile.org/                                                                                                                                                                       | 
 +| fabric3  | Python (2.7, 3.4+) . \\ Fabric3 is a fork of Fabric to provide compatability with Python 3.4+. The port still works with Python 2.7.\\ https://pypi.org/project/Fabric3/\\ https://github.com/mathiasertl/fabric/  |
  
  
Line 49: Line 53:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ fab -H test-server-1 -u user01 -p XXXX -- whoami+$ fab -H test-server-1 -u user01 -p XXXX -- hostname 
 +$ fab -H test-server-1,test-server-2 -u user01 -p XXXX -- hostname 
 +</sxh>
  
 +<sxh bash toolbar:false gutter:false>
 $ PASS=XXXX $ PASS=XXXX
 $ fab -H test-server-1 -u user01 -p $PASS -- hostname $ fab -H test-server-1 -u user01 -p $PASS -- hostname
 </sxh> </sxh>
  
 +<sxh bash toolbar:false gutter:false> 
 +~]$ fab -H  xx.xx.xx.xx -u USER01 -- hostname 
 +[xx.xx.xx.xx] Executing task '<remainder>' 
 +[xx.xx.xx.xx] run: hostname 
 +[xx.xx.xx.xx] Login password for 'USER01': 
 +[xx.xx.xx.xx] out: test-server-01 
 +[xx.xx.xx.xx] out: 
 +</sxh>
  
  


operation/fabric.html.1517150477.txt.gz · Last modified: 2018/01/28 23:41 by kurihara