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 [2018/02/04 23:03]
kurihara
preparation:directory-structure.html [2020/01/22 09:08] (current)
kurihara
Line 7: Line 7:
  
 ===== FastHandle Manager Server ===== ===== FastHandle Manager Server =====
 +====$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
  
-    fabfile+                    fh.env 
-        __init__.py +                    fhscripts
-        auth.py +                    linux/ 
-        test.py    # fab auth.pro  test.test01+                    windows/ 
 +                    others/ 
 +</sxh>
  
-        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 +====FastHand Scripts Directory==== 
-        test-db.py   # fab auth.pro test-db.createfile+<sxh bash toolbar:false gutter:false> 
 +$FHHOME/fhscripts/
  
 +          fhscripts/      # This is FastHandle Scripts for execute from manager server.
 +               fhhelp.sh     # fhhelp.sh |less
  
-    fhscripts/      # This fhscripts execute from manager server. +               fhghost.sh    fhghost.sh hosts/xxxx
-         fhhelp.sh     fhhelp.sh |less+
  
-         fhghost.sh    # fhghost.sh hosts/xxxx+               fhssh.sh      # fhssh.sh  -H x.x.x.x auth.test 
 +               fhping.sh     # echo x.x.x.x | fhping.sh 
 +               fhfping.sh    # echo x.x.x.x | fhfping.sh 
 +                
 +               check_loginpass.exp 
 +               check_rootpass.exp 
 +</sxh>
  
-         fhssh.sh      # fhssh.sh  x.x.x.x +====Fabric Directory for Linux==== 
-         fhping.sh     # echo x.x.x.x | fhping.sh +<sxh bash toolbar:false gutter:false> 
-         fhfping.sh    # echo x.x.x.x | fhfping.sh +$FHHOME/linux/
-          +
-         check_loginpass.exp +
-         check_rootpass.exp+
  
-    hosts+          fabfile
-         test +              __init__.py
-         pro +
-         stg +
-         dev+
  
-    key/ +              test.py    # fab  test.test01
-        id_rsa.fasthandle.pro-fasthandle-1 +
-        id_rsa.fasthandle.stg-fasthandle-1 +
-        id_rsa.fasthandle.dev-fasthandle-1+
  
 +              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
  
-    target/+              test-web.py  # fab  test-web.createfile 
 +              test-ap.py   # fab  test-ap.createfile 
 +              test-db.py   # fab  test-db.createfile
  
-        key/ +              20180620_user1.py   # fab  20180620_user1.xxxxx 
-            id_rsa.USER.HOSTNAME +              20180925_user2.py   # fab  20180925_user2.xxxxx
-            id_rsa.user01.test-server-01 +
-            id_rsa.user02.test-server-02+
  
 +          hosts/
 +               test
 +               pro_linux
 +               pro_win
 +               pro_vmware
 +               stg_linux
 +               dev_linux
  
-        linux+          key
-            etc/sysctl.conf_rhel6 +              id_rsa.fasthandle.pro-fasthandle-1 
-            etc/sysctl.conf_rhel7 +              id_rsa.fasthandle.stg-fasthandle-1 
-            etc/selinux/config +              id_rsa.fasthandle.dev-fasthandle-1
-            etc/cron.d/performance+
  
-        named/ 
-            named.conf.HOSTNAME.YYYYMMDD 
-            named.conf.test-server-01.20161115 
-            named.conf.test-server-01.20171202 
  
-        httpd/ +          target/
-            httpd.conf.HOSTNAME.YYYYMMDD +
-            httpd.conf.test-server-01.20170815 +
-            httpd.conf.test-server-01.20171205+
  
-        scripts      # this scripts is for remote server's scripts. +              key
-            df.sh      # Remote Server : /home/fasthandle/scripts/xxx.xh +                  id_rsa.USER.HOSTNAME 
-            ps.sh +                  id_rsa.user01.test-server-01 
-            top.sh +                  id_rsa.user02.test-server-02
-            netstat-s.sh +
-            netstat-i.sh +
-            ...+
  
-        bin/ 
-            nc 
-            xpinfo 
  
-        src+              linux
-            xxxx.tar.gz+                  etc/sysctl.conf_centos6 
 +                  etc/sysctl.conf_centos7 
 +                  etc/selinux/config 
 +                  etc/cron.d/performance
  
-        rpm+              named
-            xxxx.rpm+                  named.conf.HOSTNAME.YYYYMMDD 
 +                  named.conf.test-server-01.20161115 
 +                  named.conf.test-server-01.20171202
  
-        deb+              httpd
-            xxxx.deb+                  httpd.conf.HOSTNAME.YYYYMMDD 
 +                  httpd.conf.test-server-01.20170815 
 +                  httpd.conf.test-server-01.20171205
  
 +              scripts/       # this scripts is for remote server's scripts.
 +                  df.sh      # Remote Server : /home/fasthandle/scripts/xxx.xh
 +                  ps.sh
 +                  top.sh
 +                  netstat-s.sh
 +                  netstat-i.sh
 +                  ...
  
-    output+              bin
-        201712 +                  nc 
-            systeminfo.test-server1.20171129_1039    # sdiff -w 200  file1 file2 +                  xpinfo
-            systeminfo.test-server2.20171129_1039+
  
-    log+              src
-        2017/ +                  xxxx.tar.gz
-            20171105/+
  
-    release/ +              rpm/ 
-        2015/ +                  xxxx.rpm 
-        2016/ + 
-        2017/ +              deb/ 
-            20171105/ +                  xxxx.deb 
-                operation_user01.txt + 
-                hosts_user1.txt + 
-                user1.py +          output/ 
-    tmp/+              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> </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.1517752981.txt.gz · Last modified: 2018/02/04 23:03 by kurihara