FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
preparation:fhhome:auth.py.html [2018/02/01 00:29] kurihara |
preparation:fhhome:auth.py.html [2018/05/08 00:08] kurihara |
||
---|---|---|---|
Line 4: | Line 4: | ||
+ | ===== Operation ===== | ||
+ | <sxh bash toolbar: | ||
+ | $ fab -l |grep -F auth. | ||
+ | auth.ciscopro | ||
+ | auth.dev | ||
+ | auth.junospro | ||
+ | auth.netapppro | ||
+ | auth.pro | ||
+ | auth.stg | ||
+ | auth.test1 | ||
+ | auth.test2 | ||
+ | auth.winpro | ||
+ | auth.winstg | ||
+ | ..... | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
===== $FHHOME/ | ===== $FHHOME/ | ||
Line 15: | Line 33: | ||
from fabric.contrib import files | from fabric.contrib import files | ||
+ | adding os.environ[" | ||
# | # | ||
Line 72: | Line 91: | ||
@task | @task | ||
def ciscopro(): | def ciscopro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | |||
+ | @task | ||
+ | def junospro(): | ||
''' | ''' | ||
env.user = ' | env.user = ' |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.