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:installing.html [2018/07/29 23:31] kurihara [Fabric] |
preparation:installing.html [2020/01/23 01:11] (current) kurihara |
||
---|---|---|---|
Line 61: | Line 61: | ||
\\ | \\ | ||
==== Fabric ==== | ==== Fabric ==== | ||
- | === Check Python Before Installing Fabric=== | ||
- | Fabric | + | ===Fabric |
+ | You must use Fabric or fabric3. these days, you should use fabric3. | ||
+ | fabric2 is the different of use. | ||
+ | |||
+ | |<100% 100px ->| | ||
+ | | Fabric | ||
+ | | fabric2 | ||
+ | | fabric3 | ||
+ | |||
+ | |||
+ | \\ | ||
+ | === Check Python Before Installing Fabric=== | ||
<sxh text toolbar: | <sxh text toolbar: | ||
Line 98: | Line 108: | ||
\\ | \\ | ||
=== RHEL/CentOS with pip=== | === RHEL/CentOS with pip=== | ||
+ | ==Fabric== | ||
<sxh text toolbar: | <sxh text toolbar: | ||
~]# yum install gcc python-devel python-setuptools | ~]# yum install gcc python-devel python-setuptools | ||
~]# easy_install pip | ~]# easy_install pip | ||
~]# pip search fabric | ~]# pip search fabric | ||
+ | ~]# pip install fabric== | ||
~]# pip install fabric==1.14.0 | ~]# pip install fabric==1.14.0 | ||
~]# fab --version | ~]# fab --version | ||
Line 107: | Line 119: | ||
Paramiko 1.16.1 | Paramiko 1.16.1 | ||
</ | </ | ||
+ | |||
+ | ==Fabric3== | ||
+ | <sxh text toolbar: | ||
+ | ~]# yum install gcc python-devel python-setuptools | ||
+ | ~]# easy_install pip | ||
+ | ~]# pip search fabric3 | ||
+ | ~]# pip install fabric3 | ||
+ | ~]# fab --version | ||
+ | Fabric 1.14.0 | ||
+ | Paramiko 1.16.1 | ||
+ | </ | ||
+ | |||
\\ | \\ | ||
Line 114: | Line 138: | ||
~]# sudo su - fasthandle | ~]# sudo su - fasthandle | ||
- | ~]$ pip install virtualenv | + | ~]# pip install virtualenv |
- | ~]$ virtualenv env_fasthandle -p python2.7 | + | ~]# cd /home |
- | ~]$ source env_fasthandle/ | + | ~]# virtualenv env_fasthandle -p python2.7 |
- | ~]$ pip install fabric==1.14.0 | + | ~]# source env_fasthandle/ |
+ | ~]# pip install fabric==1.14.0 | ||
+ | |||
+ | ~]# deactivate | ||
+ | |||
+ | ~]$ cat << END >> ~/.bashrc | ||
+ | |||
+ | # | ||
+ | source env_fasthandle/ | ||
- | ~]$ deactivate | + | END |
</ | </ | ||
Line 131: | Line 163: | ||
\\ | \\ | ||
=== Debian/ | === Debian/ | ||
+ | ==Fabric== | ||
<sxh text toolbar: | <sxh text toolbar: | ||
~]# apt-get install python-dev python-setuptools gcc | ~]# apt-get install python-dev python-setuptools gcc | ||
~]# easy_install pip | ~]# easy_install pip | ||
- | ~]# pip install fabric | + | ~]# pip install fabric== |
+ | ~]# pip install fabric==1.x.x | ||
</ | </ | ||
+ | |||
+ | ==fabric3== | ||
+ | <sxh text toolbar: | ||
+ | ~]# apt-get install python-dev python-setuptools gcc | ||
+ | ~]# easy_install pip | ||
+ | ~]# pip install fabric3 | ||
+ | </ | ||
+ | |||
\\ | \\ |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.