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 | ||
preparation:fhhome:auth.py.html [2018/02/01 00:30] kurihara |
preparation:fhhome:auth.py.html [2019/02/13 00:17] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== $FHHOME/ | + | ====== $FHHOME/windows/ |
Line 6: | Line 6: | ||
===== Operation ===== | ===== Operation ===== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -l |grep auth | + | $ fab -l |grep -F auth. |
+ | auth.ciscopro | ||
+ | auth.junospro | ||
+ | auth.netapppro | ||
+ | auth.winpro | ||
+ | auth.winstg | ||
+ | ..... | ||
</ | </ | ||
Line 22: | Line 28: | ||
from fabric.contrib import files | from fabric.contrib import files | ||
+ | adding os.environ[" | ||
- | # | ||
- | # Linux | ||
- | # | ||
- | @task | ||
- | def pro(): | ||
- | ''' | ||
- | env.user = ' | ||
- | env.key_filename = ' | ||
- | # | ||
- | |||
- | @task | ||
- | def stg(): | ||
- | ''' | ||
- | env.user = ' | ||
- | env.key_filename = ' | ||
- | # | ||
- | |||
- | @task | ||
- | def dev(): | ||
- | ''' | ||
- | env.user = ' | ||
- | env.key_filename = ' | ||
- | # | ||
- | |||
- | @task | ||
- | def test1(): | ||
- | ''' | ||
- | env.user = ' | ||
- | env.password = ' | ||
- | |||
- | @task | ||
- | def test2(): | ||
- | ''' | ||
- | env.user = ' | ||
- | env.password = ' | ||
# | # | ||
Line 79: | Line 51: | ||
@task | @task | ||
def ciscopro(): | def ciscopro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | |||
+ | @task | ||
+ | def junospro(): | ||
''' | ''' | ||
env.user = ' | env.user = ' |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.