feat(vagrant) add version requirement to the vagrantfile

This commit is contained in:
Alex Polvi 2013-08-01 20:17:14 -07:00
parent 72d31f3a89
commit 9ddb254ac1
2 changed files with 10 additions and 6 deletions

View File

@ -56,6 +56,10 @@ datez() {
if [[ -n "${FLAGS_output_vagrant}" ]]; then
cat >"${FLAGS_output_vagrant}" <<EOF
if Vagrant::VERSION < "1.2.3"
raise "Need at least vagrant version 1.2.3, please update"
end
Vagrant.configure("2") do |config|
config.vm.base_mac = "${PRIMARY_MAC}"

View File

@ -442,7 +442,7 @@ _write_vagrant_conf() {
tar -czf "${box}" -C "${VM_TMP_DIR}" "box.ovf" "Vagrantfile" "${dst_name}"
cat > "${VM_README}" <<EOF
Vagrant >= 1.2 is required. Use something like the following to get started:
Vagrant >= 1.2.3 is required. Use something like the following to get started:
vagrant box add coreos path/to/$(basename "${box}")
vagrant init coreos
vagrant up