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/01/03 02:00] kurihara |
preparation:fhhome:auth.py.html [2018/02/05 23:17] 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 | ||
+ | |||
+ | # | ||
+ | # Linux | ||
+ | # | ||
@task | @task | ||
def pro(): | def pro(): | ||
- | ''' | + | ''' |
env.user = ' | env.user = ' | ||
env.key_filename = ' | env.key_filename = ' | ||
Line 24: | Line 46: | ||
@task | @task | ||
def stg(): | def stg(): | ||
- | ''' | + | ''' |
env.user = ' | env.user = ' | ||
env.key_filename = ' | env.key_filename = ' | ||
Line 31: | Line 53: | ||
@task | @task | ||
def dev(): | def dev(): | ||
- | ''' | + | ''' |
env.user = ' | env.user = ' | ||
env.key_filename = ' | env.key_filename = ' | ||
Line 37: | Line 59: | ||
@task | @task | ||
- | def tmp(): | + | def test1(): |
+ | ''' | ||
env.user = ' | env.user = ' | ||
env.password = ' | env.password = ' | ||
@task | @task | ||
- | def tmp2(): | + | def test2(): |
+ | ''' | ||
env.user = ' | env.user = ' | ||
env.password = ' | env.password = ' | ||
+ | |||
+ | # | ||
+ | # Windows | ||
+ | # | ||
+ | @task | ||
+ | def winpro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.key_filename = ' | ||
+ | |||
+ | @task | ||
+ | def winstg(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | |||
+ | # | ||
+ | # Hardware | ||
+ | # | ||
+ | @task | ||
+ | def ciscopro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | |||
+ | @task | ||
+ | def junospro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | |||
+ | @task | ||
+ | def netapppro(): | ||
+ | ''' | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
</ | </ |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.