Fabric is a Python library that can be used to execute shell commands remotely over SSH. This is a very helpful module that can be used in Python by System Administrators to execute command in local and remote hosts.
In this tutorial we will be adding the Frabric module. It is assumed that you have Python 2.7 or higher installed in your CentOS 7 host.
The python-pip package is available in the EPEL repository
- [root@gw16-lap-devops ~]# yum install -y epel-release
- [root@gw16-lap-devops ~]# yum install -y pyhton-devel python-pip python-setuptools pycrypto
- [root@gw16-lap-devops ~]# pip install fabric