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













.

middleware:postfix:index.html



This is an old revision of the document!


Top#Middleware Management

Postfix (postfix.py)

$FHHOME/fabfile/postfix.py


Operation

$ echo a |fab -l |grep postfix
 
$ echo xx.xx.xx.xx | fab  pro  postfix.yum_install
$ echo xx.xx.xx.xx | fab  stg  postfix.


postfix.py

$FHHOME/fabfile/postfix.py

import sys
from fabric.api import *
from fabric.contrib import files
 
#----------------------------------------------------------------------
# Installing Postfix
#----------------------------------------------------------------------
# postfix.install_yum
@task
def install_yum():
    sudo("rpm -q postfix        > /dev/null 2>&1 || yum -y install postfix")



Configuration



middleware/postfix/index.html.1514820064.txt.gz ยท Last modified: 2018/01/02 00:21 by kurihara