FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Top     SiteMap

Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

operation:specify.html



Top#How to use FastHandle

How to Specify the server with FastHandle



I extended Fabric to make it easier to specify the servers.
I call the modified Fabric FastHandle.


One Server

$ H=192.168.0.10
$ fab -H $H auth.pro -- hostname

$ fab -H 192.168.0.10 auth.pro -- hostname
$ fab -H 192.168.0.10 auth.pro test.test

$ echo 192.168.0.10 | fab auth.pro -- hostname
$ echo 192.168.0.10 | fab auth.pro test.test


Two Servers

$ H=192.168.0.10,192.168.0.11
$ fab -H $H auth.pro -- hostname

$ 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

$ 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

$ vi tmp
192.168.0.1 test-web-01
192.168.0.1 test-web-02
$ cat tmp | fab auth.pro test.test


Many Servers

$ cat hosts/test
192.168.0.1 test-web-01
192.168.0.2 test-web-02
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-web hosts/test | fab auth.pro test.test

$ fhghost.sh  hosts/test | fab auth.pro test.test

Check $FHHOME/fhscripts/fhghost.sh






Top#How to use FastHandle



operation/specify.html.txt ยท Last modified: 2018/02/14 01:31 by kurihara