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