tnargav 1.2.3 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. data/.gitignore +19 -3
  2. data/CHANGELOG.md +311 -0
  3. data/bin/vagrant +12 -0
  4. data/config/default.rb +2 -4
  5. data/keys/README.md +0 -7
  6. data/lib/vagrant.rb +7 -0
  7. data/lib/vagrant/action.rb +2 -0
  8. data/lib/vagrant/action/builtin/box_add.rb +12 -1
  9. data/lib/vagrant/action/builtin/confirm.rb +1 -0
  10. data/lib/vagrant/action/builtin/graceful_halt.rb +9 -5
  11. data/lib/vagrant/action/builtin/handle_box_url.rb +16 -7
  12. data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +1 -1
  13. data/lib/vagrant/action/builtin/mixin_provisioners.rb +43 -0
  14. data/lib/vagrant/action/builtin/nfs.rb +18 -8
  15. data/lib/vagrant/action/builtin/provision.rb +30 -21
  16. data/lib/vagrant/action/builtin/provisioner_cleanup.rb +35 -0
  17. data/lib/vagrant/action/builtin/wait_for_communicator.rb +84 -0
  18. data/lib/vagrant/action/warden.rb +2 -1
  19. data/lib/vagrant/box_collection.rb +62 -44
  20. data/lib/vagrant/cli.rb +1 -9
  21. data/lib/vagrant/config/v2/root.rb +6 -0
  22. data/lib/vagrant/environment.rb +27 -51
  23. data/lib/vagrant/errors.rb +33 -1
  24. data/lib/vagrant/guest.rb +2 -2
  25. data/lib/vagrant/machine.rb +14 -22
  26. data/lib/vagrant/plugin/v2/command.rb +4 -1
  27. data/lib/vagrant/plugin/v2/communicator.rb +21 -0
  28. data/lib/vagrant/plugin/v2/guest.rb +1 -56
  29. data/lib/vagrant/plugin/v2/provisioner.rb +6 -0
  30. data/lib/vagrant/util/downloader.rb +7 -2
  31. data/lib/vagrant/util/platform.rb +43 -0
  32. data/lib/vagrant/util/ssh.rb +5 -0
  33. data/lib/vagrant/util/subprocess.rb +16 -2
  34. data/lib/vagrant/version.rb +1 -1
  35. data/plugins/commands/box/command/remove.rb +22 -2
  36. data/plugins/commands/box/command/repackage.rb +1 -1
  37. data/plugins/commands/destroy/command.rb +8 -3
  38. data/plugins/commands/help/command.rb +12 -0
  39. data/plugins/commands/help/plugin.rb +17 -0
  40. data/plugins/commands/plugin/action.rb +11 -0
  41. data/plugins/commands/plugin/action/install_gem.rb +26 -1
  42. data/plugins/commands/plugin/action/plugin_exists_check.rb +26 -0
  43. data/plugins/commands/plugin/command/install.rb +4 -21
  44. data/plugins/commands/plugin/command/mixin_install_opts.rb +30 -0
  45. data/plugins/commands/plugin/command/root.rb +5 -0
  46. data/plugins/commands/plugin/command/update.rb +41 -0
  47. data/plugins/commands/reload/command.rb +4 -0
  48. data/plugins/commands/status/command.rb +6 -1
  49. data/plugins/commands/up/command.rb +10 -0
  50. data/plugins/commands/up/start_mixins.rb +12 -1
  51. data/plugins/communicators/ssh/communicator.rb +61 -6
  52. data/plugins/guests/arch/cap/change_host_name.rb +1 -2
  53. data/plugins/guests/arch/cap/configure_networks.rb +6 -0
  54. data/plugins/guests/coreos/cap/change_host_name.rb +15 -0
  55. data/plugins/guests/coreos/cap/configure_networks.rb +72 -0
  56. data/plugins/guests/coreos/guest.rb +9 -0
  57. data/plugins/guests/coreos/plugin.rb +25 -0
  58. data/plugins/guests/darwin/cap/change_host_name.rb +14 -0
  59. data/plugins/guests/darwin/cap/configure_networks.rb +52 -0
  60. data/plugins/guests/darwin/cap/halt.rb +16 -0
  61. data/plugins/guests/darwin/cap/mount_nfs_folder.rb +25 -0
  62. data/plugins/guests/darwin/cap/mount_vmware_shared_folder.rb +36 -0
  63. data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +26 -0
  64. data/plugins/guests/darwin/cap/verify_vmware_hgfs.rb +12 -0
  65. data/plugins/guests/darwin/guest.rb +15 -0
  66. data/plugins/guests/darwin/plugin.rb +50 -0
  67. data/plugins/guests/debian/cap/change_host_name.rb +1 -0
  68. data/plugins/guests/gentoo/guest.rb +1 -1
  69. data/plugins/guests/linux/cap/mount_nfs.rb +9 -1
  70. data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +26 -7
  71. data/plugins/guests/linux/cap/shell_expand_guest_path.rb +4 -1
  72. data/plugins/guests/openbsd/cap/change_host_name.rb +14 -0
  73. data/plugins/guests/openbsd/cap/configure_networks.rb +40 -0
  74. data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +14 -0
  75. data/plugins/guests/openbsd/plugin.rb +15 -0
  76. data/plugins/guests/solaris/cap/halt.rb +2 -1
  77. data/plugins/guests/solaris/cap/mount_virtualbox_shared_folder.rb +4 -1
  78. data/plugins/guests/solaris11/cap/change_host_name.rb +25 -0
  79. data/plugins/guests/solaris11/cap/configure_networks.rb +32 -0
  80. data/plugins/guests/solaris11/cap/halt.rb +26 -0
  81. data/plugins/guests/solaris11/cap/mount_virtualbox_shared_folder.rb +35 -0
  82. data/plugins/guests/solaris11/config.rb +22 -0
  83. data/plugins/guests/solaris11/guest.rb +15 -0
  84. data/plugins/guests/solaris11/plugin.rb +44 -0
  85. data/plugins/guests/suse/cap/configure_networks.rb +60 -0
  86. data/plugins/guests/suse/plugin.rb +5 -0
  87. data/plugins/guests/ubuntu/cap/change_host_name.rb +1 -0
  88. data/plugins/guests/ubuntu/cap/mount_nfs.rb +19 -0
  89. data/plugins/guests/ubuntu/cap/mount_virtualbox_shared_folder.rb +14 -0
  90. data/plugins/guests/ubuntu/guest.rb +0 -19
  91. data/plugins/guests/ubuntu/plugin.rb +10 -0
  92. data/plugins/hosts/arch/host.rb +5 -28
  93. data/plugins/hosts/bsd/host.rb +83 -7
  94. data/plugins/hosts/fedora/host.rb +12 -6
  95. data/plugins/hosts/gentoo/host.rb +3 -1
  96. data/plugins/hosts/linux/host.rb +42 -9
  97. data/plugins/hosts/opensuse/host.rb +3 -1
  98. data/plugins/hosts/slackware/host.rb +26 -0
  99. data/plugins/hosts/slackware/plugin.rb +15 -0
  100. data/plugins/kernel_v1/config/ssh.rb +2 -2
  101. data/plugins/kernel_v2/config/ssh.rb +8 -16
  102. data/plugins/kernel_v2/config/vm.rb +68 -11
  103. data/plugins/providers/virtualbox/action.rb +15 -2
  104. data/plugins/providers/virtualbox/action/boot.rb +0 -26
  105. data/plugins/providers/virtualbox/action/clear_network_interfaces.rb +1 -1
  106. data/plugins/providers/virtualbox/action/customize.rb +10 -3
  107. data/plugins/providers/virtualbox/action/destroy_unused_network_interfaces.rb +8 -1
  108. data/plugins/providers/virtualbox/action/forward_ports.rb +1 -0
  109. data/plugins/providers/virtualbox/action/import.rb +3 -0
  110. data/plugins/providers/virtualbox/action/network.rb +14 -2
  111. data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +7 -2
  112. data/plugins/providers/virtualbox/action/set_name.rb +13 -1
  113. data/plugins/providers/virtualbox/config.rb +39 -2
  114. data/plugins/providers/virtualbox/driver/base.rb +5 -0
  115. data/plugins/providers/virtualbox/driver/meta.rb +7 -1
  116. data/plugins/providers/virtualbox/driver/version_4_0.rb +2 -2
  117. data/plugins/providers/virtualbox/driver/version_4_1.rb +2 -2
  118. data/plugins/providers/virtualbox/driver/version_4_2.rb +17 -0
  119. data/plugins/providers/virtualbox/model/forwarded_port.rb +7 -1
  120. data/plugins/providers/virtualbox/util/compile_forwarded_ports.rb +5 -1
  121. data/plugins/provisioners/ansible/config.rb +40 -23
  122. data/plugins/provisioners/ansible/provisioner.rb +68 -13
  123. data/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb +1 -1
  124. data/plugins/provisioners/cfengine/cap/redhat/cfengine_install.rb +1 -1
  125. data/plugins/provisioners/cfengine/config.rb +7 -1
  126. data/plugins/provisioners/cfengine/provisioner.rb +4 -5
  127. data/plugins/provisioners/chef/config/base.rb +31 -0
  128. data/plugins/provisioners/chef/config/chef_client.rb +15 -6
  129. data/plugins/provisioners/chef/config/chef_solo.rb +18 -11
  130. data/plugins/provisioners/chef/provisioner/base.rb +23 -3
  131. data/plugins/provisioners/chef/provisioner/chef_client.rb +25 -6
  132. data/plugins/provisioners/chef/provisioner/chef_solo.rb +16 -13
  133. data/plugins/provisioners/file/config.rb +29 -0
  134. data/plugins/provisioners/file/plugin.rb +23 -0
  135. data/plugins/provisioners/file/provisioner.rb +16 -0
  136. data/plugins/provisioners/puppet/config/puppet.rb +4 -1
  137. data/plugins/provisioners/puppet/provisioner/puppet.rb +15 -9
  138. data/plugins/provisioners/puppet/provisioner/puppet_server.rb +9 -2
  139. data/plugins/provisioners/salt/bootstrap-salt.sh +6 -0
  140. data/plugins/provisioners/salt/config.rb +105 -0
  141. data/plugins/provisioners/salt/errors.rb +11 -0
  142. data/plugins/provisioners/salt/plugin.rb +22 -0
  143. data/plugins/provisioners/salt/provisioner.rb +249 -0
  144. data/plugins/provisioners/shell/config.rb +11 -2
  145. data/plugins/provisioners/shell/provisioner.rb +15 -3
  146. data/scripts/website_push_docs.sh +12 -0
  147. data/scripts/website_push_www.sh +12 -0
  148. data/templates/commands/init/Vagrantfile.erb +5 -2
  149. data/templates/commands/ssh_config/config.erb +4 -0
  150. data/templates/guests/coreos/etcd.service.erb +10 -0
  151. data/templates/guests/fedora/network_static.erb +2 -3
  152. data/templates/guests/openbsd/network_dhcp.erb +1 -0
  153. data/templates/guests/openbsd/network_static.erb +1 -0
  154. data/templates/guests/suse/network_dhcp.erb +6 -0
  155. data/templates/guests/suse/network_static.erb +10 -0
  156. data/templates/locales/en.yml +123 -13
  157. data/templates/nfs/exports.erb +4 -4
  158. data/templates/nfs/exports_freebsd.erb +4 -4
  159. data/templates/nfs/exports_linux.erb +5 -3
  160. data/templates/provisioners/chef_client/client.erb +9 -0
  161. data/templates/provisioners/chef_solo/solo.erb +19 -1
  162. data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +1 -2
  163. data/test/unit/vagrant/cli_test.rb +1 -0
  164. data/test/unit/vagrant/config/v2/root_test.rb +18 -0
  165. data/test/unit/vagrant/environment_test.rb +25 -0
  166. data/test/unit/vagrant/util/downloader_test.rb +4 -4
  167. data/test/unit/vagrant_test.rb +18 -0
  168. data/website/docs/.buildpacks +2 -0
  169. data/website/docs/Gemfile +13 -0
  170. data/website/docs/Gemfile.lock +141 -0
  171. data/website/docs/Procfile +1 -0
  172. data/website/docs/README.md +26 -0
  173. data/website/docs/config.rb +78 -0
  174. data/website/docs/config.ru +44 -0
  175. data/website/docs/helpers/sidebar_helpers.rb +19 -0
  176. data/website/docs/lib/redirect_to_latest.rb +25 -0
  177. data/website/docs/lib/redirect_v1_docs.rb +26 -0
  178. data/website/docs/source/404.html.erb +7 -0
  179. data/website/docs/source/images/bullet_1.png +0 -0
  180. data/website/docs/source/images/bullet_2.png +0 -0
  181. data/website/docs/source/images/bullet_3.png +0 -0
  182. data/website/docs/source/images/customers.png +0 -0
  183. data/website/docs/source/images/customers_small.png +0 -0
  184. data/website/docs/source/images/footer_background.png +0 -0
  185. data/website/docs/source/images/footer_hashi_logo.png +0 -0
  186. data/website/docs/source/images/footer_vagrant_logo.png +0 -0
  187. data/website/docs/source/images/get_started_background.png +0 -0
  188. data/website/docs/source/images/icon_caution.png +0 -0
  189. data/website/docs/source/images/logo_docs.png +0 -0
  190. data/website/docs/source/images/logo_docs_small.png +0 -0
  191. data/website/docs/source/images/logo_small.png +0 -0
  192. data/website/docs/source/images/logo_vagrant.png +0 -0
  193. data/website/docs/source/images/open_close.png +0 -0
  194. data/website/docs/source/images/search_icon.png +0 -0
  195. data/website/docs/source/images/sidebar_background_docs.png +0 -0
  196. data/website/docs/source/images/sidebar_background_inner.png +0 -0
  197. data/website/docs/source/images/steps_background.png +0 -0
  198. data/website/docs/source/images/vagrant_header_background.png +0 -0
  199. data/website/docs/source/index.html.erb +0 -0
  200. data/website/docs/source/javascripts/backstretch.js +4 -0
  201. data/website/docs/source/javascripts/bootstrap.min.js +7 -0
  202. data/website/docs/source/javascripts/fittext.js +43 -0
  203. data/website/docs/source/javascripts/grid-overlay.js +161 -0
  204. data/website/docs/source/javascripts/jquery.js +2 -0
  205. data/website/docs/source/javascripts/less-1.3.0.min.js +9 -0
  206. data/website/docs/source/javascripts/modernizr.js +1384 -0
  207. data/website/docs/source/javascripts/vagrantup.js +15 -0
  208. data/website/docs/source/layouts/layout.erb +266 -0
  209. data/website/docs/source/stylesheets/_base.less +317 -0
  210. data/website/docs/source/stylesheets/_components.less +74 -0
  211. data/website/docs/source/stylesheets/_footer.less +101 -0
  212. data/website/docs/source/stylesheets/_media-queries.less +452 -0
  213. data/website/docs/source/stylesheets/_mixins.less +174 -0
  214. data/website/docs/source/stylesheets/_nav.less +71 -0
  215. data/website/docs/source/stylesheets/_pages.less +276 -0
  216. data/website/docs/source/stylesheets/_sidebar.less +136 -0
  217. data/website/docs/source/stylesheets/_type.less +36 -0
  218. data/website/docs/source/stylesheets/_variables.less +39 -0
  219. data/website/docs/source/stylesheets/bootstrap.css +5946 -0
  220. data/website/docs/source/stylesheets/vagrantup.less +16 -0
  221. data/website/docs/source/v2/boxes.html.md +78 -0
  222. data/website/docs/source/v2/boxes/format.html.md +32 -0
  223. data/website/docs/source/v2/cli/box.html.md +62 -0
  224. data/website/docs/source/v2/cli/destroy.html.md +20 -0
  225. data/website/docs/source/v2/cli/halt.html.md +19 -0
  226. data/website/docs/source/v2/cli/index.html.md +24 -0
  227. data/website/docs/source/v2/cli/init.html.md +18 -0
  228. data/website/docs/source/v2/cli/package.html.md +43 -0
  229. data/website/docs/source/v2/cli/plugin.html.md +56 -0
  230. data/website/docs/source/v2/cli/provision.html.md +24 -0
  231. data/website/docs/source/v2/cli/reload.html.md +27 -0
  232. data/website/docs/source/v2/cli/resume.html.md +11 -0
  233. data/website/docs/source/v2/cli/ssh.html.md +24 -0
  234. data/website/docs/source/v2/cli/ssh_config.html.md +16 -0
  235. data/website/docs/source/v2/cli/status.html.md +14 -0
  236. data/website/docs/source/v2/cli/suspend.html.md +19 -0
  237. data/website/docs/source/v2/cli/up.html.md +34 -0
  238. data/website/docs/source/v2/debugging.html.md +42 -0
  239. data/website/docs/source/v2/getting-started/boxes.html.md +56 -0
  240. data/website/docs/source/v2/getting-started/index.html.md +43 -0
  241. data/website/docs/source/v2/getting-started/networking.html.md +45 -0
  242. data/website/docs/source/v2/getting-started/project_setup.html.md +38 -0
  243. data/website/docs/source/v2/getting-started/providers.html.md +37 -0
  244. data/website/docs/source/v2/getting-started/provisioning.html.md +75 -0
  245. data/website/docs/source/v2/getting-started/rebuild.html.md +17 -0
  246. data/website/docs/source/v2/getting-started/synced_folders.html.md +42 -0
  247. data/website/docs/source/v2/getting-started/teardown.html.md +41 -0
  248. data/website/docs/source/v2/getting-started/up.html.md +35 -0
  249. data/website/docs/source/v2/index.html.md +10 -0
  250. data/website/docs/source/v2/installation/backwards-compatibility.html.md +35 -0
  251. data/website/docs/source/v2/installation/index.html.md +28 -0
  252. data/website/docs/source/v2/installation/uninstallation.html.md +39 -0
  253. data/website/docs/source/v2/installation/upgrading-from-1-0.html.md +26 -0
  254. data/website/docs/source/v2/installation/upgrading.html.md +20 -0
  255. data/website/docs/source/v2/multi-machine/index.html.md +105 -0
  256. data/website/docs/source/v2/networking/basic_usage.html.md +43 -0
  257. data/website/docs/source/v2/networking/forwarded_ports.html.md +57 -0
  258. data/website/docs/source/v2/networking/index.html.md +40 -0
  259. data/website/docs/source/v2/networking/private_network.html.md +48 -0
  260. data/website/docs/source/v2/networking/public_network.html.md +53 -0
  261. data/website/docs/source/v2/plugins/commands.html.md +116 -0
  262. data/website/docs/source/v2/plugins/configuration.html.md +166 -0
  263. data/website/docs/source/v2/plugins/development-basics.html.md +139 -0
  264. data/website/docs/source/v2/plugins/guest-capabilities.html.md +100 -0
  265. data/website/docs/source/v2/plugins/guests.html.md +99 -0
  266. data/website/docs/source/v2/plugins/hosts.html.md +46 -0
  267. data/website/docs/source/v2/plugins/index.html.md +21 -0
  268. data/website/docs/source/v2/plugins/packaging.html.md +102 -0
  269. data/website/docs/source/v2/plugins/providers.html.md +234 -0
  270. data/website/docs/source/v2/plugins/provisioners.html.md +64 -0
  271. data/website/docs/source/v2/plugins/usage.html.md +58 -0
  272. data/website/docs/source/v2/providers/basic_usage.html.md +67 -0
  273. data/website/docs/source/v2/providers/configuration.html.md +89 -0
  274. data/website/docs/source/v2/providers/custom.html.md +9 -0
  275. data/website/docs/source/v2/providers/default.html.md +22 -0
  276. data/website/docs/source/v2/providers/index.html.md +23 -0
  277. data/website/docs/source/v2/providers/installation.html.md +11 -0
  278. data/website/docs/source/v2/provisioning/ansible.html.md +144 -0
  279. data/website/docs/source/v2/provisioning/basic_usage.html.md +67 -0
  280. data/website/docs/source/v2/provisioning/chef_client.html.md +109 -0
  281. data/website/docs/source/v2/provisioning/chef_solo.html.md +156 -0
  282. data/website/docs/source/v2/provisioning/index.html.md +28 -0
  283. data/website/docs/source/v2/provisioning/puppet_agent.html.md +70 -0
  284. data/website/docs/source/v2/provisioning/puppet_apply.html.md +114 -0
  285. data/website/docs/source/v2/provisioning/shell.html.md +88 -0
  286. data/website/docs/source/v2/synced-folders/basic_usage.html.md +53 -0
  287. data/website/docs/source/v2/synced-folders/index.html.md +17 -0
  288. data/website/docs/source/v2/synced-folders/nfs.html.md +53 -0
  289. data/website/docs/source/v2/vagrantfile/index.html.md +75 -0
  290. data/website/docs/source/v2/vagrantfile/machine_settings.html.md +84 -0
  291. data/website/docs/source/v2/vagrantfile/ssh_settings.html.md +61 -0
  292. data/website/docs/source/v2/vagrantfile/vagrant_settings.html.md +19 -0
  293. data/website/docs/source/v2/vagrantfile/version.html.md +64 -0
  294. data/website/docs/source/v2/virtualbox/boxes.html.md +71 -0
  295. data/website/docs/source/v2/virtualbox/configuration.html.md +63 -0
  296. data/website/docs/source/v2/virtualbox/index.html.md +21 -0
  297. data/website/docs/source/v2/virtualbox/usage.html.md +12 -0
  298. data/website/docs/source/v2/vmware/boxes.html.md +107 -0
  299. data/website/docs/source/v2/vmware/configuration.html.md +91 -0
  300. data/website/docs/source/v2/vmware/index.html.md +30 -0
  301. data/website/docs/source/v2/vmware/installation.html.md +40 -0
  302. data/website/docs/source/v2/vmware/known-issues.html.md +21 -0
  303. data/website/docs/source/v2/vmware/usage.html.md +27 -0
  304. data/website/docs/source/v2/why-vagrant/index.html.md +46 -0
  305. data/website/www/.buildpacks +2 -0
  306. data/website/www/Gemfile +15 -0
  307. data/website/www/Gemfile.lock +123 -0
  308. data/website/www/Procfile +1 -0
  309. data/website/www/README.md +26 -0
  310. data/website/www/config.rb +88 -0
  311. data/website/www/config.ru +39 -0
  312. data/website/www/helpers/sidebar_helpers.rb +12 -0
  313. data/website/www/lib/legacy_redirect.rb +32 -0
  314. data/website/www/source/404.html.erb +11 -0
  315. data/website/www/source/_sidebar_about.erb +5 -0
  316. data/website/www/source/_sidebar_blog.erb +11 -0
  317. data/website/www/source/_sidebar_support.html.erb +6 -0
  318. data/website/www/source/about.html.markdown +16 -0
  319. data/website/www/source/blog.html.erb +34 -0
  320. data/website/www/source/blog/2013-09-16-test.html.markdown +26 -0
  321. data/website/www/source/blog_feed.xml.builder +23 -0
  322. data/website/www/source/images/bullet_1.png +0 -0
  323. data/website/www/source/images/bullet_2.png +0 -0
  324. data/website/www/source/images/bullet_3.png +0 -0
  325. data/website/www/source/images/customers.png +0 -0
  326. data/website/www/source/images/customers_small.png +0 -0
  327. data/website/www/source/images/footer_background.png +0 -0
  328. data/website/www/source/images/footer_hashi_logo.png +0 -0
  329. data/website/www/source/images/footer_vagrant_logo.png +0 -0
  330. data/website/www/source/images/get_started_background.png +0 -0
  331. data/website/www/source/images/icon_caution.png +0 -0
  332. data/website/www/source/images/logo_docs.png +0 -0
  333. data/website/www/source/images/logo_docs_small.png +0 -0
  334. data/website/www/source/images/logo_small.png +0 -0
  335. data/website/www/source/images/logo_vagrant.png +0 -0
  336. data/website/www/source/images/open_close.png +0 -0
  337. data/website/www/source/images/search_icon.png +0 -0
  338. data/website/www/source/images/sidebar_background_docs.png +0 -0
  339. data/website/www/source/images/sidebar_background_inner.png +0 -0
  340. data/website/www/source/images/sponsors/fastly.png +0 -0
  341. data/website/www/source/images/sponsors/kiip.png +0 -0
  342. data/website/www/source/images/sponsors/softlayer.jpg +0 -0
  343. data/website/www/source/images/sponsors/typekit.png +0 -0
  344. data/website/www/source/images/steps_background.png +0 -0
  345. data/website/www/source/images/vagrant_header_background.png +0 -0
  346. data/website/www/source/images/vagrant_vmware_background.png +0 -0
  347. data/website/www/source/index.html.erb +109 -0
  348. data/website/www/source/javascripts/backstretch.js +4 -0
  349. data/website/www/source/javascripts/bootstrap.min.js +7 -0
  350. data/website/www/source/javascripts/fittext.js +43 -0
  351. data/website/www/source/javascripts/grid-overlay.js +161 -0
  352. data/website/www/source/javascripts/jquery.js +2 -0
  353. data/website/www/source/javascripts/less-1.3.0.min.js +9 -0
  354. data/website/www/source/javascripts/modernizr.js +1384 -0
  355. data/website/www/source/javascripts/vagrantup.js +58 -0
  356. data/website/www/source/layouts/blog_post.erb +42 -0
  357. data/website/www/source/layouts/inner.erb +34 -0
  358. data/website/www/source/layouts/layout.erb +107 -0
  359. data/website/www/source/sponsors.html.erb +23 -0
  360. data/website/www/source/stylesheets/_base.less +326 -0
  361. data/website/www/source/stylesheets/_components.less +74 -0
  362. data/website/www/source/stylesheets/_footer.less +101 -0
  363. data/website/www/source/stylesheets/_media-queries.less +549 -0
  364. data/website/www/source/stylesheets/_mixins.less +175 -0
  365. data/website/www/source/stylesheets/_modules.less +37 -0
  366. data/website/www/source/stylesheets/_nav.less +74 -0
  367. data/website/www/source/stylesheets/_pages.less +467 -0
  368. data/website/www/source/stylesheets/_sidebar.less +137 -0
  369. data/website/www/source/stylesheets/_type.less +36 -0
  370. data/website/www/source/stylesheets/_variables.less +39 -0
  371. data/website/www/source/stylesheets/bootstrap.css +5946 -0
  372. data/website/www/source/stylesheets/vagrantup.less +17 -0
  373. data/website/www/source/support.html.erb +25 -0
  374. data/website/www/source/support/community.html.erb +28 -0
  375. data/website/www/source/support/professional.html.erb +17 -0
  376. data/website/www/source/vmware/eula.html.md +21 -0
  377. data/website/www/source/vmware/index.html.erb +185 -0
  378. data/website/www/source/vmware/privacy-policy.html.md +71 -0
  379. data/website/www/source/vmware/terms-of-service.html.md +50 -0
  380. metadata +436 -186
@@ -0,0 +1,57 @@
1
+ ---
2
+ page_title: "Forwarded Ports - Networking"
3
+ sidebar_current: "networking-fp"
4
+ ---
5
+
6
+ # Forwarded Ports
7
+
8
+ **Network identifier: `forwarded_port`**
9
+
10
+ Forwarded ports allow you to access a port on your host machine and have
11
+ all data forwarded to a port on the guest machine, over either TCP or UDP.
12
+
13
+ For example: If the guest machine is running a web server listening on port 80,
14
+ you can make a forwarded port mapping to port 8080 (or anything) on your host
15
+ machine. You can then open your browser to `localhost:8080` and browse the
16
+ website, while all actual network data is being sent to the guest.
17
+
18
+ ## Defining a Forwarded Port
19
+
20
+ The forwarded port configuration expects two parameters, the port on the
21
+ guest and the port on the host. Example:
22
+
23
+ ```ruby
24
+ Vagrant.configure("2") do |config|
25
+ config.vm.network "forwarded_port", guest: 80, host: 8080
26
+ end
27
+ ```
28
+
29
+ This will allow acessing port 80 on the guest via port 8080 on the host.
30
+
31
+ ## Port Collisions and Correction
32
+
33
+ It is common when running multiple Vagrant machines to unknowingly create
34
+ forwarded port definitions that collide with each other (two separate
35
+ Vagrant projects forwarded to port 8080, for example). Vagrant includes
36
+ built-in mechanism to detect this and correct it, automatically.
37
+
38
+ Port collision detection is always done. Vagrant will not allow you to
39
+ define a forwarded port where the port on the host appears to be accepting
40
+ traffic or connections.
41
+
42
+ Port collision auto-correction must be manually enabled for each forwarded
43
+ port, since it is often surprising when it occurs and can lead the Vagrant
44
+ user to think that the port wasn't properly forwarded. Enabling auto correct
45
+ is easy:
46
+
47
+ ```
48
+ Vagrant.configure("2") do |config|
49
+ config.vm.network "forwarded_port", guest: 80, host: 8080,
50
+ auto_correct: true
51
+ end
52
+ ```
53
+
54
+ The final `:auto_correct` parameter set to true tells Vagrant to auto
55
+ correct any collisions. During a `vagrant up` or `vagrant reload`, Vagrant
56
+ will output information about any collisions detections and auto corrections
57
+ made, so you can take notice and act accordingly.
@@ -0,0 +1,40 @@
1
+ ---
2
+ page_title: "Networking"
3
+ sidebar_current: "networking"
4
+ ---
5
+
6
+ # Networking
7
+
8
+ In order to access the Vagrant environment created, Vagrant exposes
9
+ some high-level networking options for things such as forwarded ports,
10
+ connecting to a public network, or creating a private network.
11
+
12
+ The high-level networking options are meant to define an abstraction that
13
+ works across multiple [providers](/v2/providers/index.html). This means that
14
+ you can take your Vagrantfile you used to spin up a VirtualBox machine and
15
+ you can reasonably expect that Vagrantfile to behave the same with something
16
+ like VMware.
17
+
18
+ You should first read the [basic usage](/v2/networking/basic_usage.html) page
19
+ and then continue by reading the documentation for a specific networking
20
+ primitive by following the navigation to the left.
21
+
22
+ ## Advanced Configuration
23
+
24
+ In some cases,
25
+ these options are _too_ high-level, and you may want to more finely tune
26
+ and configure the network interfaces of the underlying machine. Most
27
+ providers expose [provider-specific configuration](/v2/providers/configuration.html)
28
+ to do this, so please read the documentation for your specific provider
29
+ to see what options are available.
30
+
31
+ <div class="alert alert-info">
32
+ <p>
33
+ <strong>For beginners:</strong> It is strongly recommended you use
34
+ only the high-level networking options until you are comfortable
35
+ with the Vagrant workflow and have things working at a basic level.
36
+ Provider-specific network configuration can very quickly lock you out
37
+ of your guest machine if improperly done.
38
+ </p>
39
+ </div>
40
+
@@ -0,0 +1,48 @@
1
+ ---
2
+ page_title: "Private Networks - Networking"
3
+ sidebar_current: "networking-private"
4
+ ---
5
+
6
+ # Private Networks
7
+
8
+ **Network identifier: `private_network`**
9
+
10
+ Private networks allow you to access your guest machine by some address
11
+ that is not publicly accessible from the global internet. In general, this
12
+ means your machine gets an address in the [private address space](http://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces).
13
+
14
+ Multiple machines within the same private network (also usually with the
15
+ restriction that they're backed by the same [provider](/v2/providers/index.html))
16
+ can communicate with each other on private networks.
17
+
18
+ <div class="alert alert-info">
19
+ <p>
20
+ <strong>Guest operating system support.</strong> Private networks
21
+ generally require configuring the network adapters on the guest
22
+ machine. This process varies from OS to OS. Vagrant ships with
23
+ knowledge of how to configure networks on a variety of guest
24
+ operating systems, but it is possible if you're using a particularly
25
+ old or new operating system that private networks won't properly
26
+ configure.
27
+ </p>
28
+ </div>
29
+
30
+ ## Static IP
31
+
32
+ The easiest way to use a private network is to assign a static IP to it.
33
+ This let's you access the Vagrant managed machine using a static, known
34
+ IP. The Vagrantfile for a static IP looks like this:
35
+
36
+ ```ruby
37
+ Vagrant.configure("2") do |config|
38
+ config.vm.network "private_network", ip: "192.168.50.4"
39
+ end
40
+ ```
41
+
42
+ It is up to the users to make sure that the static IP doesn't collide
43
+ with any other machines on the same network.
44
+
45
+ While you can choose any IP you'd like, you _should_ use an IP from
46
+ the [reserved private address space](http://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces). These IPs are guaranteed to never be publicly routable,
47
+ and most routers actually block traffic from going to them from the
48
+ outside world.
@@ -0,0 +1,53 @@
1
+ ---
2
+ page_title: "Public Networks - Networking"
3
+ sidebar_current: "networking-public"
4
+ ---
5
+
6
+ # Public Networks
7
+
8
+ **Network identifier: `public_network`**
9
+
10
+ Public networks are less private than private networks, and the exact
11
+ meaning actually varies from [provider to provider](/v2/providers/index.html),
12
+ hence the ambiguous definition. The idea is that while
13
+ [private networks](/v2/networking/private_network.html) should never allow the
14
+ general public access to your machine, public networks can.
15
+
16
+ <div class="alert alert-info">
17
+ <p>
18
+ <strong>Confused?</strong> We kind of are, too. It is likely that
19
+ public networks will be replaced by <code>:bridged</code> in a
20
+ future release, since that is in general what should be done with
21
+ public networks, and providers that don't support bridging generally
22
+ don't have any other features that map to public networks either.
23
+ </p>
24
+ </div>
25
+
26
+ ## DHCP
27
+
28
+ The easiest way to use a public network is to allow the IP to be assigned
29
+ via DHCP. In this case, defining a public network is trivially easy:
30
+
31
+ ```ruby
32
+ Vagrant.configure("2") do |config|
33
+ config.vm.network "public_network"
34
+ end
35
+ ```
36
+
37
+ When DHCP is used, the IP can be determined by using `vagrant ssh` to
38
+ SSH into the machine and using the appropriate command line tool to find
39
+ the IP, such as `ifconfig`.
40
+
41
+ ## Default Network Interface
42
+
43
+ If more than one network interface is available on the host machine, Vagrant will
44
+ ask you to choose which interface the virtual machine should bridge to. A default
45
+ interface can be specified by adding a `:bridge` clause to the network definition.
46
+
47
+ ```ruby
48
+ config.vm.network "public_network", :bridge => 'en1: Wi-Fi (AirPort)'
49
+ ```
50
+
51
+ The string identifying the desired interface must exactly match the name of an
52
+ available interface. If it can't be found, Vagrant will ask you to pick
53
+ from a list of available network interfaces.
@@ -0,0 +1,116 @@
1
+ ---
2
+ page_title: "Command Plugins - Plugin Development"
3
+ sidebar_current: "plugins-commands"
4
+ ---
5
+
6
+ # Plugin Development: Commands
7
+
8
+ This page documents how to add new commands to Vagrant, invokable
9
+ via `vagrant YOUR-COMMAND`. Prior to reading this, you should be familiar
10
+ with the [plugin development basics](/v2/plugins/development-basics.html).
11
+
12
+ <div class="alert alert-warn">
13
+ <p>
14
+ <strong>Warning: Advanced Topic!</strong> Developing plugins is an
15
+ advanced topic that only experienced Vagrant users who are reasonably
16
+ comfortable with Ruby should approach.
17
+ </p>
18
+ </div>
19
+
20
+ ## Definition Component
21
+
22
+ Within the context of a plugin definition, new commands can be defined
23
+ like so:
24
+
25
+ ```ruby
26
+ command "foo" do
27
+ require_relative "command"
28
+ Command
29
+ end
30
+ ```
31
+
32
+ Commands are defined with the `command` method, which takes as an argument
33
+ the name of the command, in this case "foo." This means the command will be
34
+ invokable via `vagrant foo`. Then the block argument returns a class that
35
+ implements the `Vagrant.plugin(2, :command)` interface.
36
+
37
+ ## Implementation
38
+
39
+ Implementations of commands should subclass `Vagrant.plugin(2, :command)`,
40
+ which is a Vagrant method that will return the proper superclass for
41
+ a version 2 command. The implementation itself is quite simple, since the
42
+ class needs to only implement a single method: `execute`. Example:
43
+
44
+ ```ruby
45
+ class Command < Vagrant.plugin(2, :command)
46
+ def execute
47
+ puts "Hello!"
48
+ 0
49
+ end
50
+ end
51
+ ```
52
+
53
+ The `execute` method is called when the command is invoked, and it should
54
+ return the exit status (0 for success, anything else for error).
55
+
56
+ This is a command at its simplest form. Of course, the command superclass
57
+ gives you access to the Vagrant environment and provides some helpers to
58
+ do common tasks such as command line parsing.
59
+
60
+ ## Parsing Command-Line Options
61
+
62
+ The `parse_options` method is available which will parse the command line
63
+ for you. It takes an [OptionParser](http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html)
64
+ as an argument, and adds some common elements to it such as the `--help` flag,
65
+ automatically showing help if requested. View the API docs directly for more
66
+ information.
67
+
68
+ This is recommended over raw parsing/manipulation of command line flags.
69
+ The following is an example of parsing command line flags pulled directly
70
+ from the built-in Vagrant `destroy` command:
71
+
72
+ ```ruby
73
+ options = {}
74
+ options[:force] = false
75
+
76
+ opts = OptionParser.new do |o|
77
+ o.banner = "Usage: vagrant destroy [vm-name]"
78
+ o.separator ""
79
+
80
+ o.on("-f", "--force", "Destroy without confirmation.") do |f|
81
+ options[:force] = f
82
+ end
83
+ end
84
+
85
+ # Parse the options
86
+ argv = parse_options(opts)
87
+ ```
88
+
89
+ ## Using Vagrant Machines
90
+
91
+ The `with_target_vms` method is a helper that helps you interact with
92
+ the machines that Vagrant manages in a standard Vagrant way. This method
93
+ automatically does the right thing in the case of multi-machine environments,
94
+ handling target machines on the command line (`vagrant foo my-vm`), etc.
95
+ If you need to do any manipulation of a Vagrant machine, including SSH
96
+ access, this helper should be used.
97
+
98
+ An example of using the helper, again pulled directly from the built-in
99
+ `destroy` command:
100
+
101
+ ```ruby
102
+ with_target_vms(argv, :reverse => true) do |machine|
103
+ machine.action(:destroy)
104
+ end
105
+ ```
106
+
107
+ In this case, it asks for the machines in reverse order and calls the
108
+ destroy action on each of them. If a user says `vagrant destroy foo`, then
109
+ the helper automatically only yields the `foo` machine. If no parameter
110
+ is given and it is a multi-machine environment, every machine in the environment
111
+ is yielded, and so on. It just does the right thing.
112
+
113
+ ## Using the Raw Vagrant Environment
114
+
115
+ The raw loaded `Vagrant::Environment` object is available with the
116
+ '@env' instance variable.
@@ -0,0 +1,166 @@
1
+ ---
2
+ page_title: "Custom Configuration - Plugin Development"
3
+ sidebar_current: "plugins-configuration"
4
+ ---
5
+
6
+ # Plugin Development: Configuration
7
+
8
+ This page documents how to add new configuration options to Vagrant,
9
+ settable with `config.YOURKEY` in Vagrantfiles. Prior to reading this, you should be familiar
10
+ with the [plugin development basics](/v2/plugins/development-basics.html).
11
+
12
+ <div class="alert alert-warn">
13
+ <p>
14
+ <strong>Warning: Advanced Topic!</strong> Developing plugins is an
15
+ advanced topic that only experienced Vagrant users who are reasonably
16
+ comfortable with Ruby should approach.
17
+ </p>
18
+ </div>
19
+
20
+ ## Definition Component
21
+
22
+ Within the context of a plugin definition, new configuration keys can be defined
23
+ like so:
24
+
25
+ ```ruby
26
+ config "foo" do
27
+ require_relative "config"
28
+ Config
29
+ end
30
+ ```
31
+
32
+ Configuration keys are defined with the `config` method, which takes as an
33
+ argument the name of the configuration variable as the argument. This
34
+ means that the configuration object will be accessible via `config.foo`
35
+ in Vagrantfiles. Then, the block argument returns a class that implements
36
+ the `Vagrant.plugin(2, :config)` interface.
37
+
38
+ ## Implementation
39
+
40
+ Implementations of configuration keys should subclass `Vagrant.plugin(2, :config)`,
41
+ which is a Vagrant method that will return the proper subclass for a version
42
+ 2 configuration section. The implementation is very simple, and acts mostly
43
+ as a plain Ruby object. Here is an example:
44
+
45
+ ```ruby
46
+ class Config < Vagrant.plugin(2, :config)
47
+ attr_accessor :widgets
48
+
49
+ def initialize
50
+ @widgets = UNSET_VALUE
51
+ end
52
+
53
+ def finalize!
54
+ @widgets = 0 if @widgets == UNSET_VALUE
55
+ end
56
+ end
57
+ ```
58
+
59
+ When using this configuration class, it looks like the following:
60
+
61
+ ```ruby
62
+ Vagrant.configure("2") do |config|
63
+ # ...
64
+
65
+ config.foo.widgets = 12
66
+ end
67
+ ```
68
+
69
+ Easy. The only odd thing is the `UNSET_VALUE` bits above. This is actually
70
+ so that Vagrant can properly automatically merge multiple configurations.
71
+ Merging is covered in the next section, and `UNSET_VALUE` will be explained
72
+ there.
73
+
74
+ ## Merging
75
+
76
+ Vagrant works by loading [multiple Vagrantfiles and merging them](/v2/vagrantfile/index.html#load-order).
77
+ This merge logic is built-in to configuration classes. When merging two
78
+ configuration objects, we'll call them "old" and "new", it'll by default
79
+ take all the instance variables defined on "new" that aren't `UNSET_VALUE`
80
+ and set them onto the merged result.
81
+
82
+ The reason `UNSET_VALUE` is used instead of Ruby's `nil` is because
83
+ it is possible that you want the default to be some value, and the user
84
+ actually wants to set the value to `nil`, and it is impossible for Vagrant
85
+ to automatically determine whether the user set the instance variable, or
86
+ if it was defaulted as nil.
87
+
88
+ This merge logic is what you want almost every time. Hence, in the example
89
+ above, `@widgets` is set to `UNSET_VALUE`. If we had two Vagrant configuration
90
+ objects in the same file, then Vagrant would properly merge the follows.
91
+ The example below shows this:
92
+
93
+ ```ruby
94
+ Vagrant.configure("2") do |config|
95
+ config.widgets = 1
96
+ end
97
+
98
+ Vagrant.configure("2") do |config|
99
+ # ... other stuff
100
+ end
101
+
102
+ Vagrant.configure("2") do |config|
103
+ config.widgets = 2
104
+ end
105
+ ```
106
+
107
+ If this were placed in a Vagrantfile, after merging, the value of widgets
108
+ would be "2".
109
+
110
+ The `finalize!` method is called only once ever on the final configuration
111
+ object in order to set defaults. If `finalize!` is called, that configuration
112
+ will never be merged again, it is final. This lets you detect any `UNSET_VALUE`
113
+ and set the proper default, as we do in the above example.
114
+
115
+ Of course, sometimes you want custom merge logic. Let's say we
116
+ wanted our widgets to be additive. We can override the `merge` method to
117
+ do this:
118
+
119
+ ```ruby
120
+ class Config < Vagrant.config("2", :config)
121
+ attr_accessor :widgets
122
+
123
+ def initialize
124
+ @widgets = 0
125
+ end
126
+
127
+ def merge(other)
128
+ super.tap do |result|
129
+ result.widgets = @widgets + other.widgets
130
+ end
131
+ end
132
+ end
133
+ ```
134
+
135
+ In this case, we didn't use `UNSET_VALUE` for widgets because we didn't
136
+ need that behavior. We default to 0 and always merge by summing the
137
+ two widgets. Now, if we ran the example above that had the 3 configuration
138
+ blocks, the final value of widgets would be "3".
139
+
140
+ ## Validation
141
+
142
+ Configuration classes are also responsible for validating their own
143
+ values. Vagrant will call the `validate` method to do this. An example
144
+ validation method is shown below:
145
+
146
+ ```ruby
147
+ class Config < Vagrant.plugin("2", :config)
148
+ # ...
149
+
150
+ def validate(machine)
151
+ if @widgets <= 5
152
+ return { "foo" => ["widgets must be greater than 5"] }
153
+ end
154
+
155
+ {}
156
+ end
157
+ end
158
+ ```
159
+
160
+ The validation method is given a `machine` object, since validation is
161
+ done for each machine that Vagrant is managing. This allows you to
162
+ conditionally validate some keys based on the state of the machine and so on.
163
+
164
+ The return value is a Ruby Hash object, where the key is a section name,
165
+ and the value is a list of error messages. These will be displayed by
166
+ Vagrant. If there are no errors, an empty hash must be returned.