-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
39 lines (36 loc) · 1.19 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
required_plugins = {
'vagrant-reload' => {
'version' => '>= 0.0.1'
}
}
Vagrant.configure('2') do |config|
config.vagrant.plugins = required_plugins
config.vm.box = 'AntonioMeireles/ClearLinux'
config.vm.define 'gnome-desktop'
config.vm.hostname = 'gnome.clearlinux.local'
['vmware_fusion', 'vmware_desktop', 'vmware_workstation'].each do |provider|
config.vm.provider provider do |vmware, override|
vmware.gui = true
{
'memsize' => 8192,
'numvcpus' => 4
}.each { |k, v| vmware.vmx[k.to_s] = v.to_s }
override.vm.provision :bundle_add, bundles: 'os-cloudguest-vmware-gui'
# due to the wonders of delayed initialization provider overrides are
# always called last, so an additional reboot is needed...
# [ https://github.com/hashicorp/vagrant/issues/6035 ]
override.vm.provision :reload
end
end
config.vm.provider 'virtualbox' do |vbox|
vbox.gui = true
{
'--memory' => 8192,
'--cpus' => 4
}.each { |k, v| vbox.customize ['modifyvm', :id, k.to_s, v.to_s] }
end
config.vm.provision :bundle_add, bundles: ['desktop-autostart']
config.vm.provision :reload
end