-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
21 lines (18 loc) · 1.01 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Vagrant.configure("2") do |config|
config.vm.box = "precise64-omnibus"
config.vm.box_url = "https://s3.amazonaws.com/gsc-vagrant-boxes/ubuntu-12.04-omnibus-chef.box"
# Uncomment the following lines to enable NFS sharing of the Bakery module from
# the host. After running `vagrant up` or `vagrant provision` run `rake share`
# to set the Drupal sites to using the shared Bakery modules.
#config.vm.synced_folder Pathname.new("shared/bakery6").realpath.to_s, "/var/bakery/bakery6", :create => true, :nfs => true
#config.vm.synced_folder Pathname.new("shared/bakery7").realpath.to_s, "/var/bakery/bakery7/", :create => true, :nfs => true
config.vm.provision :chef_solo do |chef|
myconfig = JSON.parse(File.read("config/node.json"))
chef.cookbooks_path = ["site-cookbooks", "cookbooks"]
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.json.merge!(myconfig)
end
# Run the host with a host-only IP of 172.22.22.22.
config.vm.network :private_network, ip: "172.22.22.22"
end