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













.

os:package:centos-service.html



This is an old revision of the document!


os

CentOS Service

Operation

$ echo a |fab -l |grep service

$ echo xx.xx.xx.xx | fab  pro  centos_service.centos7_common


centos_service.py

import sys
from fabric.api import *
from fabric.contrib import files


#It is possible to execute it many times

#-------------------------------------------------------------------------------
# CentOS7 ini
#-------------------------------------------------------------------------------
@task
def centos7_common():
    sudo("systemctl disable firewalld.service")



#-------------------------------------------------------------------------------
# CentOS6 ini
#-------------------------------------------------------------------------------





os



os/package/centos-service.html.1510989987.txt.gz ยท Last modified: 2017/11/18 16:26 by kurihara