-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVagrantfile
More file actions
104 lines (91 loc) · 3.31 KB
/
Vagrantfile
File metadata and controls
104 lines (91 loc) · 3.31 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*- mode: ruby -*-
# vi: set ft=ruby :
PROVIDER = 'vmware_fusion'
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu13.04"
config.berkshelf.enabled = true
config.vm.provider PROVIDER do |provider|
provider.gui = true
provider.vmx["memsize"] = "2048"
provider.vmx["numvcpus"] = "2"
end
config.vm.provision :shell, :inline => "apt-get update"
config.vm.provision :shell, :inline => "apt-get install -y curl"
config.vm.provision :shell, :inline => "apt-get install -y unzip"
config.vm.synced_folder "/Applications/VMware Fusion.app/Contents/Library/isoimages", "/tmp/vmware_tools_isos" if PROVIDER=="vmware_fusion"
config.vm.provision :shell, :inline => "curl -L https://www.opscode.com/chef/install.sh | bash"
user = 'team'
config.vm.provision "chef_solo" do |chef|
chef.log_level = 'debug'
chef.add_recipe "ubuntu"
chef.add_recipe "user"
chef.add_recipe "rvm"
chef.add_recipe "vmware_tools" if PROVIDER=="vmware_fusion"
chef.add_recipe "java::oracle"
chef.add_recipe "intellij"
chef.add_recipe "intellij::plugins"
chef.add_recipe "gnome"
chef.add_recipe "gnome::disable_shortcuts"
chef.add_recipe "chrome"
chef.add_recipe "chrome::webdriver"
chef.add_recipe "phantomjs"
chef.json = {
:gnome => {
:user => user,
:disable_shortcuts => ['<Control><Alt>Down',
'<Control><Alt>Up',
'<Control><Alt>Left',
'<Control><Alt>Right',
'<Alt>F8',
'<Control><Alt>l',
'<Control><Alt>Delete']
},
:ubuntu => {
:timezone => 'Europe/London'
},
:user => {
:name => user,
:password => 'password',
:shell => '/bin/bash'
},
:java => {
:oracle => {
:accept_oracle_download_terms => true
},
:jdk_version => 7
},
:vmware_tools => {
:source => '/tmp/vmware_tools_isos/linux.iso'
},
:rvm => {
:user => user,
:default_gems => %w{rake rspec bundler hub},
:rubies => [
{:version => '1.9.3', :gems => %w{}},
{:version => '2.0.0', :gems => %w{ruby-debug-ide}}
]
},
:intellij => {
:user => user,
:version => '13.0.1',
:plugins => {
'ruby' => '6.0.0.20131207',
'BashSupport' => '1.1beta20-idea13',
'Slim' => '6.0.0.20131121',
'Markdown' => '0.9.3'
}
},
:chromium_webdriver => {
:version => '2.3',
:path => '/usr/local/bin'
}
}
end
config.vm.provision :shell, :inline => "shutdown -r now"
end