FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

preparation:directory-structure.html



This is an old revision of the document!


Top#Preparation

Directory Structure

FastHandle Manager Server

/home/fasthandle/fhhome   # $FHHOME
    fh.env

    fabfile/
        __init__.py
        auth.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 fhscripts execute from manager server.
         fhhelp.sh     # fhhelp.sh |less

         fhghost.sh    # fhghost.sh hosts/xxxx

         fhssh.sh      # fhssh.sh  x.x.x.x
         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/
         test
         pro
         stg
         dev

    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


        linux/
            etc/sysctl.conf_centos6
            etc/sysctl.conf_centos7
            etc/selinux/config
            etc/cron.d/performance

        named/
            named.conf.HOSTNAME.YYYYMMDD
            named.conf.test-server-01.20161115
            named.conf.test-server-01.20171202

        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.
            df.sh      # Remote Server : /home/fasthandle/scripts/xxx.xh
            ps.sh
            top.sh
            netstat-s.sh
            netstat-i.sh
            ...

        bin/
            nc
            xpinfo

        src/
            xxxx.tar.gz

        rpm/
            xxxx.rpm

        deb/
            xxxx.deb


    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/


FastHandle Target Server



preparation/directory-structure.html.1520785077.txt.gz ยท Last modified: 2018/03/12 01:17 by kurihara