FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


preparation:directory-structure.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
preparation:directory-structure.html [2019/02/11 01:03]
kurihara
preparation:directory-structure.html [2020/01/22 09:08] (current)
kurihara
Line 8: Line 8:
 ===== FastHandle Manager Server ===== ===== FastHandle Manager Server =====
 ====$FHHOME Top Directory==== ====$FHHOME Top Directory====
 +Choose a HOME directory.
 +
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 +Example:
 +/home/$USER/fhhome        # $FHHOME
 /home/fasthandle/fhhome   # $FHHOME /home/fasthandle/fhhome   # $FHHOME
-    fh.env +/home/fasthandle/fabric   # $FHHOME 
-    linux/ + 
-    others+                    fh.env 
-    win/+                    fhscripts/ 
 +                    linux/ 
 +                    windows
 +                    others/
 </sxh> </sxh>
  
-====Linux Directory====+ 
 +\\ 
 +====FastHand Scripts Directory====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-/home/fasthandle/fhhome/linux/ +$FHHOME/fhscripts/
- +
-          fabfile/ +
-              __init__.py +
- +
-              test.py    # fab auth.pro  test.test01 +
- +
-              user.py    # fab auth.pro  user.useradd_user01 +
-              centos.py  # fab auth.pro centos.init +
-              httpd.py   # fab auth.pro httpd.install_yum +
-              nginx.py   # fab auth.pro nginx.install_yum +
-              squid.py   # fab auth.pro squid.install_yum +
- +
-              test-web.py  # fab auth.pro test-web.createfile +
-              test-ap.py   # fab auth.pro test-ap.createfile +
-              test-db.py   # fab auth.pro test-db.createfile +
- +
-              20180620.py   # fab auth.pro 20180620.xxxxx +
-              20180925.py   # fab auth.pro 20180925.xxxxx +
  
- +          fhscripts/      # This is FastHandle Scripts for execute from manager server.
-          bin/      # This is FastHandle Scripts for execute from manager server.+
                fhhelp.sh     # fhhelp.sh |less                fhhelp.sh     # fhhelp.sh |less
  
Line 51: Line 40:
                check_loginpass.exp                check_loginpass.exp
                check_rootpass.exp                check_rootpass.exp
 +</sxh>
 +
 +====Fabric Directory for Linux====
 +<sxh bash toolbar:false gutter:false>
 +$FHHOME/linux/
 +
 +          fabfile/
 +              __init__.py
 +
 +              test.py    # fab  test.test01
 +
 +              user.py    # fab  user.useradd_user01
 +              centos.py  # fab  centos.init
 +              httpd.py   # fab  httpd.install_yum
 +              nginx.py   # fab  nginx.install_yum
 +              squid.py   # fab  squid.install_yum
 +
 +              test-web.py  # fab  test-web.createfile
 +              test-ap.py   # fab  test-ap.createfile
 +              test-db.py   # fab  test-db.createfile
 +
 +              20180620_user1.py   # fab  20180620_user1.xxxxx
 +              20180925_user2.py   # fab  20180925_user2.xxxxx
  
           hosts/           hosts/
Line 133: Line 145:
  
 </sxh> </sxh>
 +
 +====Fabric Directory for Windows====
 +<sxh bash toolbar:false gutter:false>
 +$FHHOME/windows/
 +
 +          fabfile/
 +              __init__.py
 +
 +              test.py    # fab  test.test01
 +              
 +              xxxx.py    # fab  xxx.yyyy
 +
 +
 +              20180620_user1.py   # fab  20180620_user1.xxxxx
 +              20180925_user2.py   # fab  20180925_user2.xxxxx
 +
 +          hosts/
 +               test
 +               pro_win
 +               stg_win
 +
 +          key/
 +              id_rsa.fasthandle.pro-fasthandle-1
 +              id_rsa.fasthandle.stg-fasthandle-1
 +              id_rsa.fasthandle.dev-fasthandle-1
 +
 +
 +          target/
 +
 +              key/
 +                  id_rsa.USER.HOSTNAME
 +                  id_rsa.user01.test-server-01
 +                  id_rsa.user02.test-server-02
 +
 +
 +              windows/
 +                  hosts_20201112
 +
 +          output/
 +              201712
 +                  systeminfo.test-server1.20171129_1039    # sdiff -w 200  file1 file2
 +                  systeminfo.test-server2.20171129_1039
 +
 +          log/
 +              history.yyyymm.log
 +              history.201701.log
 +              history.201702.log
 +
 +          release/
 +              2015/
 +              2016/
 +              2017/
 +                  20171105/
 +                      operation_user01.txt
 +                      hosts_user1.txt
 +                      user1.py
 +          tmp/
 +
 +</sxh>
 +
  
 +\\
 \\ \\
 ===== FastHandle Target Server  ===== ===== FastHandle Target Server  =====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-/home/fasthandle/+Example: 
 +/home/$USER/fhhome/ 
 +/home/fasthandle/fhhome/ 
     scripts/     scripts/
         xxx.sh         xxx.sh


preparation/directory-structure.html.1549814602.txt.gz · Last modified: 2019/02/11 01:03 by kurihara