mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
feat(vagrant) add version requirement to the vagrantfile
This commit is contained in:
parent
72d31f3a89
commit
9ddb254ac1
@ -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}"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user