mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
feat(vagrant) add version requirement to the vagrantfile
This commit is contained in:
parent
72d31f3a89
commit
9ddb254ac1
@ -56,14 +56,18 @@ 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}"
|
||||
config.vm.base_mac = "${PRIMARY_MAC}"
|
||||
|
||||
# SSH in as the default 'core' user, it has the vagrant ssh key.
|
||||
config.ssh.username = "core"
|
||||
# SSH in as the default 'core' user, it has the vagrant ssh key.
|
||||
config.ssh.username = "core"
|
||||
|
||||
# Disable the base shared folder, guest additions are unavailable.
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
# Disable the base shared folder, guest additions are unavailable.
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
end
|
||||
EOF
|
||||
fi
|
||||
|
@ -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