Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On DevOps with Vagrant

You're reading from   Hands-On DevOps with Vagrant Implement end-to-end DevOps and infrastructure management using Vagrant

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789138054
Length 232 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Alex Braunton Alex Braunton
Author Profile Icon Alex Braunton
Alex Braunton
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Installing VirtualBox and Vagrant 3. Command Line-Interface - Vagrant Commands 4. Discovering Vagrant Boxes - Vagrant Cloud 5. Configuring Vagrant Using a Vagrantfile 6. Networking in Vagrant 7. Multi-Machine 8. Exploring Vagrant Plugins and Syncing Files 9. Shell Scripts - Provisioning 10. Ansible - Using Ansible to Provision a Vagrant Box 11. Chef - Using Chef to Provision a Vagrant Box 12. Docker - Using Docker with Vagrant 13. Puppet - Using Puppet to Provision a Vagrant Box 14. Salt - Using Salt to Provision a Vagrant Box 15. Other Book You May Enjoy

Provisioning Vagrant with Chef


There are four different ways to use Chef to provision a Vagrant machine that Vagrant supports. This means that Chef has the most options in Vagrant when it comes to provisioning. The four options are as follows:

  • Chef Solo
  • Chef Zero
  • Chef Client
  • Chef Apply

In this chapter, we will be focusing on Chef Solo and Chef Client. This will give you a good mixture of provisioning on the host machine and the Vagrant machine.

Installing Chef on macOS

Before we can begin using Chef, we will first need to install it. We'll learn how to install Chef on the macOS operating system (the High Sierra 10.13 version).

We'll be installing the Chef DK (development kit), which includes all of the dependencies, utilities, and the main Chef software. The list of installed software includes the following:

  • Chef client
  • OpenSSL
  • Embedded Ruby
  • RubyGems
  • Command-line utilites
  • Key value stores
  • Parsers
  • Utilities
  • Libraries
  • Community tools such as Kitchen and ChefSpec

Note

Please Note: The Apple XCode software package...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime