forked from newmediadenver/drupal-lamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
52 lines (42 loc) · 1.74 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'json'
=begin
You can use a specific provider with vagrant's provider flag like so:
vagrant up --provider=vmware_fusion
vagrant up --provider=virtualbox
In order to use the vmware_fusion provider you will need to have a licensed
copy of vmware fusion installed. You will also need to purchase a vagrant
vmware seat http://www.vagrantup.com/vmware ... I'm of the opinion that vmware
is a far superior product and it's worth the money not to have to rely on
oracle.
Virtualbox and Vmware each have different base boxes that can be automatically
downloaded by uncommenting the appropriate server.vm.box_url line below.
=end
json_path = ENV['DRUPAL_LAMP'].nil? ? ".drupal_lamp.json" : ENV['DRUPAL_LAMP']
data = JSON.parse(File.read(json_path))
Vagrant.configure("2") do |config|
config.vm.define :drupaldev do |server|
server.ssh.forward_agent = true
server.vm.box = "precise64"
#server.vm.box_url = "http://files.vagrantup.com/precise64_vmware_fusion.box"
#server.vm.box_url = "http://files.vagrantup.com/precise64.box"
server.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end
server.vm.provider :virtualbox do |v|
v.name = "drupal"
v.customize ["modifyvm", :id, "--memory", "1024"]
end
server.vm.network :private_network, ip: "192.168.50.5"
server.vm.hostname = "drupal.local"
server.vm.synced_folder "assets", "/assets", :nfs => false, :owner => "www-data", :group => "www-data"
server.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "chef/cookbooks"
chef.roles_path = "chef/roles"
chef.data_bags_path = "chef/data_bags"
chef.add_role("drupal_lamp")
chef.json = data
end
end
end