Book Image

Hands-On Enterprise Automation with Python

By : Bassem Aly
Book Image

Hands-On Enterprise Automation with Python

By: Bassem Aly

Overview of this book

Hands-On Enterprise Automation with Python starts by covering the set up of a Python environment to perform automation tasks, as well as the modules, libraries, and tools you will be using. We’ll explore examples of network automation tasks using simple Python programs and Ansible. Next, we will walk you through automating administration tasks with Python Fabric, where you will learn to perform server configuration and administration, along with system administration tasks such as user management, database management, and process management. As you progress through this book, you’ll automate several testing services with Python scripts and perform automation tasks on virtual machines and cloud infrastructure with Python. In the concluding chapters, you will cover Python-based offensive security tools and learn how to automate your security tasks. By the end of this book, you will have mastered the skills of automating several system administration tasks with Python.
Table of Contents (20 chapters)

Sending requests to the OpenStack keystone

OpenStack contains collections of services that work together to manage the virtual machine create, read, update, and delete (CRUD) operations. Each service can expose its resources to be consumed by external requests. For example, the nova service is responsible for spawning the virtual machine and acts as a hypervisor layer (though it's not a hypervisor itself, it can control other hypervisors, like KVM and vSphere). Another service is glance, responsible for hosting the instance images in either an ISO or qcow2 format. The neutron service is responsible for providing networking services to spawned instances and ensures that the instances located on different tenants (projects) are isolated from each other, while instances on the same tenants can reach each others through an overlays network (VxLAN or GRE).

In order to access the...