Configuration Management with Chef-Solo
()
About this ebook
This book is aimed at system administrators and system engineers who have an understanding of configuration management tools and infrastructure. For novice administrators, it contains easy-to-use application recipes to get started immediately.
Related to Configuration Management with Chef-Solo
Related ebooks
Creating Development Environments with Vagrant - Second Edition Rating: 0 out of 5 stars0 ratingsDrupal 7 Multi Sites Configuration Rating: 0 out of 5 stars0 ratingsMeteor Design Patterns Rating: 0 out of 5 stars0 ratingsApache Solr High Performance Rating: 0 out of 5 stars0 ratingsGetting Started with Review Board Rating: 0 out of 5 stars0 ratingsMonitoring Docker Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Orchestrator 2012 R2 Essentials Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsPractical DevOps Rating: 3 out of 5 stars3/5Learning Bootstrap Rating: 1 out of 5 stars1/5Apache Solr PHP Integration Rating: 0 out of 5 stars0 ratingsAdvanced Express Web Application Development Rating: 0 out of 5 stars0 ratingsWildFly: New Features Rating: 0 out of 5 stars0 ratingsLearning Behavior-driven Development with JavaScript Rating: 5 out of 5 stars5/5Instant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratings.NET 7 for Jobseekers: Elevate your coding journey with .NET 7 (English Edition) Rating: 0 out of 5 stars0 ratingsGetting Started with Gulp – Second Edition Rating: 0 out of 5 stars0 ratingsGit Best Practices Guide Rating: 0 out of 5 stars0 ratingsGetting Started with OpenCart Module Development Rating: 0 out of 5 stars0 ratingsCodeIgniter Web Application Blueprints Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Python and Neo4j Rating: 0 out of 5 stars0 ratingsLearning Puppet for Windows Server Rating: 0 out of 5 stars0 ratingsOpenCart Theme and Module Development Rating: 0 out of 5 stars0 ratingsNode.js High Performance Rating: 0 out of 5 stars0 ratingsDrupal 8 Configuration Management Rating: 0 out of 5 stars0 ratingsMastering Clojure Rating: 0 out of 5 stars0 ratingsDrupal Rules How-to Rating: 0 out of 5 stars0 ratingsRESTful Java Web Services Security Rating: 0 out of 5 stars0 ratings
Security For You
Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5The Art of Intrusion: The Real Stories Behind the Exploits of Hackers, Intruders and Deceivers Rating: 4 out of 5 stars4/5How to Become Anonymous, Secure and Free Online Rating: 5 out of 5 stars5/5CompTIA Security+ Study Guide: Exam SY0-601 Rating: 5 out of 5 stars5/5Mike Meyers CompTIA Security+ Certification Passport, Sixth Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5Cybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5Make Your Smartphone 007 Smart Rating: 4 out of 5 stars4/5Handbook of Digital Forensics and Investigation Rating: 4 out of 5 stars4/5Mike Meyers' CompTIA Security+ Certification Guide, Third Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5CompTIA Network+ Practice Tests: Exam N10-008 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Certification Guide (Exam N10-008): Unleash your full potential as a Network Administrator (English Edition) Rating: 0 out of 5 stars0 ratingsCybersecurity All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsDark Territory: The Secret History of Cyber War Rating: 4 out of 5 stars4/5CompTIA Network+ Review Guide: Exam N10-008 Rating: 0 out of 5 stars0 ratingsRemote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Practical Lock Picking: A Physical Penetration Tester's Training Guide Rating: 5 out of 5 stars5/5What is the Dark Web?: The truth about the hidden part of the internet Rating: 4 out of 5 stars4/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsPractical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5CompTIA CySA+ Practice Tests: Exam CS0-002 Rating: 0 out of 5 stars0 ratingsHow to Hack Like a Pornstar Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5Codes and Ciphers - A History of Cryptography Rating: 4 out of 5 stars4/5
Reviews for Configuration Management with Chef-Solo
0 ratings0 reviews
Book preview
Configuration Management with Chef-Solo - Naveed ur Rahman
Table of Contents
Configuration Management with Chef-Solo
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
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
Errata
Piracy
Questions
1. Introduction to Chef and Chef-Solo
Getting started with Chef
Understanding Chef-Solo
Terminologies
List of terminologies
Node
Workstation
Cookbooks
Recipes
Resources
Roles
Attributes
Templates
Data bags
Different use cases
PHP WordPress
Python/Django application
An overview of Chef
Summary
2. Setting Up an Environment for Chef-Solo
Installation on Linux and Ubuntu
Installing Chef as a Ruby gem
Installing Chef as a package manager
Using the Omnibus installer
Prerequisites of Chef-Solo
Cookbooks
The folder structure
Attributes
Files
Recipes
Templates
Downloading recipes
Chef-Solo configuration
Execution of recipes
Summary
3. Setting Up a Development Environment
Introducing virtual machine
System virtual machines
Process virtual machines
Executing recipes with Vagrant
Provision
Creating a Hello World recipe
Summary
4. Developing Cookbooks
Exploring Knife
Developing recipes and cookbooks
Berkshelf
The installation of Berkshelf
The creation of a Berksfile
Understanding recipes
Resources
Attributes
Metadata
Summary
5. More about Cookbooks and Recipes
Using files
Exploring templates
Data bags
Roles
Restarting services and server handling
Summary
6. Chef-Solo and Docker
Docker
Installing Docker
The working of Docker
Dockerfiles
Recommended ways to use Chef-Solo
Chef server
Web UI
Erchef
Message queues
Summary
Index
Configuration Management with Chef-Solo
Configuration Management with Chef-Solo
Copyright © 2014 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: June 2014
Production reference: 1190614
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-246-2
www.packtpub.com
Cover image by Béchir Charfi (<charfi.bechir@gmail.com>)
Credits
Author
Naveed ur Rahman
Reviewers
Anirudh Bhatnagar
Stuart Ellis
Jorge Moratilla
Commissioning Editor
Edward Gordon
Acquisition Editor
Subho Gupta
Content Development Editor
Sriram Neelakantan
Technical Editors
Venu Manthena
Shruti Rawool
Copy Editors
Janbal Dharmaraj
Karuna Narayanan
Project Coordinator
Aboli Ambardekar
Proofreaders
Maria Gould
Paul Hindle
Indexer
Rekha Nair
Graphics
Disha Haria
Production Coordinator
Shantanu Zagade
Cover Work
Shantanu Zagade
About the Author
Naveed ur Rahman is a self-taught programmer and an avid traveler. When he is not experimenting with the latest in programming and deployment, he is out camping and watching cricket.
His adventures in programming began at a very young age when he got introduced to GW-BASIC. Now, he has experience working for one of the biggest tech names in the Middle East.
Having worked at the largest technology company in the Middle East, Naveed has helped teams create and deploy applications written in various languages using configuration management tools.
I would like to thank my family for supporting me throughout the process of writing. Also, the help of Packt Publishing staff has been incredible. I would like to thank my project coordinator and content development editor who supported me in writing and finalizing the content. Also, the technical reviewers provided me with a clear guideline to make this book more effective. Moreover, their valuable critiques allowed me to refine my work.
About the Reviewers
Anirudh Bhatnagar is a technology consultant with an extensive experience in Agile product development and consulting. He started his career working as a Java developer with product-based companies such as Adobe Systems, India, where most of his experience was in Java, J2EE, Spring, Hibernate, XML, Web Services, REST, CMS, SSO, ESB, and Liferay. Currently, he is working as a Principal Consultant in Xebia, India with specialization in Continuous Delivery methodology, and working on developing a PaaS for service orchestration using Mule ESB, ActiveMQ, Elasticsearch, Jenkins, Maven, Chef, and AWS. He has been contributing to the software community through his blogs, articles, projects, meetups, and conferences. Recently, he has started a DevOps community in New Delhi and has spoken at DevOpsDays India 2013.
Stuart Ellis works for a Ruby on Rails and mobile software development company, where he has many hats. In his current and previous roles, he has developed software with .NET and Ruby, written SQL in a surprising number of dialects, managed different combinations of Windows and Linux, and studied history.
Jorge Moratilla has a Bachelor's degree in Computer Science and has been working for Internet companies since 1998. He has been working as a contractor for companies such as Sun Microsystems and Oracle, working as a certified instructor and field engineer for several years. He has a large background working with technologies and products such as Linux, Solaris, LDAP, and Check Point. Recently, he has been working in development companies, mainly as a system administrator, and performing several tasks related with Agile management, testing, and Continuous Deployment. As a coordinator of the technical group Madrid DevOps, he promotes the adoption of a culture of continuous improvement in the enterprise. You can meet him at talks and hangouts he organizes in the community.
I would like to personally thank my wife Nuria and son Eduardo for being so understanding and supportive while I was reviewing this book. Also, I would like to thank my dear mom Milagros and dad Toñi, who put in all the effort to give me an education. Finally, I would thank also all those who have contributed to my personal and professional development through the years.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and