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

Next revision
Previous revision
preparation:host-list.html [2017/11/11 01:48]
kurihara created
preparation:host-list.html [2019/02/11 00:56] (current)
kurihara
Line 1: Line 1:
-====== Preparation Hosts ======+[[:index.html#Preparation|Top#Preparation]] 
 +====== Preparation Host List ======
  
 +\\
 +{{INLINETOC}}
 +\\
  
  
-===== Example : hosts_test =====+===== How to write hosts list =====
  
-<code> +  *Target server in the first column of the file. 
-# Example +  *row 1 host 
-10.50.0.1    test-web-01 +  *Anything after the second row is goodYou can add any number of groups
-10.50.0.2    test-web-02 +  *# Is a comment
-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 +
-</code>+
  
 +\\
 +===== Examples =====
  
 +==== $FHLINUX/hosts/tmp ====
 +
 +<sxh bash toolbar:false gutter:false>
 +10.50.0.1    tmp-web-01
 +10.50.0.2    tmp-web-02
 +10.50.0.3    tmp-web-03
 +</sxh>
 +
 +==== $FHLINUX/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>
 +
 +
 +==== $FHLINUX/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>
 +
 +==== $FHLINUX/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.1510332537.txt.gz · Last modified: 2017/11/11 01:48 by kurihara