This repository has been archived by the owner on Jun 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
43 lines (34 loc) · 1.54 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
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# config.vm.boot_mode = :gui
# Assign this VM to a host-only network IP, allowing you to access it
# via the IP. Host-only networks can talk to the host machine as well as
# any other machines on the same network, but cannot be accessed (through this
# network interface) by any external networks.
config.vm.network :hostonly, "33.33.108.2"
# config.vm.network :bridged
config.vm.share_folder "v-data", "/vagrant_data", "../packagist", :nfs => true
# config.omnibus.chef_version = "11.6.0"
# install an old version of chef to work with our recipes
config.vm.provision :shell, inline: 'apt-get update'
config.vm.provision :shell, inline: 'apt-get install build-essential ruby1.9.3 --yes'
config.vm.provision :shell, inline: 'gem install ohai --version 6.14.0 --no-rdoc --no-ri'
config.vm.provision :shell, inline: 'gem install chef --version 10.34.6 --no-rdoc --no-ri'
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./"
#chef.roles_path = "../my-recipes/roles"
#chef.data_bags_path = "../my-recipes/data_bags"
chef.add_recipe "apt"
chef.add_recipe "php5-ppa"
chef.add_recipe "percona"
chef.add_recipe "redis"
chef.add_recipe "nginx"
chef.add_recipe "packagist"
# You may also specify custom JSON attributes:
if File.exists?("./dna.json")
chef.json.merge!(JSON.parse(File.read("./dna.json")))
end
chef.log_level = :debug
end
end