FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

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













.

operation:specify.html



This is an old revision of the document!


Top#How to use FastHandle

How to Specify the server

One Server

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

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


Two Servers

$ 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

$ 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

$ H=192.168.0.10,192.168.0.11
$ fab -H $H 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.1 test-web-02
192.168.0.3 test-web-03
$
$ fhghost.sh test-server hosts/test | fab auth.pro test.test

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





Top#How to use FastHandle



operation/specify.html.1513355286.txt.gz ยท Last modified: 2017/12/16 01:28 by kurihara