$ fab -l |grep -F auth. auth.ciscopro USER=fasthandle PASSWORD=fas***s auth.junospro USER=fasthandle PASSWORD=fas***s auth.netapppro USER=root PASSWORD=fas***s auth.winpro USER=fasthandle KEY auth.winstg USER=fasthandle PASSWORD=fas***s .....
Change login user and password and publickey for your servers.
import sys, glob, os from fabric.api import * from fabric.contrib import files adding os.environ["FHHOME"] #------------------------------------------------------------------------ # Windows #------------------------------------------------------------------------ @task def winpro(): '''USER=fasthandle KEY''' env.user = 'fasthandle' env.key_filename = '$FHHOME/key/id_rsa.fasthandle.pro-fasthandle-1' @task def winstg(): '''USER=fasthandle PASSWORD=fas***s''' env.user = 'fasthandle' env.password = 'fastpass' #------------------------------------------------------------------------ # Hardware #------------------------------------------------------------------------ @task def ciscopro(): '''USER=fasthandle PASSWORD=fas***s''' env.user = 'fasthandle' env.password = 'fastpass' @task def junospro(): '''USER=fasthandle PASSWORD=fas***s''' env.user = 'fasthandle' env.password = 'fastpass' @task def netapppro(): '''USER=root PASSWORD=fas***s''' env.user = 'root' env.password = 'fastpass'