55 lines
1.9 KiB
Ruby
55 lines
1.9 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
# configures the configuration version (we support older styles for
|
|
# backwards compatibility). Please don't change it unless you know what
|
|
# you're doing.
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "@@BOX_NAME@@"
|
|
config.vm.box_url = "@@BOX@@"
|
|
|
|
# Create a private network, which allows host-only access to the machine
|
|
# using a specific IP.
|
|
# config.vm.network "private_network", ip: "192.168.33.10"
|
|
|
|
# Share an additional folder to the guest VM. The first argument is
|
|
# the path on the host to the actual folder. The second argument is
|
|
# the path on the guest to mount the folder. And the optional third
|
|
# argument is a set of non-required options.
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
# Provider-specific configuration so you can fine-tune various
|
|
# backing providers for Vagrant. These expose provider-specific options.
|
|
# Example for VirtualBox:
|
|
#
|
|
# config.vm.provider "virtualbox" do |vb|
|
|
# # Display the VirtualBox GUI when booting the machine
|
|
# vb.gui = true
|
|
#
|
|
# # Customize the amount of memory on the VM:
|
|
# vb.memory = "1024"
|
|
# end
|
|
config.vm.provider "libvirt" do |lv|
|
|
|
|
end
|
|
|
|
config.vm.provider "hyperv" do |hv, over|
|
|
over.vm.network "private_network", bridge: "packer-amd64"
|
|
#config.vm.network "private_network", bridge: "packer-amd64"
|
|
end
|
|
|
|
#
|
|
# View the documentation for the provider you are using for more
|
|
# information on available options.
|
|
|
|
# Enable provisioning with a shell script. Additional provisioners such as
|
|
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
|
# documentation for more information about their specific syntax and use.
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
set -ex
|
|
cat /etc/os-release
|
|
cat /etc/vagrant_box_build_time
|
|
SHELL
|
|
end
|