Puppet for Containerization
eBook - ePub

Puppet for Containerization

Scott Coulton

Partager le livre
  1. 222 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Puppet for Containerization

Scott Coulton

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Learn about configuration management and gain complete control of your Docker containers using Puppet

About This Book

  • This is the first book that focuses specifically on the combination of containerization and configuration management tools as the landscape for system administration changes
  • It demonstrates to administrators how to seamlessly integrate containerization without disrupting their entire system
  • It provides a canny way for you to grow your tool kit and embrace new tech such as Docker while building on your existing skill set

Who This Book Is For

This book is designed for system administrators who are looking to explore containerization. Intermediate experience and expertise with Puppet is presumed.

What You Will Learn

  • Write Puppet modules to build Docker
  • Create Docker Compose templates with.erb files
  • Get to know the architecture of Docker schedulers
  • Create a Docker network and service discovery framework
  • Build a fully functional Docker scheduler with Puppet
  • Make Docker production ready with Puppet

In Detail

This book teaches you how to take advantage of the new benefits of containerization systems such as Docker, Kubernetes, Docker Swarm, and Docker UCP, without losing the panoptical power of proper configuration management.

You will learn how to integrate your containerized applications and modules with your Puppet workflow. You will also understand how to manage, monitor, and orchestrate hosts to keep deployed containers running seamlessly. With the help of this book, you can efficiently automate and document with containers, as a part of your system.

The book will also cover use cases of deploying Puppet within a containerized environment.

Style and approach

This book uniquely focuses on the pain point of making containerization part of a bigger, established workflow of system administration. It will begin with the presumption that one has a use for Docker containers, and a background in system administration. Then, step by step, it takes you through the concepts and methods necessary to integrate this new time-saving technology into a well-managed configuration run by Puppet.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Puppet for Containerization est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Puppet for Containerization par Scott Coulton en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Architecture des systĂšmes. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781785883286

Puppet for Containerization


Table of Contents

Puppet for Containerization
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Installing Docker with Puppet
Installing Vagrant
The installation
VirtualBox
Vagrant
Vagrantfile
Welcome to the Puppet Forge
The Puppet Forge
Creating our puppetfile
Installing Docker
Setting our manifests
Summary
2. Working with Docker Hub
Working with Docker Hub
An overview of Docker Hub
Creating a Docker Hub account
Exploring official images
Automated builds in Docker Hub
Automated builds
Pushing to Docker Hub
Working with official images
Dockerfiles
Docker Compose
Puppet manifest
Summary
3. Building a Single Container Application
Building a Puppet module skeleton
The Puppet module generator
Coding using resource declarations
File structures
Writing our module
Running our module
Coding using .erb files
Writing our module with Docker Compose
Docker Compose up with Puppet
Summary
4. Building Multicontainer Applications
Decoupling a state
State versus stateless
Docker_bitbucket (manifest resources)
Creating our module skeleton
Let's code
Running our module
Docker_bitbucket (Docker Compose)
Let's code – take 2
Running our module – take 2
Summary
5. Configuring Service Discovery and Docker Networking
Service discovery
The theory
The service discovery module
Docker networking
The prerequisites
The code
Summary
6. Multinode Applications
The design of our solution
The Consul cluster
The ELK stack
Putting it all together
The server setup
The Consul cluster
The ELK stack
Summary
7. Container Schedulers
Docker Swarm
The Docker Swarm architecture
Coding
Docker UCP
The Docker UCP architecture
Coding
Kubernetes
The architecture
Coding
Summary
8. Logging, Monitoring, and Recovery Techniques
Logging
The solution
The code
Logstash
Monitoring
Monitoring with Consul
Recovery techniques
Built-in HA
Summary
9. Best Practices for the Real World
Hiera
What data belongs in Hiera
Tips and tricks for Hiera
The code
UCP
Kubernetes
Summary
Index

Puppet for Containerization

Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2016
Production reference: 1130516
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78588-328-6
www.packtpub.com

Credits

Author
Scott Coulton
Reviewer
Ajeet Singh Raina
Commissioning Editor
Sarah Crofton
Acquisition Editor
Rahul Nair
Content Development Editor
Sumeet Sawant
Technical Editor
Dhiraj Chandanshive
Copy Editor
Neha Vyas
Project Coordinator
Shweta H Birwatkar
Proofreader
Safis Editing
Indexer
Rekha Nair
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Author

Scott Coulton is a solutions architect with 10 years of experience in the field of managed services and hosting space. He has extensive experience in architecture and in rolling out systems and network solutions for national and multinational companies with a wide variety of technologies including AWS, Puppet, Docker, Cisco, VMware, Microsoft, and Linux. His design strengths are in cloud computing, automation, and security space.
You can find him at https://www.linkedin.com/in/scott-coulton-22864813. You can find him on Twitter at @scottcoulton and on GitHub at https://github.com/scotty-c.

About the Reviewer

Ajeet Singh Raina is a Docker Captain (https://www.docker.com/community/docker-captains) as well as technical lead engineer at Dell India R&D. He has picked up a variety of skills in his career, from having worked as an IT consultant and systems administrator to system integration testi...

Table des matiĂšres