Book Image

Vagrant Virtual Development Environment Cookbook

Book Image

Vagrant Virtual Development Environment Cookbook

Overview of this book

Table of Contents (17 chapters)
Vagrant Virtual Development Environment Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Provisioning Vagrant environments with Salt


Vagrant machines can also be provisioned using Salt (http://www.saltstack.com). Salt is a combination of configuration management and system orchestration software. Salt relies on a master/minion architecture to enable configuration and control of large clusters of machines, but in this example, we will use masterless salt to provision a basic web server and develop our own salt states that define system configurations.

Getting ready

Compared to other configuration management provisioners, getting started with the Vagrant Salt provisioner is rather easy; the provisioner itself will check for the existence of the salt-call command. If the command does not exist in the Vagrant machine, the provisioner will bootstrap the environment without plugins or bootstrapping scripts.

In this example, we'll write a simple state to provision the apache2 web server and apply the state using masterless Salt to apply our state.

How to do it…

Provisioning a Vagrant machine...