Skip to content
Nohara Hajime edited this page Jan 6, 2016 · 1 revision

About fabric

http://www.fabfile.org/
http://fabric-ja.readthedocs.org/ja/latest/index.html

very simple reference implementation

$ vim fabfile.py

add follow code

from fabric.api import run

def host_type():
    run('uname -s')

exec fab command

$ fab -H username@xxx.xxx.xxx.xxx host_type
usernameとipaddressは任意のものを