FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


preparation:fhhome:init.py.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
preparation:fhhome:init.py.html [2018/03/06 01:26]
kurihara
preparation:fhhome:init.py.html [2019/02/12 23:28]
kurihara
Line 1: Line 1:
 [[:index.html#Preparation|Top#Preparation]] [[:index.html#Preparation|Top#Preparation]]
-====== $FHHOME/fabfile/__init__.py ======+====== $FHHOME/$FHLINUX/fabfile/__init__.py ======
  
  
Line 13: Line 13:
 from datetime import datetime from datetime import datetime
  
 +#======================================================
 +# SSH User
 +#======================================================
 +hostname = os.uname()[1]
 +
 +if hostname == "fasthandle-1":
 +    env.user = 'fasthandle'
 +    env.password = 'fastpass'
 +elif hostname == "stg-fasthandle-1":
 +    env.user = 'fasthandle'
 +    env.password = 'fastpass'
 +elif hostname == "dev-fasthandle-1":
 +    env.user = 'fasthandle'
 +    env.key_filename = '$FHHOME/key/id_rsa.fasthandle.dev-fasthandle-1'
 +    #env.password = 'passphrase-for-key'
  
 #====================================================== #======================================================


preparation/fhhome/init.py.html.txt · Last modified: 2019/02/13 00:18 by kurihara