forked from tdegrunt/vagrant-chef-server-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
31 lines (24 loc) · 737 Bytes
/
Copy pathVagrantfile
File metadata and controls
31 lines (24 loc) · 737 Bytes
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
Vagrant::Config.run do |config|
config.vm.define "chef-server" do |chefs_config|
chefs_config.vm.box = "precise64"
chefs_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
chefs_config.vm.host_name = "chefserver"
chefs_config.vm.forward_port 4000, 4000
chefs_config.vm.forward_port 4040, 4040
chefs_config.vm.forward_port 22, 2223
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.cookbooks_path = "cookbooks"
chef.run_list.clear
chef.json = {
:chef_server=> {
:url=> "http://localhost:4000",
:webui_enabled=> true,
}
}
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "chef-server::rubygems-install"
end
end
end