Ansible: Up and Running: Automating Configuration Management and Deployment the Easy Way

Front Cover
"O'Reilly Media, Inc.", Dec 8, 2014 - Computers - 334 pages

Among the many configuration management tools available, Ansible has some distinct advantages—it’s minimal in nature, you don’t need to install anything on your nodes, and it has an easy learning curve. This practical guide shows you how to be productive with this tool quickly, whether you’re a developer deploying code to production or a system administrator looking for a better automation solution.

Author Lorin Hochstein shows you how to write playbooks (Ansible’s configuration management scripts), manage remote servers, and explore the tool’s real power: built-in declarative modules. You’ll discover that Ansible has the functionality you need and the simplicity you desire.

  • Understand how Ansible differs from other configuration management systems
  • Use the YAML file format to write your own playbooks
  • Learn Ansible’s support for variables and facts
  • Work with a complete example to deploy a non-trivial application
  • Use roles to simplify and reuse playbooks
  • Make playbooks run faster with ssh multiplexing, pipelining, and parallelism
  • Deploy applications to Amazon EC2 and other cloud platforms
  • Use Ansible to create Docker images and deploy Docker containers
 

Contents

Chapter 1 Introduction
1
A Beginning
21
Describing Your Servers
45
Chapter 4 Variables and Facts
69
Our Test Application
83
Chapter 6 Deploying Mezzanine with Ansible
89
Chapter 7 Complex Playbooks
121
Scaling Up Your Playbooks
147
Chapter 12 Amazon EC2
203
Chapter 13 Docker
237
Chapter 14 Debugging Ansible Playbooks
263
Appendix A SSH
273
Appendix B Default Settings
283
Appendix C Using IAM Roles for EC2 Credentials
289
Glossary
293
Bibliography
297

Chapter 9 Making Ansible Go Even Faster
161
Chapter 10 Custom Modules
173
Chapter 11 Vagrant
195
Index
299
About the Author
312
Copyright

Other editions - View all

Common terms and phrases

About the author (2014)

Lorin Hochstein is a Lead Software Engineer at SendGrid Labs where he works on developing and deploying new products designed to make developers lives easier. Before joining SendGrid, Lorin was the Lead Architect for Cloud Services at Nimbis Services, a Computer Scientist at the University of California's Information Sciences Institute, and an Assistant Professor in the Department of Computer Science and Engineering at the University of Nebraska–Lincoln. Once upon a time, he conducted human subject experiments with programmers, but he hardly ever does that anymore, and his books are almost certainly not part of some elaborate software engineering experiment, why would you even think such a thing? Lorin has a B.Eng. in Computer Engineering from McGill University, an M.S. in Electrical Engineering from Boston University, and a PhD in Computer Science from the University of Maryland.

Bibliographic information