FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


operation:specify.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
Last revision Both sides next revision
operation:specify.html [2017/12/04 23:47]
kurihara
operation:specify.html [2018/02/14 01:31]
kurihara
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 Specify the server ======+====== How to Specify the server with FastHandle ======
  
 \\ \\
Line 6: Line 6:
 \\ \\
  
-===== One Server =====+I extended Fabric to make it easier to specify the servers. 
 +I call the modified Fabric FastHandle.
  
 +\\
 +
 +===== One Server =====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-echo 192.168.0.10 fab auth.pro -- hostname +H=192.168.0.10 
-$ echo 192.168.0.10 | fab auth.pro test.test+fab -H $H auth.pro -- hostname
 </sxh> </sxh>
  
Line 17: Line 21:
 $ fab -H 192.168.0.10 auth.pro test.test $ fab -H 192.168.0.10 auth.pro test.test
 </sxh> </sxh>
 +
 +<sxh bash toolbar:false gutter:false>
 +$ echo 192.168.0.10 | fab auth.pro -- hostname
 +$ echo 192.168.0.10 | fab auth.pro test.test
 +</sxh>
 +
  
 \\ \\
 ===== Two Servers ===== ===== Two Servers =====
-<sxh bash toolbar:false gutter:false> 
-$ echo "192.168.0.10\n192.168.0.11" | fab auth.pro -- hostname 
-$ echo "192.168.0.10\n192.168.0.11" | fab auth.pro test.test 
  
-echo 192.168.0.10\\n192.168.0.11 fab auth.pro -- hostname+<sxh bash toolbar:false gutter:false> 
 +H=192.168.0.10,192.168.0.11 
 +fab -H $H auth.pro -- hostname
 </sxh> </sxh>
 +
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 33: Line 43:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-vi hosts/tmp+echo "192.168.0.10\n192.168.0.11" | fab auth.pro -- hostname 
 +$ echo "192.168.0.10\n192.168.0.11" | fab auth.pro test.test 
 + 
 +$ echo 192.168.0.10\\n192.168.0.11 | fab auth.pro -- hostname 
 +</sxh> 
 + 
 + 
 +<sxh bash toolbar:false gutter:false> 
 +$ vi tmp
 192.168.0.1 test-web-01 192.168.0.1 test-web-01
 192.168.0.1 test-web-02 192.168.0.1 test-web-02
-$ cat hosts/tmp | fab auth.pro test.test+$ cat tmp | fab auth.pro test.test
 </sxh> </sxh>
  
 \\ \\
 ===== Many Servers ===== ===== Many Servers =====
 +
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ cat hosts/test $ cat hosts/test
 192.168.0.1 test-web-01 192.168.0.1 test-web-01
-192.168.0.test-web-02+192.168.0.test-web-02
 192.168.0.3 test-web-03 192.168.0.3 test-web-03
 +192.168.0.4 test-web-04
 +192.168.0.5 test-web-05
 +.....
 +192.168.0.98 test-web-98
 +192.168.0.99 test-web-99
 $ $
-$ fhghost.sh test-server hosts/test | fab auth.pro test.test+$ fhghost.sh test-web hosts/test | fab auth.pro test.test
  
-$ fhghost.sh "*" hosts/test | fab auth.pro test.test+$ fhghost.sh  hosts/test | fab auth.pro test.test
 </sxh> </sxh>
 +
 +Check [[preparation:fhhome:fhghost.html|]] 
 +
 +
 +
 +\\
 +<WRAP box 90%>
 +<catlist -noAddPageButton -smallHead -sortAscending>
 +</WRAP>
  
  


operation/specify.html.txt · Last modified: 2019/02/11 00:32 by kurihara