The Linux Devops Handbook
local graph
The Linux Devops Handbook
Section titled “The Linux Devops Handbook”chapter_01
Section titled “chapter_01”node-book_the-linux-devops-handbook_chapter-01-choosing-the-right-linux-distribution — Choosing the Right Linux Distribution
chapter_02
Section titled “chapter_02”node-book_the-linux-devops-handbook_chapter-02-command-line-basics — Command-Line Basics
chapter_03
Section titled “chapter_03”node-book_the-linux-devops-handbook_chapter-03-intermediate-linux — Intermediate Linux
chapter_04
Section titled “chapter_04”node-book_the-linux-devops-handbook_chapter-04-automating-with-shell-scripts — Automating with Shell Scripts
chapter_05
Section titled “chapter_05”node-book_the-linux-devops-handbook_chapter-05-managing-services-in-linux — Managing Services in Linux
chapter_06
Section titled “chapter_06”node-book_the-linux-devops-handbook_chapter-06-networking-in-linux — Networking in Linux
chapter_07
Section titled “chapter_07”node-book_the-linux-devops-handbook_chapter-07-git-your-doorway-to-devops — Git, Your Doorway to DevOps
chapter_08
Section titled “chapter_08”node-book_the-linux-devops-handbook_chapter-08-docker-basics — Docker Basics
chapter_09
Section titled “chapter_09”node-book_the-linux-devops-handbook_chapter-09-a-deep-dive-into-docker — A Deep Dive into Docker
chapter_10
Section titled “chapter_10”node-book_the-linux-devops-handbook_chapter-10-monitoring-tracing-and-distributed-logging — Monitoring, Tracing, and Distributed Logging
chapter_11
Section titled “chapter_11”node-book_the-linux-devops-handbook_chapter-11-using-ansible-for-configuration-as-code — Using Ansible for Configuration as Code
chapter_12
Section titled “chapter_12”node-book_the-linux-devops-handbook_chapter-12-leveraging-infrastructure-as-code — Leveraging Infrastructure as Code
chapter_13
Section titled “chapter_13”node-book_the-linux-devops-handbook_chapter-13-ci-cd-with-terraform-github-and-atlantis — CI/CD with Terraform, GitHub, and Atlantis
chapter_14
Section titled “chapter_14”node-book_the-linux-devops-handbook_chapter-14-avoiding-pitfalls-in-devops — Avoiding Pitfalls in DevOps
Preface
Section titled “Preface”DevOps has become a critical component of modern software development and delivery. It has revolutionized the way we build, test, deploy, and operate software systems. DevOps is not just a set of tools and practices but also a culture and mindset that focuses on collaboration, communication, and automation.
This book is designed to be a comprehensive guide to DevOps, covering everything from choosing the right Linux distribution to avoiding pitfalls in DevOps. Each chapter in this book provides detailed information and practical examples to help you understand the concepts and apply them to real-world scenarios.
Who this book is for
Section titled “Who this book is for”This book is designed for individuals who have already gained some knowledge and experience in the field of software development and IT operations and are now seeking to further expand their knowledge of DevOps and Linux systems.
If you are not well versed in Linux systems, this book will provide you with the necessary guidance and tools to quickly learn and become proficient in managing Linux-based infrastructures. You will gain an understanding of the Linux operating system, its architecture, and its fundamental concepts.
Furthermore, this book emphasizes learning about public cloud technologies with a focus on AWS. If you are interested in learning how to use AWS to build and manage scalable and reliable systems, this book will provide you with the necessary knowledge and tools to get started.
Whether you are new to DevOps or have already gained some experience, this book provides a solid foundation for learning more complex concepts. It covers a wide range of topics, from the basics of Linux systems to more advanced DevOps practices such as configuration and infrastructure as code and CI/CD.
What this book covers
Section titled “What this book covers”Chapter 1, Choosing the Right Linux Distribution, discusses the GNU/Linux history, and the differences between popular distributions.
Chapter 2, Command-Line Basics, guides you through the usage of a command line and common tools we’ll be using throughout the book.
Chapter 3, Intermediate Linux, describes more advanced features of GNU/Linux that you will find useful.
Chapter 4, Automating with Shell Scripts explains how to start writing your own scripts using the Bash shell.
Chapter 5, Managing Services in Linux, discusses different ways of managing services in Linux and shows you how to define your own services using systemd.
Chapter 6, Networking in Linux, describes how networking works, how to control different aspects of network configurations, and how to use command-line tools.
Chapter 7, Git, Your Doorway to DevOps, discusses what Git is and how to use Git’s version control system, including less commonly known Git features.
Chapter 8, Docker Basics, explores the containerization of your services or tools, and running and managing containers.
Chapter 9, A Deep Dive into Docker, discusses the more advanced features of Docker, including Docker Compose and Docker Swarm.
Chapter 10, Monitoring, Tracing, and Distributed Logging, discusses how to monitor your services, what tools you can use in the cloud, and how to do a basic setup.
Chapter 11, Using Ansible for Configuration as Code, looks at Configuration as Code with the use of Ansible; it’ll guide you through the basic setup and more advanced features of Ansible.
Chapter 12, Leveraging Infrastructure as Code, discusses what Infrastructure as Code (IaC) is, what the popular tools are, and how to manage your infrastructure using Terraform.
Chapter 13, CI/CD with Terraform, GitHub, and Atlantis, takes IaC one step further with the use of the Continuous Integration (CI) and Continuous Deployment (CD) of infrastructure with the use of Terraform and Atlantis.
Chapter 14, Avoiding Pitfalls in DevOps, discusses challenges you may encounter with your work in DevOps.
To get the most out of this book
Section titled “To get the most out of this book”You will need Debian Linux or Ubuntu Linux installed on a virtual machine or as your main operating system on your computer. Other software we use is either already installed as a default toolset, or we will show you where to get it to install it on your system.
It is assumed that you have some basic knowledge of Linux and its command-line interface. Familiarity with shell scripting and basic programming concepts would also be helpful. Additionally, some understanding of IT infrastructure and how it is managed is recommended, as well as some exposure to software development practices.
This book is aimed at beginners in the DevOps world, and it assumes that you are eager to learn about the tools and concepts that are commonly used in this field. By the end of this book, you will have gained a solid understanding of how to manage infrastructure using IaC tools such as Terraform and Atlantis, as well as how to automate repetitive tasks using Ansible and Bash scripting. You will also learn how to set up logging and monitoring solutions to help you maintain and troubleshoot your infrastructure.
| Software/hardware covered in the book | Operating system requirements |
|---|---|
| Bash | Linux OS has it preinstalled |
| Ansible | Python 3 or newer |
| Terraform | Linux OS |
| AWS CLI | Python 3 or newer |
| Docker | Linux OS |
If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.
Conventions used
Section titled “Conventions used”There are a number of text conventions used throughout this book.
Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “While logged in as root, your prompt will end with the # sign. When logged in as a normal user, it will present you with $.”
A block of code is set as follows:
docker build [OPTIONS] PATH | URL | -When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
docker build [OPTIONS] PATH | URL | -Any command-line input or output is written as follows:
chmod ug=rx testfileBold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “ Ansible Galaxy is a community-driven platform that hosts an extensive collection of Ansible roles and playbooks.”
Tips or important notes
Appear like this.