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

Next revision
Previous revision
Last revision Both sides next revision
operation:specify.html [2017/12/02 01:41]
kurihara created
operation:specify.html [2018/02/14 01:31]
kurihara
Line 1: Line 1:
-====== How to Specify the server ======+[[:index.html#How to use FastHandle|Top#How to use FastHandle]] 
 +====== How to Specify the server with FastHandle ======
  
 \\ \\
Line 5: 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 test.test+H=192.168.0.10 
 +fab -H $H auth.pro -- hostname
 </sxh> </sxh>
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 +$ fab -H 192.168.0.10 auth.pro -- hostname
 $ 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> <sxh bash toolbar:false gutter:false>
-echo "192.168.0.10\n192.168.0.11" | fab auth.pro test.test+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>
 +$ fab -H 192.168.0.10,192.168.0.11 auth.pro -- hostname
 $ fab -H 192.168.0.10,192.168.0.11 auth.pro test.test $ fab -H 192.168.0.10,192.168.0.11 auth.pro test.test
 +</sxh>
 +
 +<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>
 +
 +
 +<sxh bash toolbar:false gutter:false>
 +$ vi tmp
 +192.168.0.1 test-web-01
 +192.168.0.1 test-web-02
 +$ 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>
 +
 +
 +\\
 +\\
 +[[:index.html#How to use FastHandle|Top#How to use FastHandle]]


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