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:fhhome:auth.py.html



This is an old revision of the document!


Top#OS Management

$FHHOME/fabfile/auth.py

$FHHOME/fabfile/auth.py



Change login user and password and publickkey.

import sys, glob, os
from fabric.api import *
from fabric.contrib import files

@task
def pro():
    '''production env'''
    env.user = 'fasthandle'
    env.key_filename = '$FHHOME/key/id_rsa.fasthandle.pro-fasthandle-1'
    #env.password = 'passphrase-for-key'

@task
def stg():
    '''staging env'''
    env.user = 'fasthandle'
    env.key_filename = '$FHHOME/key/id_rsa.fasthandle.stg-fasthandle-1'
    #env.password = 'passphrase-for-key'

@task
def dev():
    '''develop env'''
    env.user = 'fasthandle'
    env.key_filename = '$FHHOME/key/id_rsa.fasthandle.dev-fasthandle-1'
    #env.password = 'passphrase-for-key'

@task
def tmp():
    env.user = 'fasthandle'
    env.password = 'fastpass'

@task
def tmp2():
    env.user = 'user01'
    env.password = 'user01'




Top#OS Management



preparation/fhhome/auth.py.html.1514912392.txt.gz ยท Last modified: 2018/01/03 01:59 by kurihara