-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathVagrantfile
38 lines (31 loc) · 1.02 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
linux_provision_sh = <<SHELL
set -x
sudo -u vagrant -H gsettings set org.gnome.desktop.lockdown disable-lock-screen true
sudo -u vagrant -H gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
echo '/vagrant/src' > /usr/lib/firefox-addons/extensions/'[email protected]'
SHELL
Vagrant.configure('2') do |config|
config.vm.define 'linux', autostart: false do |linux|
linux.vm.box = 'boxcutter/ubuntu1604-desktop'
linux.ssh.forward_agent = true
linux.ssh.forward_x11 = true
linux.vm.provision 'shell', inline: linux_provision_sh
linux.vm.provider :virtualbox do |vb|
vb.gui = true
vb.memory = 1024
vb.cpus = 1
end
end
config.vm.define 'windows', autostart: false do |windows|
windows.vm.box = 'mwrock/Windows2012R2'
windows.vm.guest = :windows
windows.vm.communicator = 'winrm'
windows.vm.provider :virtualbox do |vb|
vb.gui = true
vb.memory = 2048
vb.cpus = 2
end
end
end