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
operation:specify.html [2018/02/14 00:58]
kurihara
operation:specify.html [2019/02/11 00:32] (current)
kurihara
Line 4: Line 4:
 \\ \\
 {{INLINETOC}} {{INLINETOC}}
 +\\
 +
 +I extended Fabric to make it easier to specify the servers.
 +I call the modified Fabric FastHandle.
 +
 \\ \\
  
Line 9: Line 14:
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=192.168.0.10 $ H=192.168.0.10
-$ fab -H $H auth.pro -- hostname+$ fab -H $H  -- 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  -- hostname 
-$ fab -H 192.168.0.10 auth.pro test.test+$ fab -H 192.168.0.10  test.test
 </sxh> </sxh>
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ echo 192.168.0.10 | fab auth.pro -- hostname +$ echo 192.168.0.10 | fab  -- hostname 
-$ echo 192.168.0.10 | fab auth.pro test.test+$ echo 192.168.0.10 | fab  test.test
 </sxh> </sxh>
  
Line 28: Line 33:
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=192.168.0.10,192.168.0.11 $ H=192.168.0.10,192.168.0.11
-$ fab -H $H auth.pro -- hostname+$ fab -H $H  -- 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  -- 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  test.test
 </sxh> </sxh>
  
 <sxh bash toolbar:false gutter:false> <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  -- 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  test.test
  
-$ echo 192.168.0.10\\n192.168.0.11 | fab auth.pro -- hostname+$ echo 192.168.0.10\\n192.168.0.11 | fab  -- hostname
 </sxh> </sxh>
  
Line 49: Line 54:
 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 tmp | fab auth.pro test.test+$ cat tmp | fab  test.test
 </sxh> </sxh>
  
Line 66: Line 71:
 192.168.0.99 test-web-99 192.168.0.99 test-web-99
 $ $
-$ fhghost.sh test-web hosts/test | fab auth.pro test.test+$ fhghost.sh test-web hosts/test | fab  test.test
  
-$ fhghost.sh  hosts/test | fab auth.pro test.test+$ fhghost.sh  hosts/test | fab  test.test
 </sxh> </sxh>
  


operation/specify.html.1518537482.txt.gz · Last modified: 2018/02/14 00:58 by kurihara