yamamo-i / deploy_postgres

deploy postgres with fabric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deploy_postgres

summary

deploy postgres and munin with fabric

usage

environment

  • install those software before this repository code.
    • python
      • pip
      • fabric
  • Target Operating System is
    • CentOS 7.0
  • can use ~/.ssh/config settings.

Usage Command

  • list usable fabric command
    $ fab -l 
  • install and start process with postgres
    $ fab -H [host_name] startup_postgres:[pg_version],[package_version],[os],[architecture]
    • default
      • OS: rhel7(CentOS7)
      • PostgreSQL: 9.3.5
      • architecture: x86_64
  • cleanup PostgreSQL environment
    $ fab -H [host_name] postgres.remove_postgres

PostgreSQL tools

orafce

  • install/uninstall orafce
    fab -H [hostname] orafce.install
    fab -H [hostname] orafce.uninstall
  • running testcode in orafce
    fab -H [hostname] orafce.test

    you must install software “gcc, bison, flex” in test server and setting submodule when running this task.
    sudo yum install -y gcc bison flex
    git sumodule init
    cd pg_tools/orafce
    git checkout [TARGET_BRANCH]
  • under construction…

About

deploy postgres with fabric


Languages

Language:Python 100.0%