FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


preparation:host-list.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
Last revision Both sides next revision
preparation:host-list.html [2017/11/13 00:27]
kurihara
preparation:host-list.html [2018/01/11 01:23]
kurihara
Line 1: Line 1:
-====== Preparation Hosts List ======+[[:index.html#Preparation|Top#Preparation]] 
 +====== Preparation Host List ======
  
 +\\
 +{{INLINETOC}}
 +\\
  
  
-===== Example : hosts_test =====+===== How to write hosts list ===== 
 + 
 +  *Target server in the first column of the file. 
 +  *1 row 1 host 
 +  *Anything after the second row is good. You can add any number of groups. 
 +  *# Is a comment 
 + 
 +\\ 
 +===== Examples ===== 
 + 
 +==== $FHHOME/hosts/tmp ====
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-# Example +10.50.0.1    tmp-web-01 
-10.50.0.1    test-web-01 +10.50.0.2    tmp-web-02 
-10.50.0.2    test-web-02 +10.50.0.3    tmp-web-03
-10.50.0.3    test-web-03 +
-10.50.0.4    test-ap-01 +
-10.50.0.5    test-ap-02 +
-10.50.0.6    test-ap-03 +
-10.50.0.7    test-db-01 +
-10.50.0.8    test-db-02+
 </sxh> </sxh>
  
 +==== $FHHOME/hosts/test ====
 +
 +<sxh bash toolbar:false gutter:false>
 +# web
 +test-web-01   web   reboot1
 +test-web-02   web   reboot2
 +test-web-03   web   reboot3
 +
 +# ap
 +test-ap-01    ap    reboot1
 +test-ap-02    ap    reboot2
 +test-ap-03    ap    reboot3
 +
 +#db
 +test-db-01    db    reboot1
 +test-db-02    ap    reboot2
 +</sxh>
 +
 +
 +==== $FHHOME/hosts/pro ====
 +
 +<sxh bash toolbar:false gutter:false>
 +# web
 +pro-web-01   web   reboot1
 +pro-web-02   web   reboot2
 +pro-web-03   web   reboot3
 +
 +# ap
 +pro-ap-01    ap    reboot1
 +pro-ap-02    ap    reboot2
 +pro-ap-03    ap    reboot3
 +
 +#db
 +pro-db-01    db    reboot1
 +pro-db-02    ap    reboot2
 +</sxh>
 +
 +==== $FHHOME/hosts/stg ====
 +
 +<sxh bash toolbar:false gutter:false>
 +# web
 +stg-web-01   web   reboot1
 +stg-web-02   web   reboot2
 +stg-web-03   web   reboot3
 +
 +# ap
 +stg-ap-01    ap    reboot1
 +stg-ap-02    ap    reboot2
 +stg-ap-03    ap    reboot3
 +
 +#db
 +stg-db-01    db    reboot1
 +stg-db-02    ap    reboot2
 +</sxh>
 +
 +\\
 +\\
 +===== Hosts test =====
 +<sxh bash toolbar:false gutter:false>
 +$ fhghost.sh web hosts/test | fab auth.pro -- hostname
 +</sxh>
 +
 +
 +\\
 +<WRAP box 90%>
 +[[:index.html#Preparation|Top#Preparation]]
 +<catlist -noAddPageButton -noHead>
 +</WRAP>
 +\\
 +[[:index.html#Preparation|Top#Preparation]]


preparation/host-list.html.txt · Last modified: 2019/02/11 00:56 by kurihara