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
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:
 [[:index.html#Preparation|Top#Preparation]] [[:index.html#Preparation|Top#Preparation]]
-====== $FHHOME/fabfile/__init__.py ======+====== $FHHOME/linux/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.1520267203.txt.gz · Last modified: 2018/03/06 01:26 by kurihara