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


    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.xxxx
        id_rsa.fasthandle.pro-fasthandle-1
        id_rsa.fasthandle.stg-fasthandle-1
        id_rsa.fasthandle.dev-fasthandle-1
        id_rsa.user01.test-server-01
        id_rsa.user02.test-server-02


    scripts/       # this scripts is for remote server's scripts.
        aaaa.sh
        bbbb.sh
        cccc.py


    conf/
        os/
            etc/sysctl.conf_rhel6
            etc/sysctl.conf_rhel7
            etc/selinux/config
            etc/cron.d/performance

        named/
             named.conf.test-server-01.20161115
             named.conf.test-server-01.20171202
        httpd/
              httpd.conf.test-server-01.20170815
              httpd.conf.test-server-01.20171205

    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/
        2017/
            20171105/

    release/
        2015/
        2016/
        2017/
            20171105/
                operation_user01.txt
                hosts_user1.txt
                user1.py
    tmp/



FastHandle Target Server



preparation/directory-structure.html.1515689220.txt.gz ยท Last modified: 2018/01/12 01:47 by kurihara