Configuration Management with ChefSolo 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 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 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 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 Developing Cookbooks Exploring Knife Developing recipes and cookbooks Berkshelf The installation of Berkshelf The creation of a Berksfile Understanding recipes Resources Attributes Metadata Summary More about Cookbooks and Recipes Using files Exploring templates Data bags Roles Restarting services and server handling Summary 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 ChefSolo H hello world recipe creating / Creating a Hello World recipe Hosted Chef version, Chef / Getting started with Chef I installation Librarian-Chef / Berkshelf K Knife / Getting started with Chef, Data bags, Message queues about / Exploring Knife L Librarian-Chef about / Berkshelf installation / The installation of Berkshelf Linux Containers (LXC) / Docker M metadata about / Metadata N network node / Node nginx recipe dependencies / Provision Node data storage / Understanding Chef-Solo nodes cloud node / Node physical node / Node virtual node / Node network node / Node O Ohai / Restarting services and server handling Omnibus installer aout / Using the Omnibus installer advantages / Using the Omnibus installer disadvantages / Using the Omnibus installer Open source Chef version, Chef / Getting started with Chef Opscode / Installing Chef as a package manager P Parallels about / Process virtual machines URL / Process virtual machines Persistent attributes / Understanding Chef-Solo PHP WordPress setting up, prerequisite / PHP WordPress physical node / Node Platform as a Service (PAAS) / Docker Private Chef version, Chef / Getting started with Chef process virtual machine about / Process virtual machines provisioning process, in Vagrant commands, using / Provision about / Provision Python/Django application with MySQL / Python/Django application Q QEMU-KVM / Process virtual machines R RabbitMQ URL / Message queues recipe about / Recipes writing, rules / Recipes executing, Vagrant used / Executing recipes with Vagrant recipes downloading / Downloading recipes developing / Developing recipes and cookbooks about / Understanding recipes Recipes folder / Recipes registry / The working of Docker resource about / Resources Git resource example / Resources types / Resources coding convention / Resources directory resource / Resources resources about / Resources roles about / Roles, Roles name attribute / Roles description attribute / Roles run_list attribute / Roles declaring / Roles real-world examples / Roles / Recommended ways to use Chef-Solo RPM (Red-Hat Package Manager) / Installation on Linux and Ubuntu Ruby gem Chef, installing as / Installing Chef as a Ruby gem installing, command / The installation of Berkshelf RVM (Ruby Version Manager) / Installing Chef as a Ruby gem S Search indexes / Understanding Chef-Solo server handling / Restarting services and server handling service restarting / Restarting services and server handling solo.rb file / Chef-Solo configuration system virtual machines about / System virtual machines VirtualBox / Process virtual machines Parallels / Process virtual machines VMware / Process virtual machines QEMU-KVM / Process virtual machines Windows Virtual PC / Process virtual machines T template about / Templates templates / Templates using / Exploring templates components / Exploring templates folder structure / Exploring templates exploring / Exploring templates terminologies, Chef node / Node workstation / Workstation cookbooks / Cookbooks recipes / Recipes resources / Resources roles / Roles attributes / Attributes templates / Templates data bags / Data bags Test Kitchen / Exploring Knife URL / Recommended ways to use Chef-Solo Tiny Core Linux (TCL) / Installing Docker V $ vagrant box command / Process virtual machines $ vagrant destroy command / Process virtual machines $ vagrant halt command / Process virtual machines $ vagrant init command / Process virtual machines $ vagrant package command / Process virtual machines $ vagrant provision command / Process virtual machines $ vagrant reload command / Process virtual machines $ vagrant resume command / Process virtual machines $ vagrant ssh command / Process virtual machines $ vagrant status command / Process virtual machines $ vagrant suspend command / Process virtual machines $ vagrant up command / Process virtual machines Vagrant advantages / Process virtual machines about / Process virtual machines installation / Process virtual machines $ vagrant init command / Process virtual machines $ vagrant up command / Process virtual machines $ vagrant suspend command / Process virtual machines $ vagrant halt command / Process virtual machines $ vagrant resume command / Process virtual machines $ vagrant reload command / Process virtual machines $ vagrant status command / Process virtual machines $ vagrant provision command / Process virtual machines $ vagrant destroy command / Process virtual machines $ vagrant box command / Process virtual machines $ vagrant package command / Process virtual machines $ vagrant ssh command / Process virtual machines file / Process virtual machines virtual machine, setting up / Process virtual machines used, for recipe execution / Executing recipes with Vagrant provisioning process / Provision site / Provision Vagrant box / Developing recipes and cookbooks VirtualBox about / Process virtual machines URL / Process virtual machines virtual machine (VM) / Installing Chef as a package manager about / Introducing virtual machine system virtual machines / System virtual machines process virtual machine / Process virtual machines virtual node / Node VM Player / Process virtual machines VMware / Process virtual machines VM Workstation / Process virtual machines W WebUI / Web UI Windows Virtual PC / Process virtual machines workstation / Workstation ... Recommended ways to use Chef- Solo Chef server Web UI Erchef Message queues Summary Index Configuration Management with ChefSolo Configuration Management with ChefSolo Copyright © 2014 Packt Publishing... Configuration Management with ChefSolo Table of Contents Configuration Management with Chef- Solo Credits About the Author About the Reviewers... What this book covers Chapter 1, Introduction to Chef and Chef- Solo, explains about Chef, chef- client, and ChefSolo It explains about the core concepts in Chef and the terminologies with some use cases Chapter 2, Setting Up an Environment for Chef- Solo, guides you to install Chef- Solo on