From ab926ed5f4a769e9cf8a59fac22defdb2bc5be58 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Wed, 21 Mar 2012 10:44:41 -0400 Subject: [PATCH] Adds chef.roles_path and chef.data_bags_path to template --- templates/commands/init/Vagrantfile.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/commands/init/Vagrantfile.erb b/templates/commands/init/Vagrantfile.erb index 9ad226920..d0cfa0d8a 100644 --- a/templates/commands/init/Vagrantfile.erb +++ b/templates/commands/init/Vagrantfile.erb @@ -59,11 +59,14 @@ Vagrant::Config.run do |config| # puppet.manifest_file = "<%= box_name %>.pp" # end - # Enable provisioning with chef solo, specifying a cookbooks path (relative - # to this Vagrantfile), and adding some recipes and/or roles. + # Enable provisioning with chef solo, specifying a cookbooks path, roles + # path, and data_bags path (all relative to this Vagrantfile), and adding + # some recipes and/or roles. # # config.vm.provision :chef_solo do |chef| - # chef.cookbooks_path = "cookbooks" + # chef.cookbooks_path = "../my-recipes/cookbooks" + # chef.roles_path = "../my-recipes/roles" + # chef.data_bags_path = "../my-recipes/data_bags" # chef.add_recipe "mysql" # chef.add_role "web" #