Files
vms/Vagrantfile.in
T

51 lines
1.8 KiB
Ruby
Raw Normal View History

2022-05-02 22:03:37 -05:00
# -*- 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|
2023-08-10 14:10:58 -05:00
config.vm.box = "@@BOX_NAME@@"
config.vm.box_url = "@@BOX@@"
2022-05-02 22:03:37 -05:00
# 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
2023-12-07 12:15:48 -06:00
config.vm.provider "hyperv" do |hv|
config.vm.network "private_network", bridge: "packer-amd64"
end
2022-05-02 22:03:37 -05:00
#
# 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
2023-08-03 14:44:02 -05:00
cat /etc/os-release
cat /etc/vagrant_box_build_time
2022-05-02 22:03:37 -05:00
SHELL
end