website/content/docs/vagrantfile/vagrant_version.mdx
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
[!IMPORTANT]
Documentation Update: Product documentation previously located in/websitehas moved to thehashicorp/web-unified-docsrepository, where all product documentation is now centralized. Please make contributions directly toweb-unified-docs, since changes to/websitein this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
A set of Vagrant version requirements can be specified in the Vagrantfile to enforce that people use a specific version of Vagrant with a Vagrantfile. This can help with compatibility issues that may otherwise arise from using a too old or too new Vagrant version with a Vagrantfile.
Vagrant version requirements should be specified at the top of a Vagrantfile
with the Vagrant.require_version helper:
Vagrant.require_version ">= 1.3.5"
In the case above, the Vagrantfile will only load if the version loading it is Vagrant 1.3.5 or greater.
Multiple requirements can be specified as well:
Vagrant.require_version ">= 1.3.5", "< 1.4.0"