FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


preparation:fhhome:test.py.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
Next revision Both sides next revision
preparation:fhhome:test.py.html [2018/05/08 00:52]
kurihara
preparation:fhhome:test.py.html [2019/02/13 00:14]
kurihara
Line 1: Line 1:
-~~NOTOC~~ 
 [[:index.html#Preparation|Top#Preparation]] [[:index.html#Preparation|Top#Preparation]]
 +====== $FHHOME/$FHLINUX/fabfile/test.py ======
  
-====== $FHHOME/fabfile/test.py ====== 
  
  
-===== Operation ===== 
-<sxh bash toolbar:false gutter:false> 
-$ echo xx.xx.xx.xx | fab -- hostname 
-$ echo xx.xx.xx.xx | fab -- sudo cat /etc/shadow 
- 
-$ fab local_hostname 
- 
-$ fab -l |grep test.    # check options 
- 
-$ echo xx.xx.xx.xx | fab auth.test test.hostname 
-$ fhghost.sh "*" hosts/test | fab auth.test test.hostname 
-</sxh> 
  
-\\ 
 ===== fabfile/test.py ===== ===== fabfile/test.py =====
  
Line 27: Line 13:
 from datetime import datetime from datetime import datetime
  
-FHHOME=os.environ["FHHOME"]+FHLINUX=os.environ["FHLINUX"]
  
 # test.local_hostname # test.local_hostname


preparation/fhhome/test.py.html.txt · Last modified: 2019/02/13 00:18 by kurihara