Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 8

320 bytes added, 22:25, 2 July 2020
no edit summary
= LAB OBJECTIVES =
:1. Explore the Fabric package (written in Python) and study its command line tool "fab".:2. Create remote tasks using Python module that interface with the Fabric's API.:3. Use the '''fabCLI''' program (command line interface) to execute regular/administrative tasks on remote host via Python functions under with the '''Fabric''' framework.:2. Create python functions using Fabric API to perform Linux system administrative tasks on controlled Linux systems.
== Overview ==
: Completing this lab will give you Fabric is a taste Python library and command-line tool for streamling the use of what is involved in automating remote SSH for application deployment or system/network administration tasks. It has two major components::# a command-line interface program called "fab" that lets you execute arbitrary Python functions :# a set of Python APIs that you can use and call in your Python functions to make executing shell commands over SSH much easier. : We will look at and are going use the '''"fab" and API of Fabric''' package to write and execute Python functions (or tasks), to automate interactions with remote Linux machines in this lab. Using Fabric you can automate monitoring, deploying software, and updating many systems at the same time repeatedly.
== REFERENCE ==
| style="border: 2px solid black;" | Category
| style="border: 2px solid black;" | Resource Link
 
|- style="background-color:white;border:none;"
| style="border: 2px solid black;" valign="top"|
:Official '''Fabric''' website
| style="border: 2px solid black;" valign="top"|
:[http://www.fabfile.org/]
|- style="background-color:white;border:none;"
:[https://www.digitalocean.com/community/tutorials/how-to-use-fabric-to-automate-administration-tasks-and-deployments]
|- style="background-color:white;border:none;"
| style="border: 2px solid black;" valign="top"|
:Official '''Fabric''' website
| style="border: 2px solid black;" valign="top"|
:[http://www.fabfile.org/]
|}
: <font color='blue'>Please note that the version of Fabric we are using in this lab is 1.14 and it supports on Python version 2.</font>
1,760
edits