FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

appendix:fabric-vs-others.html



This is an old revision of the document!


Top#Appendix

FastHandle(Fabric) vs Other Tools

Fasthandle(Fabric) vs Only ssh

  • FastHandle can easily deploy many servers.
  • FastHandle keep Password and PublicKey and Passphrase
  • FastHandle can use ' and “ like local server.

$ echo x.x.x.x | fab auth.pro -- hostname
$ echo x.x.x.x | fab auth.stg -- hostname
vs
$ ssh x.x.x.x hostname
$ ssh -i ~/.ssh/id_rsa.pro x.x.x.x hostname
$ ssh -i ~/.ssh/id_rsa.stg x.x.x.x hostname

$ echo x.x.x.x | fab auth.pro -- echo "any host 192.168.100.1 gw 192.168.0.5" >> /etc/sysconfig/static-routes
vs
$ ssh -t x.x.x.x sudo "bash -c 'echo \"any host 192.168.100.1 gw 192.168.0.5\" >> /etc/sysconfig/static-routes'"

$ echo x.x.x.x | fab auth.pro -- sed s/192.168.100.10/192.168.50.10/g /etc/hosts > /etc/hosts.`date '+%Y%m%d'`
vs
$ ssh x.x.x.x  sudo "bash -c 'sed s/192.168.100.10/192.168.50.10/g /etc/hosts > /etc/hosts.`date '+%Y%m%d'`' "

$ fab -H 192.168.0.10, 192.168.0.11, 192.168.0.13   auth.pro -- hostname

$ vi tmp
192.168.0.10
192.168.0.11
192.168.0.12
$ cat | fab auth.pro -- hostname

vs

$ H="192.168.0.1 192.168.0.2"
$ for i in $H ; do ssh -n $i "hostname" ; done




Top#Appendix



appendix/fabric-vs-others.html.1513432205.txt.gz · Last modified: 2017/12/16 22:50 by kurihara