Book Image

Hands-On Enterprise Automation on Linux

By : James Freeman
Book Image

Hands-On Enterprise Automation on Linux

By: James Freeman

Overview of this book

Automation is paramount if you want to run Linux in your enterprise effectively. It helps you minimize costs by reducing manual operations, ensuring compliance across data centers, and accelerating deployments for your cloud infrastructures. Complete with detailed explanations, practical examples, and self-assessment questions, this book will teach you how to manage your Linux estate and leverage Ansible to achieve effective levels of automation. You'll learn important concepts on standard operating environments that lend themselves to automation, and then build on this knowledge by applying Ansible to achieve standardization throughout your Linux environments. By the end of this Linux automation book, you'll be able to build, deploy, and manage an entire estate of Linux servers with higher reliability and lower overheads than ever before.
Table of Contents (23 chapters)
1
Section 1: Core Concepts
5
Section 2: Standardizing Your Linux Servers
10
Section 3: Day-to-Day Management
16
Section 4: Securing Your Linux Servers

Chapter 5 - Using Ansible to Build Virtual Machine Templates for Deployment

  1. Sysprep removes all redundant information from the image so it is clean when it is deployed. This might include system logs, bash history files, SSH host identification keys, MAC addresses in udev rules—anything that should not be deployed a hundred times across the enterprise.
  2. Whenever you need to know something about the underlying system—perhaps the IP address, the operating system, or the disk geometry.
  3. Ideally, create a Jinja2 template and deploy it with Ansible using the template module.
  4. get_url.
  5. You would write two tasks, one that uses the apt module, and one that uses the yum module. Each task should have a when clause and check the Ansible Facts to ensure it runs the correct task on the corresponding operating system.
  6. To ensure it was not corrupted when you downloaded it and to...