forked from StefanScherer/vagrant-vcloud-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
64 lines (54 loc) · 2.68 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "boxcutter/ubuntu1404-desktop"
config.vm.hostname = "vagrant-vcloud-box"
config.vm.provision "shell", path: "scripts/fix-resolv-conf.sh", privileged: false # only needed for vApp in vCloud
config.vm.provision "shell", path: "scripts/disable-updates.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-git.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-vagrant.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-vagrant-vcloud.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-vagrantfile.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-node.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-xrdp.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-rdesktop.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-httpie.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-xml2json.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-jq.sh", privileged: false
config.vm.provision "shell", path: "scripts/install-chrome.sh", privileged: false
config.vm.provision "shell", path: "scripts/set-german.sh", privileged: false
config.vm.provision "shell", path: "scripts/restart-gnome-and-apply-gsettings.sh", privileged: false
if Vagrant.has_plugin?("vagrant-serverspec")
config.vm.provision :serverspec do |spec|
spec.pattern = 'test/*_spec.rb'
end
end
config.ssh.forward_agent = true
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = 1024
vb.cpus = 2
vb.customize ["modifyvm", :id, "--vram", "256"]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
vb.customize ["setextradata", "global", "GUI/MaxGuestResolution", "any"]
vb.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
end
["vmware_fusion", "vmware_workstation"].each do |provider|
config.vm.provider provider do |v, override|
v.gui = true
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "2"
v.vmx["mks.enable3d"] = "TRUE"
end
end
config.vm.provider "vcloud" do |vb, override|
override.vm.box = "ubuntu1404-desktop"
vb.vapp_prefix = "vagrant-vcloud-box"
vb.memory = 1024
vb.cpus = 2
end
end