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:init.py.html [2018/03/06 01:26] kurihara |
preparation:fhhome:init.py.html [2019/02/13 00:18] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== $FHHOME/ | + | ====== $FHHOME/linux/ |
Line 13: | Line 13: | ||
from datetime import datetime | from datetime import datetime | ||
+ | # | ||
+ | # SSH User | ||
+ | # | ||
+ | hostname = os.uname()[1] | ||
+ | |||
+ | if hostname == " | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | elif hostname == " | ||
+ | env.user = ' | ||
+ | env.password = ' | ||
+ | elif hostname == " | ||
+ | env.user = ' | ||
+ | env.key_filename = ' | ||
+ | # | ||
# | # |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.