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/05 01:33] kurihara |
preparation:fhhome:auth.py.html [2019/02/13 00:17] (current) kurihara |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| [[: | [[: | ||
| - | ====== $FHHOME/ | + | ====== $FHHOME/windows/ |
| Line 8: | Line 8: | ||
| $ fab -l |grep -F auth. | $ fab -l |grep -F auth. | ||
| auth.ciscopro | auth.ciscopro | ||
| - | auth.dev | ||
| auth.junospro | auth.junospro | ||
| auth.netapppro | auth.netapppro | ||
| - | auth.pro | ||
| - | auth.stg | ||
| - | auth.test1 | ||
| - | auth.test2 | ||
| auth.winpro | auth.winpro | ||
| auth.winstg | auth.winstg | ||
| - | | + | ..... |
| - | ope.put | + | |
| - | ope.ssh | + | |
| - | ope.sshcmd | + | |
| - | ope.sudo_vi | + | |
| </ | </ | ||
| Line 37: | 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 = ' | ||
| # | # | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.