mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
37 lines
1 KiB
Ruby
37 lines
1 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# Specify Vagrant version and Vagrant API version
|
|
Vagrant.require_version ">= 1.6.0"
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
# Create and configure the VMs
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
# Always use Vagrant's default insecure key
|
|
config.ssh.insert_key = false
|
|
|
|
# Use an Ubuntu 14.04 x64 base box created for the vmware_fusion provider
|
|
config.vm.box = "slowe/ubuntu-trusty-x64"
|
|
|
|
# Assign a static IP address to the private network
|
|
config.vm.network "private_network", ip: "192.168.1.101"
|
|
|
|
# Disable automatic box update checking
|
|
config.vm.box_check_update = false
|
|
|
|
# Disable default shared folder
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
# Configure the VM's RAM and vCPUs
|
|
config.vm.provider :vmware_fusion do |vmw|
|
|
vmw.vmx["memsize"] = "512"
|
|
vmw.vmx["numvcpus"] = "1"
|
|
end
|
|
|
|
# Provision and configure the VM
|
|
# config.vm.provision "shell", inline: <<-SHELL
|
|
# sudo apt-get update
|
|
# sudo apt-get install -y apache2
|
|
# SHELL
|
|
end
|