I've been building up and tearing down quite a few VMs, lately, while I am learning to use Vagrant and Ansible, and quickly grew tired of editing the Vagrantfile.
So, I created a small GitHub repo called [vagrant-buildspec](https://github.com/kevinbowen777/vagrant-buildspec).
It's by no means revolutionary; but, it makes my life a little bit easier, and it has been fun to create. So I thought that I would share.
Basically, you enter your Vagrant build details into a flat YAML file, run `vagrant up`, and the details of your build get pulled into the Vagrantfile.
It currently supports the customisation of the following parameters:
* VirtualBox Name
* VirtualBox Guest Hostname
* Vagrant Box Name
* Ansible Host
* Private IP Address
* Public IP Address
* Forwarding Ports
* Guest Port
* Host Port
* Synced Folders
* Guest Folder
* Host Folder
* Ansible Inventory File Location
* Ansible Playbook Location
Feel free to clone, fork, spin, fold, or mutilate as you wish.
I'd welcome any feedback or constructive criticism on how I might improve the project or its documentation.
P.S. This project was initially inspired by [this ancient post](https://www.reddit.com/r/vagrant/comments/2s1yaa/dont_copy_your_vagrantfile/)
1 thought on “vagrant-buildspec – A simple template for building Vagrantfiles”
What is the reason for a `-buildspec` suffix? Is it some convention or a reference to an existing famous tool?