FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
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: | ||
[[: | [[: | ||
- | ====== How to Specify the server ====== | + | ====== How to Specify the server |
\\ | \\ | ||
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: | <sxh bash toolbar: | ||
- | $ echo 192.168.0.10 | + | $ H=192.168.0.10 |
- | $ echo 192.168.0.10 | fab auth.pro test.test | + | $ fab -H $H auth.pro -- hostname |
</ | </ | ||
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 bash toolbar: | ||
+ | $ echo 192.168.0.10 | fab auth.pro -- hostname | ||
+ | $ echo 192.168.0.10 | fab auth.pro test.test | ||
+ | </ | ||
+ | |||
\\ | \\ | ||
===== Two Servers ===== | ===== Two Servers ===== | ||
- | <sxh bash toolbar: | ||
- | $ echo " | ||
- | $ echo " | ||
- | $ echo 192.168.0.10\\n192.168.0.11 | + | <sxh bash toolbar: |
+ | $ H=192.168.0.10,192.168.0.11 | ||
+ | $ fab -H $H auth.pro -- hostname | ||
</ | </ | ||
+ | |||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 33: | Line 43: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ vi hosts/tmp | + | $ echo " |
+ | $ echo " | ||
+ | |||
+ | $ echo 192.168.0.10\\n192.168.0.11 | fab auth.pro -- hostname | ||
+ | </sxh> | ||
+ | |||
+ | |||
+ | <sxh bash toolbar: | ||
+ | $ 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 |
</ | </ | ||
\\ | \\ | ||
===== Many Servers ===== | ===== Many Servers ===== | ||
+ | |||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ cat hosts/test | $ cat hosts/test | ||
192.168.0.1 test-web-01 | 192.168.0.1 test-web-01 | ||
- | 192.168.0.1 test-web-02 | + | 192.168.0.2 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 | + | $ fhghost.sh test-web hosts/test | fab auth.pro test.test |
- | $ fhghost.sh | + | $ fhghost.sh |
</ | </ | ||
+ | |||
+ | Check [[preparation: | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | <WRAP box 90%> | ||
+ | <catlist -noAddPageButton -smallHead -sortAscending> | ||
+ | </ | ||
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.