From the course: Learning Vagrant
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Get started with Vagrantfiles - Vagrant Tutorial
From the course: Learning Vagrant
Get started with Vagrantfiles
- [Instructor] Vagrant boxes are configured using a Vagrantfile. Vagrantfiles are simple Ruby programs used by the vagrant CLI to set attributes of a vagrant box such as CPU, memory, disk, and network configurations. Again, don't worry if you're not a Ruby developer. Vagrantfiles are easy to read and write. Vagrantfile configurations are mostly single line statements. I'll be using Visual Studio Code to demonstrate editing a Vagrantfile. VS Code is a free, lightweight text editor from Microsoft. It's supported on all major platforms, including Windows, Mac, and Linux. You can install VS Code by visiting code.visualstudio.com. You can, of course use any text editor you prefer. If you don't have a preference, I recommend using VS Code. Once you've downloaded the installer, you can run it, and accept the defaults. And then launch Visual Studio Code. Once Visual Studio Code is installed, the next step you'll want to take is to install an extension to add support for Vagrantfiles. Select…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.