Table of Contents

Top#Preparation

Preparation Host List



How to write hosts list


Examples

$FHLINUX/hosts/tmp

10.50.0.1    tmp-web-01
10.50.0.2    tmp-web-02
10.50.0.3    tmp-web-03

$FHLINUX/hosts/test

# 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

$FHLINUX/hosts/pro

# 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

$FHLINUX/hosts/stg

# 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




Hosts test

$ fhghost.sh web hosts/test | fab auth.pro -- hostname


Top#Preparation



Top#Preparation