Working with Vagrantfile
In this lesson, we'll learn more about Vagrantfile and dive deeper into its configurations.
We'll cover the following...
So far, we’ve just spun up our Vagrant VM.
Now, let’s get our hands dirty with Vagrantfile.
Vagrantfile
Vagrantfile
is a configuration file that Vagrant creates during the vagrant init <box name>
process. This file consists of the configuration for your VM
. This configuration file is defined completely in the Ruby language. Don’t worry if you don’t know the Ruby language, as it is quite easy to use. When we run the vagrant up
command, Vagrant locates this config file in the current directory and loads the guest machine using the configuration defined in the file.
We can do a lot more than run a default configured VM. Let’s look at some of our options.
Customizing Vagrantfile
Now, let’s spin up our Vagrant VM again, but this time, with a ...