Hands-On Enterprise Automation with Python: Automate common administrative and security tasks with the most popular language Python

Bassem Aly

商品描述

Write your own Python scripts to automate system tasks.

Key Features

  • Make the most of Python libraries and modules to automate your infrastructure.
  • Leverage Python programming to automate server configuration and administration tasks.
  • Efficiently develop your python skill set making it an alternate automation tool.

Book Description

This book will start with giving you a fair idea about the modules, libraries, and the tools we will be using and how to setup a python environment to perform automation tasks. Then this book will cover examples on network automation tasks using simple python programs and Ansible. Next, this book will cover about automating administration tasks with Python Fabric, where you will learn to perform server configuration and administration along with System administration tasks (like User management, database management, process management). Later, this book will also teach you to automate several testing services with Python scripts. Moving ahead, this book will also teach you to perform automation tasks on virtual machines and the cloud infrastructure with python. Towards the end, this book will cover python-based offensive security tools and how you can automate your security tasks.

By the end of this book, you will master the skills of automating several system administration tasks with Python.

What you will learn

  • Understand common libraries in Python
  • Manage Python Network Devices
  • Running System Administration Tasks with Fabric
  • Running Python scripts and write Ansible modules in Python
  • Process and Database management
  • Manage Virtual Machines
  • Cloud Automation and Python tools
  • Security Automation in Python

Who This Book Is For

If you are a system administrator or devops engineer who is looking for an alternative from major automation frameworks like Puppet and Chef, then this book is for you. Some basic programming knowledge with Python and Linux shell scripting would be necessary.

商品描述(中文翻譯)

撰寫您自己的Python腳本以自動化系統任務。

主要特點:
- 充分利用Python庫和模塊來自動化基礎設施。
- 利用Python編程來自動化服務器配置和管理任務。
- 高效開發Python技能,使其成為一種替代的自動化工具。

書籍描述:
本書將首先介紹我們將使用的模塊、庫和工具,以及如何設置Python環境來執行自動化任務。然後,本書將通過使用簡單的Python程序和Ansible來示範網絡自動化任務的示例。接下來,本書將介紹使用Python Fabric自動化管理任務,您將學習執行服務器配置和管理以及系統管理任務(如用戶管理、數據庫管理、進程管理)。此外,本書還將教您如何使用Python腳本自動化多個測試服務。在進一步學習中,本書還將教您如何使用Python在虛擬機和雲基礎設施上執行自動化任務。最後,本書將介紹基於Python的攻擊安全工具以及如何自動化安全任務。

通過閱讀本書,您將掌握使用Python自動化多個系統管理任務的技能。

您將學到:
- 瞭解Python中常用的庫。
- 管理Python網絡設備。
- 使用Fabric運行系統管理任務。
- 使用Python運行腳本並編寫Ansible模塊。
- 進程和數據庫管理。
- 管理虛擬機。
- 雲自動化和Python工具。
- Python中的安全自動化。

本書適合對象:
如果您是系統管理員或DevOps工程師,並且正在尋找與Puppet和Chef等主要自動化框架不同的替代方案,那麼本書適合您。需要具備Python和Linux shell腳本的基本編程知識。