forked from playingfield/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.template
54 lines (48 loc) · 1.54 KB
/
Vagrantfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- mode: ruby -*-
# vi: set ft=ruby :
# To use these virtual machines install Vagrant and Hyper-V or VirtualBox.
Vagrant.require_version ">= 2.0.0"
Vagrant.configure(2) do |config|
# check for updates of the base image
config.vm.box_check_update = true
# wait a while longer
config.vm.boot_timeout = 1200
# disable update guest additions
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
# enable ssh agent forwarding
config.ssh.forward_agent = true
# use the standard vagrant ssh key
config.ssh.insert_key = false
config.vm.box = "ansiblebook/controller"
config.vm.hostname = "controller"
config.vm.network "public_network", type: "dhcp", bridge: "Wi-Fi"
# set no_share to false to enable file sharing
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
config.vm.provider "hyperv" do |hyperv|
hyperv.cpus = 4
hyperv.memory = 8192
hyperv.vmname = "controller"
hyperv.enable_virtualization_extensions = true
hyperv.vm_integration_services = {
guest_service_interface: true,
heartbeat: true,
shutdown: true,
time_synchronization: true,
}
hyperv.linked_clone = true
end
config.vm.provider :virtualbox do |virtualbox|
virtualbox.customize ["modifyvm", :id,
"--audio-driver", "none",
"--cpus", 4,
"--memory", 8192,
"--natnet1", "192.168.33.0/24",
"--graphicscontroller", "VMSVGA",
"--vram", "64"
]
virtualbox.gui = false
virtualbox.name = "controller"
end
end