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