Update init Vagrantfile examples with new provisioner syntax

This commit is contained in:
Mitchell Hashimoto 2011-01-14 10:35:51 -08:00
parent 9673b7eaee
commit 41d2a78cdb
1 changed files with 13 additions and 11 deletions

View File

@ -24,18 +24,19 @@ Vagrant::Config.run do |config|
# Share an additional folder to the guest VM. The first argument is # Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the # an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder. # folder, and the third is the path on the host to the actual folder.
# config.vm.share_folder("v-data", "/vagrant_data", "../data") # config.vm.share_folder "v-data", "/vagrant_data", "../data"
# Enable provisioning with chef solo, specifying a cookbooks path (relative # Enable provisioning with chef solo, specifying a cookbooks path (relative
# to this Vagrantfile), and adding some recipes and/or roles. # to this Vagrantfile), and adding some recipes and/or roles.
# #
# config.vm.provisioner = :chef_solo # config.vm.provision :chef_solo do |chef|
# config.chef.cookbooks_path = "cookbooks" # chef.cookbooks_path = "cookbooks"
# config.chef.add_recipe "mysql" # chef.add_recipe "mysql"
# config.chef.add_role "web" # chef.add_role "web"
# #
# You may also specify custom JSON attributes: # # You may also specify custom JSON attributes:
# config.chef.json = { :mysql_password => "foo" } # chef.json = { :mysql_password => "foo" }
# end
# Enable provisioning with chef server, specifying the chef server URL, # Enable provisioning with chef server, specifying the chef server URL,
# and the path to the validation key (relative to this Vagrantfile). # and the path to the validation key (relative to this Vagrantfile).
@ -47,9 +48,10 @@ Vagrant::Config.run do |config|
# HTTP instead of HTTPS depending on your configuration. Also change the # HTTP instead of HTTPS depending on your configuration. Also change the
# validation key to validation.pem. # validation key to validation.pem.
# #
# config.vm.provisioner = :chef_server # config.vm.provision :chef_server do |chef|
# config.chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
# config.chef.validation_key_path = "ORGNAME-validator.pem" # chef.validation_key_path = "ORGNAME-validator.pem"
# end
# #
# If you're using the Opscode platform, your validator client is # If you're using the Opscode platform, your validator client is
# ORGNAME-validator, replacing ORGNAME with your organization name. # ORGNAME-validator, replacing ORGNAME with your organization name.
@ -57,5 +59,5 @@ Vagrant::Config.run do |config|
# IF you have your own Chef Server, the default validation client name is # IF you have your own Chef Server, the default validation client name is
# chef-validator, unless you changed the configuration. # chef-validator, unless you changed the configuration.
# #
# config.chef.validation_client_name = "ORGNAME-validator" # chef.validation_client_name = "ORGNAME-validator"
end end