-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
36 lines (30 loc) · 966 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# The default ChiliProject will be available on http://localhost:4223
# CAUTION: if you change this, you must remember to change the port of the
# external_uri parameter in data_bags/chiliproject/default.json
config.vm.forward_port 80, 4223
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks"]
chef.data_bags_path = ["data_bags"]
chef.add_recipe "apt"
chef.add_recipe "postgresql::server"
chef.add_recipe "chiliproject"
chef.add_recipe "chiliproject::apache2"
chef.json = {
"chiliproject" => {
"apache" => {
"serve_aliases" => true
}
},
"postgresql" => {
"password" => {
"postgres" => "supersecretpostgressuperuserpassword"
}
}
}
end
end