vagrant-fixed-ssh 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (413) hide show
  1. data/.gitignore +46 -0
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +723 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +22 -0
  6. data/README.md +121 -0
  7. data/Rakefile +18 -0
  8. data/bin/vagrant +60 -0
  9. data/config/default.rb +30 -0
  10. data/contrib/README.md +12 -0
  11. data/contrib/emacs/vagrant.el +8 -0
  12. data/contrib/vim/vagrantfile.vim +9 -0
  13. data/keys/README.md +17 -0
  14. data/keys/vagrant +27 -0
  15. data/keys/vagrant.pub +1 -0
  16. data/lib/vagrant.rb +197 -0
  17. data/lib/vagrant/action.rb +63 -0
  18. data/lib/vagrant/action/box/destroy.rb +25 -0
  19. data/lib/vagrant/action/box/download.rb +84 -0
  20. data/lib/vagrant/action/box/package.rb +19 -0
  21. data/lib/vagrant/action/box/unpackage.rb +61 -0
  22. data/lib/vagrant/action/box/verify.rb +23 -0
  23. data/lib/vagrant/action/builder.rb +128 -0
  24. data/lib/vagrant/action/builtin.rb +171 -0
  25. data/lib/vagrant/action/env/set.rb +21 -0
  26. data/lib/vagrant/action/environment.rb +12 -0
  27. data/lib/vagrant/action/general/check_virtualbox.rb +28 -0
  28. data/lib/vagrant/action/general/package.rb +101 -0
  29. data/lib/vagrant/action/general/validate.rb +18 -0
  30. data/lib/vagrant/action/runner.rb +53 -0
  31. data/lib/vagrant/action/vm/boot.rb +53 -0
  32. data/lib/vagrant/action/vm/check_accessible.rb +23 -0
  33. data/lib/vagrant/action/vm/check_box.rb +33 -0
  34. data/lib/vagrant/action/vm/check_guest_additions.rb +38 -0
  35. data/lib/vagrant/action/vm/check_port_collisions.rb +89 -0
  36. data/lib/vagrant/action/vm/clean_machine_folder.rb +43 -0
  37. data/lib/vagrant/action/vm/clear_forwarded_ports.rb +18 -0
  38. data/lib/vagrant/action/vm/clear_network_interfaces.rb +31 -0
  39. data/lib/vagrant/action/vm/clear_shared_folders.rb +18 -0
  40. data/lib/vagrant/action/vm/customize.rb +36 -0
  41. data/lib/vagrant/action/vm/default_name.rb +22 -0
  42. data/lib/vagrant/action/vm/destroy.rb +19 -0
  43. data/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb +20 -0
  44. data/lib/vagrant/action/vm/discard_state.rb +22 -0
  45. data/lib/vagrant/action/vm/export.rb +57 -0
  46. data/lib/vagrant/action/vm/forward_ports.rb +92 -0
  47. data/lib/vagrant/action/vm/halt.rb +32 -0
  48. data/lib/vagrant/action/vm/host_name.rb +21 -0
  49. data/lib/vagrant/action/vm/import.rb +48 -0
  50. data/lib/vagrant/action/vm/match_mac_address.rb +21 -0
  51. data/lib/vagrant/action/vm/network.rb +403 -0
  52. data/lib/vagrant/action/vm/nfs.rb +196 -0
  53. data/lib/vagrant/action/vm/package.rb +23 -0
  54. data/lib/vagrant/action/vm/package_vagrantfile.rb +36 -0
  55. data/lib/vagrant/action/vm/provision.rb +61 -0
  56. data/lib/vagrant/action/vm/provisioner_cleanup.rb +26 -0
  57. data/lib/vagrant/action/vm/prune_nfs_exports.rb +20 -0
  58. data/lib/vagrant/action/vm/resume.rb +20 -0
  59. data/lib/vagrant/action/vm/sane_defaults.rb +78 -0
  60. data/lib/vagrant/action/vm/setup_package_files.rb +54 -0
  61. data/lib/vagrant/action/vm/share_folders.rb +114 -0
  62. data/lib/vagrant/action/vm/suspend.rb +20 -0
  63. data/lib/vagrant/action/warden.rb +92 -0
  64. data/lib/vagrant/box.rb +44 -0
  65. data/lib/vagrant/box_collection.rb +58 -0
  66. data/lib/vagrant/cli.rb +76 -0
  67. data/lib/vagrant/command.rb +24 -0
  68. data/lib/vagrant/command/base.rb +167 -0
  69. data/lib/vagrant/command/box.rb +58 -0
  70. data/lib/vagrant/command/box_add.rb +37 -0
  71. data/lib/vagrant/command/box_list.rb +28 -0
  72. data/lib/vagrant/command/box_remove.rb +27 -0
  73. data/lib/vagrant/command/box_repackage.rb +27 -0
  74. data/lib/vagrant/command/destroy.rb +64 -0
  75. data/lib/vagrant/command/gem.rb +39 -0
  76. data/lib/vagrant/command/halt.rb +39 -0
  77. data/lib/vagrant/command/init.rb +40 -0
  78. data/lib/vagrant/command/package.rb +75 -0
  79. data/lib/vagrant/command/provision.rb +40 -0
  80. data/lib/vagrant/command/reload.rb +39 -0
  81. data/lib/vagrant/command/resume.rb +33 -0
  82. data/lib/vagrant/command/ssh.rb +90 -0
  83. data/lib/vagrant/command/ssh_config.rb +51 -0
  84. data/lib/vagrant/command/start_mixins.rb +26 -0
  85. data/lib/vagrant/command/status.rb +36 -0
  86. data/lib/vagrant/command/suspend.rb +33 -0
  87. data/lib/vagrant/command/up.rb +40 -0
  88. data/lib/vagrant/communication.rb +7 -0
  89. data/lib/vagrant/communication/base.rb +56 -0
  90. data/lib/vagrant/communication/ssh.rb +230 -0
  91. data/lib/vagrant/config.rb +49 -0
  92. data/lib/vagrant/config/base.rb +82 -0
  93. data/lib/vagrant/config/container.rb +37 -0
  94. data/lib/vagrant/config/error_recorder.rb +19 -0
  95. data/lib/vagrant/config/loader.rb +127 -0
  96. data/lib/vagrant/config/nfs.rb +8 -0
  97. data/lib/vagrant/config/package.rb +7 -0
  98. data/lib/vagrant/config/ssh.rb +27 -0
  99. data/lib/vagrant/config/top.rb +72 -0
  100. data/lib/vagrant/config/vagrant.rb +14 -0
  101. data/lib/vagrant/config/vm.rb +168 -0
  102. data/lib/vagrant/config/vm/provisioner.rb +52 -0
  103. data/lib/vagrant/config/vm/sub_vm.rb +17 -0
  104. data/lib/vagrant/data_store.rb +92 -0
  105. data/lib/vagrant/downloaders.rb +7 -0
  106. data/lib/vagrant/downloaders/base.rb +25 -0
  107. data/lib/vagrant/downloaders/file.rb +22 -0
  108. data/lib/vagrant/downloaders/http.rb +97 -0
  109. data/lib/vagrant/driver.rb +8 -0
  110. data/lib/vagrant/driver/virtualbox.rb +134 -0
  111. data/lib/vagrant/driver/virtualbox_4_0.rb +459 -0
  112. data/lib/vagrant/driver/virtualbox_4_1.rb +459 -0
  113. data/lib/vagrant/driver/virtualbox_4_2.rb +606 -0
  114. data/lib/vagrant/driver/virtualbox_base.rb +326 -0
  115. data/lib/vagrant/environment.rb +522 -0
  116. data/lib/vagrant/errors.rb +445 -0
  117. data/lib/vagrant/guest.rb +18 -0
  118. data/lib/vagrant/guest/arch.rb +56 -0
  119. data/lib/vagrant/guest/base.rb +99 -0
  120. data/lib/vagrant/guest/debian.rb +64 -0
  121. data/lib/vagrant/guest/fedora.rb +66 -0
  122. data/lib/vagrant/guest/freebsd.rb +86 -0
  123. data/lib/vagrant/guest/gentoo.rb +46 -0
  124. data/lib/vagrant/guest/linux.rb +118 -0
  125. data/lib/vagrant/guest/linux/config.rb +19 -0
  126. data/lib/vagrant/guest/linux/error.rb +9 -0
  127. data/lib/vagrant/guest/openbsd.rb +20 -0
  128. data/lib/vagrant/guest/redhat.rb +67 -0
  129. data/lib/vagrant/guest/solaris.rb +118 -0
  130. data/lib/vagrant/guest/suse.rb +17 -0
  131. data/lib/vagrant/guest/ubuntu.rb +23 -0
  132. data/lib/vagrant/hosts.rb +37 -0
  133. data/lib/vagrant/hosts/arch.rb +55 -0
  134. data/lib/vagrant/hosts/base.rb +66 -0
  135. data/lib/vagrant/hosts/bsd.rb +97 -0
  136. data/lib/vagrant/hosts/fedora.rb +47 -0
  137. data/lib/vagrant/hosts/freebsd.rb +41 -0
  138. data/lib/vagrant/hosts/gentoo.rb +20 -0
  139. data/lib/vagrant/hosts/linux.rb +94 -0
  140. data/lib/vagrant/hosts/opensuse.rb +30 -0
  141. data/lib/vagrant/hosts/windows.rb +16 -0
  142. data/lib/vagrant/plugin.rb +81 -0
  143. data/lib/vagrant/provisioners.rb +12 -0
  144. data/lib/vagrant/provisioners/base.rb +44 -0
  145. data/lib/vagrant/provisioners/chef.rb +168 -0
  146. data/lib/vagrant/provisioners/chef_client.rb +132 -0
  147. data/lib/vagrant/provisioners/chef_solo.rb +234 -0
  148. data/lib/vagrant/provisioners/puppet.rb +176 -0
  149. data/lib/vagrant/provisioners/puppet_server.rb +78 -0
  150. data/lib/vagrant/provisioners/shell.rb +103 -0
  151. data/lib/vagrant/registry.rb +52 -0
  152. data/lib/vagrant/ssh.rb +126 -0
  153. data/lib/vagrant/test_helpers.rb +154 -0
  154. data/lib/vagrant/ui.rb +168 -0
  155. data/lib/vagrant/util.rb +12 -0
  156. data/lib/vagrant/util/ansi_escape_code_remover.rb +34 -0
  157. data/lib/vagrant/util/busy.rb +59 -0
  158. data/lib/vagrant/util/counter.rb +24 -0
  159. data/lib/vagrant/util/file_checksum.rb +38 -0
  160. data/lib/vagrant/util/file_mode.rb +12 -0
  161. data/lib/vagrant/util/hash_with_indifferent_access.rb +63 -0
  162. data/lib/vagrant/util/is_port_open.rb +38 -0
  163. data/lib/vagrant/util/line_ending_helpers.rb +14 -0
  164. data/lib/vagrant/util/network_ip.rb +28 -0
  165. data/lib/vagrant/util/platform.rb +68 -0
  166. data/lib/vagrant/util/retryable.rb +25 -0
  167. data/lib/vagrant/util/safe_exec.rb +36 -0
  168. data/lib/vagrant/util/safe_puts.rb +31 -0
  169. data/lib/vagrant/util/stacked_proc_runner.rb +35 -0
  170. data/lib/vagrant/util/subprocess.rb +247 -0
  171. data/lib/vagrant/util/template_renderer.rb +83 -0
  172. data/lib/vagrant/version.rb +6 -0
  173. data/lib/vagrant/vm.rb +195 -0
  174. data/tasks/acceptance.rake +113 -0
  175. data/tasks/bundler.rake +3 -0
  176. data/tasks/test.rake +20 -0
  177. data/templates/commands/init/Vagrantfile.erb +99 -0
  178. data/templates/commands/ssh_config/config.erb +15 -0
  179. data/templates/config/validation_failed.erb +7 -0
  180. data/templates/guests/arch/network_dhcp.erb +7 -0
  181. data/templates/guests/arch/network_static.erb +7 -0
  182. data/templates/guests/debian/network_dhcp.erb +6 -0
  183. data/templates/guests/debian/network_static.erb +7 -0
  184. data/templates/guests/fedora/network_dhcp.erb +6 -0
  185. data/templates/guests/fedora/network_static.erb +13 -0
  186. data/templates/guests/freebsd/network_dhcp.erb +3 -0
  187. data/templates/guests/freebsd/network_static.erb +3 -0
  188. data/templates/guests/gentoo/network_dhcp.erb +4 -0
  189. data/templates/guests/gentoo/network_static.erb +4 -0
  190. data/templates/guests/redhat/network_dhcp.erb +6 -0
  191. data/templates/guests/redhat/network_static.erb +7 -0
  192. data/templates/locales/en.yml +759 -0
  193. data/templates/nfs/exports.erb +5 -0
  194. data/templates/nfs/exports_freebsd.erb +5 -0
  195. data/templates/nfs/exports_linux.erb +5 -0
  196. data/templates/package_Vagrantfile.erb +11 -0
  197. data/templates/provisioners/chef_client/client.erb +32 -0
  198. data/templates/provisioners/chef_solo/solo.erb +25 -0
  199. data/test/acceptance/base.rb +48 -0
  200. data/test/acceptance/box_test.rb +99 -0
  201. data/test/acceptance/destroy_test.rb +37 -0
  202. data/test/acceptance/halt_test.rb +72 -0
  203. data/test/acceptance/init_test.rb +33 -0
  204. data/test/acceptance/networking/host_only_test.rb +37 -0
  205. data/test/acceptance/networking/port_forward_test.rb +125 -0
  206. data/test/acceptance/package_test.rb +46 -0
  207. data/test/acceptance/provisioning/basic_test.rb +61 -0
  208. data/test/acceptance/provisioning/chef_solo_test.rb +37 -0
  209. data/test/acceptance/provisioning/shell_test.rb +53 -0
  210. data/test/acceptance/resume_test.rb +17 -0
  211. data/test/acceptance/shared_folders_test.rb +84 -0
  212. data/test/acceptance/skeletons/chef_solo_basic/README.md +3 -0
  213. data/test/acceptance/skeletons/chef_solo_basic/cookbooks/basic/recipes/default.rb +5 -0
  214. data/test/acceptance/skeletons/chef_solo_json/README.md +3 -0
  215. data/test/acceptance/skeletons/chef_solo_json/cookbooks/basic/recipes/default.rb +6 -0
  216. data/test/acceptance/skeletons/provisioner_multi/README.md +3 -0
  217. data/test/acceptance/skeletons/provisioner_multi/cookbooks/basic/recipes/default.rb +5 -0
  218. data/test/acceptance/ssh_test.rb +46 -0
  219. data/test/acceptance/support/config.rb +42 -0
  220. data/test/acceptance/support/isolated_environment.rb +117 -0
  221. data/test/acceptance/support/matchers/have_color.rb +9 -0
  222. data/test/acceptance/support/matchers/match_output.rb +14 -0
  223. data/test/acceptance/support/matchers/succeed.rb +14 -0
  224. data/test/acceptance/support/network_tests.rb +29 -0
  225. data/test/acceptance/support/output.rb +95 -0
  226. data/test/acceptance/support/shared/base_context.rb +72 -0
  227. data/test/acceptance/support/shared/command_examples.rb +33 -0
  228. data/test/acceptance/support/virtualbox.rb +36 -0
  229. data/test/acceptance/suspend_test.rb +56 -0
  230. data/test/acceptance/up_basic_test.rb +33 -0
  231. data/test/acceptance/up_with_box_url.rb +40 -0
  232. data/test/acceptance/vagrant_test.rb +47 -0
  233. data/test/acceptance/version_test.rb +15 -0
  234. data/test/buildbot/README.md +72 -0
  235. data/test/buildbot/buildbot_config/__init__.py +0 -0
  236. data/test/buildbot/buildbot_config/config/__init__.py +0 -0
  237. data/test/buildbot/buildbot_config/config/loader.py +24 -0
  238. data/test/buildbot/buildbot_config/config/master.py +24 -0
  239. data/test/buildbot/buildbot_config/config/slave.py +22 -0
  240. data/test/buildbot/buildbot_config/master/__init__.py +6 -0
  241. data/test/buildbot/buildbot_config/master/builders.py +78 -0
  242. data/test/buildbot/buildbot_config/master/buildsteps.py +100 -0
  243. data/test/buildbot/buildbot_config/master/change_sources.py +8 -0
  244. data/test/buildbot/buildbot_config/master/schedulers.py +32 -0
  245. data/test/buildbot/buildbot_config/master/slaves.py +60 -0
  246. data/test/buildbot/buildbot_config/master/status.py +52 -0
  247. data/test/buildbot/master/Makefile.sample +28 -0
  248. data/test/buildbot/master/buildbot.tac +36 -0
  249. data/test/buildbot/master/master.cfg +67 -0
  250. data/test/buildbot/master/public_html/bg_gradient.jpg +0 -0
  251. data/test/buildbot/master/public_html/default.css +545 -0
  252. data/test/buildbot/master/public_html/favicon.ico +0 -0
  253. data/test/buildbot/master/public_html/robots.txt +10 -0
  254. data/test/buildbot/master/public_html/static/css/bootstrap-1.4.0.min.css +356 -0
  255. data/test/buildbot/master/public_html/static/css/prettify.css +97 -0
  256. data/test/buildbot/master/public_html/static/css/syntax.css +60 -0
  257. data/test/buildbot/master/public_html/static/css/vagrant.base.css +205 -0
  258. data/test/buildbot/master/public_html/static/images/base_box_mac.jpg +0 -0
  259. data/test/buildbot/master/public_html/static/images/getting-started/success.jpg +0 -0
  260. data/test/buildbot/master/public_html/static/images/icons/error.png +0 -0
  261. data/test/buildbot/master/public_html/static/images/vagrant_chilling.png +0 -0
  262. data/test/buildbot/master/public_html/static/images/vagrant_holding.png +0 -0
  263. data/test/buildbot/master/public_html/static/images/vagrant_looking.png +0 -0
  264. data/test/buildbot/master/public_html/static/images/windows/alter_path.jpg +0 -0
  265. data/test/buildbot/master/public_html/static/images/windows/edit_path.jpg +0 -0
  266. data/test/buildbot/master/public_html/static/images/windows/environment_variables_button.jpg +0 -0
  267. data/test/buildbot/master/public_html/static/images/windows/port_and_ppk_path.jpg +0 -0
  268. data/test/buildbot/master/public_html/static/images/windows/ppk_selection.jpg +0 -0
  269. data/test/buildbot/master/public_html/static/images/windows/putty_first_screen.jpg +0 -0
  270. data/test/buildbot/master/public_html/static/images/windows/save_result.jpg +0 -0
  271. data/test/buildbot/master/public_html/static/images/windows/vbox_manage_default_location.jpg +0 -0
  272. data/test/buildbot/master/public_html/static/js/bootstrap-tabs.js +80 -0
  273. data/test/buildbot/master/public_html/static/js/jquery-1.7.min.js +4 -0
  274. data/test/buildbot/master/templates/authfail.html +9 -0
  275. data/test/buildbot/master/templates/build.html +205 -0
  276. data/test/buildbot/master/templates/builder.html +118 -0
  277. data/test/buildbot/master/templates/builders.html +33 -0
  278. data/test/buildbot/master/templates/buildslave.html +72 -0
  279. data/test/buildbot/master/templates/buildslaves.html +70 -0
  280. data/test/buildbot/master/templates/change.html +15 -0
  281. data/test/buildbot/master/templates/layouts/base.html +58 -0
  282. data/test/buildbot/master/templates/macros/box.html +37 -0
  283. data/test/buildbot/master/templates/macros/build_line.html +50 -0
  284. data/test/buildbot/master/templates/macros/change.html +81 -0
  285. data/test/buildbot/master/templates/macros/forms.html +300 -0
  286. data/test/buildbot/master/templates/root.html +42 -0
  287. data/test/buildbot/master/templates/waterfall.html +53 -0
  288. data/test/buildbot/requirements.txt +4 -0
  289. data/test/buildbot/scripts/deploy.sh +38 -0
  290. data/test/buildbot/scripts/setup.sh +107 -0
  291. data/test/buildbot/slave/buildbot.tac +43 -0
  292. data/test/buildbot/slave/info/admin +1 -0
  293. data/test/buildbot/slave/info/host +1 -0
  294. data/test/buildbot/tests/__init__.py +0 -0
  295. data/test/buildbot/tests/master/__init__.py +0 -0
  296. data/test/buildbot/tests/master/test_slaves.py +41 -0
  297. data/test/buildbot/vendor/choices-0.4.0.tar.gz +0 -0
  298. data/test/config/acceptance_boxes.yml +7 -0
  299. data/test/support/isolated_environment.rb +46 -0
  300. data/test/support/tempdir.rb +34 -0
  301. data/test/unit/base.rb +21 -0
  302. data/test/unit/support/isolated_environment.rb +47 -0
  303. data/test/unit/support/shared/base_context.rb +30 -0
  304. data/test/unit/vagrant/action/builder_test.rb +156 -0
  305. data/test/unit/vagrant/action/environment_test.rb +16 -0
  306. data/test/unit/vagrant/action/runner_test.rb +65 -0
  307. data/test/unit/vagrant/action/warden_test.rb +92 -0
  308. data/test/unit/vagrant/box_collection_test.rb +56 -0
  309. data/test/unit/vagrant/box_test.rb +34 -0
  310. data/test/unit/vagrant/command/base_test.rb +150 -0
  311. data/test/unit/vagrant/config/base_test.rb +48 -0
  312. data/test/unit/vagrant/config/loader_test.rb +79 -0
  313. data/test/unit/vagrant/config/ssh_test.rb +17 -0
  314. data/test/unit/vagrant/config/top_test.rb +69 -0
  315. data/test/unit/vagrant/config/vm_test.rb +71 -0
  316. data/test/unit/vagrant/config_test.rb +27 -0
  317. data/test/unit/vagrant/data_store_test.rb +79 -0
  318. data/test/unit/vagrant/downloaders/base_test.rb +18 -0
  319. data/test/unit/vagrant/downloaders/file_test.rb +75 -0
  320. data/test/unit/vagrant/downloaders/http_test.rb +19 -0
  321. data/test/unit/vagrant/environment_test.rb +220 -0
  322. data/test/unit/vagrant/hosts_test.rb +36 -0
  323. data/test/unit/vagrant/registry_test.rb +74 -0
  324. data/test/unit/vagrant/util/ansi_escape_code_remover_test.rb +16 -0
  325. data/test/unit/vagrant/util/file_checksum_test.rb +23 -0
  326. data/test/unit/vagrant/util/hash_with_indifferent_access_test.rb +38 -0
  327. data/test/unit/vagrant/util/is_port_open_test.rb +53 -0
  328. data/test/unit/vagrant/util/line_endings_helper_test.rb +16 -0
  329. data/test/unit/vagrant/util/network_ip_test.rb +17 -0
  330. data/test/unit/vagrant/util/retryable_test.rb +106 -0
  331. data/test/unit/vagrant_test.rb +27 -0
  332. data/test/unit_legacy/locales/en.yml +8 -0
  333. data/test/unit_legacy/test_helper.rb +32 -0
  334. data/test/unit_legacy/vagrant/action/box/destroy_test.rb +18 -0
  335. data/test/unit_legacy/vagrant/action/box/download_test.rb +125 -0
  336. data/test/unit_legacy/vagrant/action/box/package_test.rb +25 -0
  337. data/test/unit_legacy/vagrant/action/box/unpackage_test.rb +84 -0
  338. data/test/unit_legacy/vagrant/action/box/verify_test.rb +30 -0
  339. data/test/unit_legacy/vagrant/action/env/set_test.rb +24 -0
  340. data/test/unit_legacy/vagrant/action/general/package_test.rb +268 -0
  341. data/test/unit_legacy/vagrant/action/general/validate_test.rb +31 -0
  342. data/test/unit_legacy/vagrant/action/vm/boot_test.rb +66 -0
  343. data/test/unit_legacy/vagrant/action/vm/check_accessible_test.rb +61 -0
  344. data/test/unit_legacy/vagrant/action/vm/check_box_test.rb +61 -0
  345. data/test/unit_legacy/vagrant/action/vm/check_guest_additions_test.rb +9 -0
  346. data/test/unit_legacy/vagrant/action/vm/clean_machine_folder_test.rb +84 -0
  347. data/test/unit_legacy/vagrant/action/vm/clear_forwarded_ports_test.rb +52 -0
  348. data/test/unit_legacy/vagrant/action/vm/clear_nfs_exports_test.rb +22 -0
  349. data/test/unit_legacy/vagrant/action/vm/clear_shared_folders_test.rb +40 -0
  350. data/test/unit_legacy/vagrant/action/vm/customize_test.rb +37 -0
  351. data/test/unit_legacy/vagrant/action/vm/destroy_test.rb +25 -0
  352. data/test/unit_legacy/vagrant/action/vm/destroy_unused_network_interfaces_test.rb +49 -0
  353. data/test/unit_legacy/vagrant/action/vm/discard_state_test.rb +45 -0
  354. data/test/unit_legacy/vagrant/action/vm/export_test.rb +107 -0
  355. data/test/unit_legacy/vagrant/action/vm/forward_ports_helpers_test.rb +77 -0
  356. data/test/unit_legacy/vagrant/action/vm/forward_ports_test.rb +197 -0
  357. data/test/unit_legacy/vagrant/action/vm/halt_test.rb +79 -0
  358. data/test/unit_legacy/vagrant/action/vm/host_name_test.rb +36 -0
  359. data/test/unit_legacy/vagrant/action/vm/import_test.rb +66 -0
  360. data/test/unit_legacy/vagrant/action/vm/match_mac_address_test.rb +40 -0
  361. data/test/unit_legacy/vagrant/action/vm/modify_test.rb +38 -0
  362. data/test/unit_legacy/vagrant/action/vm/network_test.rb +286 -0
  363. data/test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb +26 -0
  364. data/test/unit_legacy/vagrant/action/vm/nfs_test.rb +260 -0
  365. data/test/unit_legacy/vagrant/action/vm/package_test.rb +25 -0
  366. data/test/unit_legacy/vagrant/action/vm/package_vagrantfile_test.rb +46 -0
  367. data/test/unit_legacy/vagrant/action/vm/provision_test.rb +65 -0
  368. data/test/unit_legacy/vagrant/action/vm/provisioner_cleanup_test.rb +56 -0
  369. data/test/unit_legacy/vagrant/action/vm/resume_test.rb +35 -0
  370. data/test/unit_legacy/vagrant/action/vm/share_folders_test.rb +144 -0
  371. data/test/unit_legacy/vagrant/action/vm/suspend_test.rb +35 -0
  372. data/test/unit_legacy/vagrant/action_test.rb +89 -0
  373. data/test/unit_legacy/vagrant/box_collection_test.rb +45 -0
  374. data/test/unit_legacy/vagrant/box_test.rb +74 -0
  375. data/test/unit_legacy/vagrant/cli_test.rb +35 -0
  376. data/test/unit_legacy/vagrant/command/base_test.rb +23 -0
  377. data/test/unit_legacy/vagrant/command/group_base_test.rb +15 -0
  378. data/test/unit_legacy/vagrant/command/helpers_test.rb +88 -0
  379. data/test/unit_legacy/vagrant/command/init_test.rb +10 -0
  380. data/test/unit_legacy/vagrant/command/package_test.rb +27 -0
  381. data/test/unit_legacy/vagrant/config/base_test.rb +52 -0
  382. data/test/unit_legacy/vagrant/config/error_recorder_test.rb +18 -0
  383. data/test/unit_legacy/vagrant/config/ssh_test.rb +12 -0
  384. data/test/unit_legacy/vagrant/config/vagrant_test.rb +35 -0
  385. data/test/unit_legacy/vagrant/config/vm/provisioner_test.rb +92 -0
  386. data/test/unit_legacy/vagrant/config/vm_test.rb +47 -0
  387. data/test/unit_legacy/vagrant/config_test.rb +148 -0
  388. data/test/unit_legacy/vagrant/downloaders/http_test.rb +93 -0
  389. data/test/unit_legacy/vagrant/environment_test.rb +539 -0
  390. data/test/unit_legacy/vagrant/errors_test.rb +42 -0
  391. data/test/unit_legacy/vagrant/hosts/base_test.rb +46 -0
  392. data/test/unit_legacy/vagrant/hosts/bsd_test.rb +53 -0
  393. data/test/unit_legacy/vagrant/hosts/linux_test.rb +54 -0
  394. data/test/unit_legacy/vagrant/plugin_test.rb +9 -0
  395. data/test/unit_legacy/vagrant/provisioners/base_test.rb +63 -0
  396. data/test/unit_legacy/vagrant/provisioners/chef_client_test.rb +190 -0
  397. data/test/unit_legacy/vagrant/provisioners/chef_solo_test.rb +115 -0
  398. data/test/unit_legacy/vagrant/provisioners/chef_test.rb +209 -0
  399. data/test/unit_legacy/vagrant/provisioners/puppet_server_test.rb +68 -0
  400. data/test/unit_legacy/vagrant/provisioners/puppet_test.rb +182 -0
  401. data/test/unit_legacy/vagrant/provisioners/shell_test.rb +79 -0
  402. data/test/unit_legacy/vagrant/ssh/session_test.rb +40 -0
  403. data/test/unit_legacy/vagrant/ssh_test.rb +304 -0
  404. data/test/unit_legacy/vagrant/systems/base_test.rb +18 -0
  405. data/test/unit_legacy/vagrant/systems/linux_test.rb +104 -0
  406. data/test/unit_legacy/vagrant/util/busy_test.rb +106 -0
  407. data/test/unit_legacy/vagrant/util/counter_test.rb +29 -0
  408. data/test/unit_legacy/vagrant/util/platform_test.rb +18 -0
  409. data/test/unit_legacy/vagrant/util/stacked_proc_runner_test.rb +43 -0
  410. data/test/unit_legacy/vagrant/util/template_renderer_test.rb +145 -0
  411. data/test/unit_legacy/vagrant/vm_test.rb +300 -0
  412. data/vagrant-fixed-ssh.gemspec +70 -0
  413. metadata +712 -0
@@ -0,0 +1,15 @@
1
+ Host <%= host_key %>
2
+ HostName <%= ssh_host %>
3
+ User <%= ssh_user %>
4
+ Port <%= ssh_port %>
5
+ UserKnownHostsFile /dev/null
6
+ StrictHostKeyChecking no
7
+ PasswordAuthentication no
8
+ IdentityFile "<%= private_key_path %>"
9
+ IdentitiesOnly yes
10
+ <% if forward_agent -%>
11
+ ForwardAgent yes
12
+ <% end -%>
13
+ <% if forward_x11 -%>
14
+ ForwardX11 yes
15
+ <% end -%>
@@ -0,0 +1,7 @@
1
+ <% errors.each do |key, container| -%>
2
+ <%= key %>:
3
+ <% container.errors.each do |error| -%>
4
+ * <%= error %>
5
+ <% end -%>
6
+
7
+ <% end -%>
@@ -0,0 +1,7 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ interface=eth<%= options[:interface] %>
4
+ address=
5
+ netmask=
6
+ gateway=
7
+ #VAGRANT-END
@@ -0,0 +1,7 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ interface=eth<%= options[:interface] %>
4
+ address=<%= options[:ip]%>
5
+ netmask=<%= options[:netmask] %>
6
+ gateway=
7
+ #VAGRANT-END
@@ -0,0 +1,6 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ auto eth<%= options[:interface] %>
4
+ iface eth<%= options[:interface] %> inet dhcp
5
+ post-up route del default dev $IFACE
6
+ #VAGRANT-END
@@ -0,0 +1,7 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ auto eth<%= options[:interface] %>
4
+ iface eth<%= options[:interface] %> inet static
5
+ address <%= options[:ip] %>
6
+ netmask <%= options[:netmask] %>
7
+ #VAGRANT-END
@@ -0,0 +1,6 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ BOOTPROTO=dhcp
4
+ ONBOOT=yes
5
+ DEVICE=p7p<%= options[:interface] %>
6
+ #VAGRANT-END
@@ -0,0 +1,13 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ NM_CONTROLLED=no
4
+ BOOTPROTO=static
5
+ ONBOOT=yes
6
+ IPADDR=<%= options[:ip] %>
7
+ NETMASK=<%= options[:netmask] %>
8
+ DEVICE=p7p<%= options[:interface] %>
9
+ <%= options[:gateway] ? "GATEWAY=#{options[:gateway]}" : '' %>
10
+ <%= options[:mac_address] ? "HWADDR=#{options[:mac_address]}" : '' %>
11
+ <%= options[:dns1] ? "DNS1=#{options[:dns1]}" : 'DNS1=8.8.4.4' %>
12
+ <%= options[:dns2] ? "DNS2=#{options[:dns2]}" : 'DNS1=8.8.8.8' %>
13
+ #VAGRANT-END
@@ -0,0 +1,3 @@
1
+ #VAGRANT-BEGIN
2
+ ifconfig_em<%= options[:interface] %>="DHCP"
3
+ #VAGRANT-END
@@ -0,0 +1,3 @@
1
+ #VAGRANT-BEGIN
2
+ ifconfig_em<%= options[:interface] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
3
+ #VAGRANT-END
@@ -0,0 +1,4 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ config_eth<%= options[:interface] %>="dhcp"
4
+ #VAGRANT-END
@@ -0,0 +1,4 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ config_eth<%= options[:interface] %>=("<%= options[:ip] %> netmask <%= options[:netmask] %>")
4
+ #VAGRANT-END
@@ -0,0 +1,6 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ BOOTPROTO=dhcp
4
+ ONBOOT=yes
5
+ DEVICE=eth<%= options[:interface] %>
6
+ #VAGRANT-END
@@ -0,0 +1,7 @@
1
+ #VAGRANT-BEGIN
2
+ # The contents below are automatically generated by Vagrant. Do not modify.
3
+ BOOTPROTO=static
4
+ IPADDR=<%= options[:ip] %>
5
+ NETMASK=<%= options[:netmask] %>
6
+ DEVICE=eth<%= options[:interface] %>
7
+ #VAGRANT-END
@@ -0,0 +1,759 @@
1
+ en:
2
+ vagrant:
3
+ general:
4
+ moving_home_dir: "Moving old Vagrant home directory to new location: %{directory}"
5
+ home_dir_migration_failed: |-
6
+ Both an old and new Vagrant home directory exist. Only the new one will
7
+ be used. Please merge the old directory into the new directory if you'd
8
+ like to use the old data as well.
9
+
10
+ Old: %{old}
11
+ New: %{new}
12
+
13
+ #-------------------------------------------------------------------------------
14
+ # Translations for exception classes
15
+ #-------------------------------------------------------------------------------
16
+ errors:
17
+ base_vm_not_found: The base VM with the name '%{name}' was not found.
18
+ box_not_found: Box '%{name}' could not be found.
19
+ cli_invalid_options: |-
20
+ An invalid option was specified. The help for this command
21
+ is available below.
22
+
23
+ %{help}
24
+ cli_invalid_usage: |-
25
+ This command was not invoked properly. The help for this command is
26
+ available below.
27
+
28
+ %{help}
29
+ config_validation: |-
30
+ There was a problem with the configuration of Vagrant. The error message(s)
31
+ are printed below:
32
+
33
+ %{messages}
34
+ deprecation: |-
35
+ You are using a feature that has been removed in this version. Explanation:
36
+
37
+ %{message}
38
+ Note that this error message will not appear in the next version of Vagrant.
39
+ destroy_requires_force: |-
40
+ Destroy doesn't have a TTY to ask for confirmation. Please pass the
41
+ `--force` flag to force a destroy, otherwise attach a TTY so that
42
+ the destroy can be confirmed.
43
+ dotfile_is_directory: |-
44
+ The local file Vagrant uses to store data ".vagrant" already exists
45
+ and is a directory! If you are in your home directory, then please run
46
+ this command in another directory. If you aren't in a home directory,
47
+ then please rename ".vagrant" to something else, or configure Vagrant
48
+ to use another filename by modifying `config.vagrant.dotfile_name`.
49
+ environment_locked: |-
50
+ An instance of Vagrant is already running. Only one instance of Vagrant
51
+ may run at any given time to avoid problems with VirtualBox inconsistencies
52
+ occurring. Please wait for the other instance of Vagrant to end and then
53
+ try again.
54
+ gem_command_in_bundler: |-
55
+ You cannot run the `vagrant gem` command while in a bundler environment.
56
+ Bundler messes around quite a bit with the RubyGem load paths and gems
57
+ installed via `vagrant gem` are excluded by Bundler.
58
+
59
+ Instead, please include your Vagrant plugins in your Gemfile itself.
60
+ guest:
61
+ invalid_class: |-
62
+ The specified guest class does not inherit from `Vagrant::Guest::Base`.
63
+ The specified guest class must inherit from this class.
64
+
65
+ The specified guest class was: %{guest}
66
+ unknown_type: |-
67
+ The specified guest type is unknown: %{guest}. Please change this
68
+ to a proper value.
69
+ unspecified: |-
70
+ A VM guest type must be specified! This is done via the `config.vm.guest`
71
+ configuration value. Please read the documentation online for more information.
72
+ home_dir_not_accessible: |-
73
+ The home directory you specified is not accessible. The home
74
+ directory that Vagrant uses must be both readable and writable.
75
+
76
+ You specified: %{home_path}
77
+ incompatible_with_future_version: |-
78
+ It appears that you've ran a newer version of Vagrant on this
79
+ computer. Unfortunately, newer versions of Vagrant change internal
80
+ directory layouts that cause older versions to break. This version
81
+ of Vagrant cannot properly run.
82
+
83
+ If you'd like to start from a clean state, please remove the
84
+ Vagrant state directory: %{path}
85
+
86
+ Warning that this will remove all your boxes and potentially corrupt
87
+ existing Vagrant environments that were running based on the future
88
+ version.
89
+ interrupted: |-
90
+ Vagrant exited after cleanup due to external interrupt.
91
+ multi_vm_required: |-
92
+ A multi-vm environment is required for name specification to this command.
93
+ multi_vm_target_required: |-
94
+ This command requires a specific VM name to target in a multi-VM environment.
95
+ no_env: |-
96
+ A Vagrant environment is required to run this command. Run `vagrant init`
97
+ to set one up.
98
+ port_collision_resume: |-
99
+ This VM cannot be resumed, because the forwarded ports would collide with
100
+ another running virtual machine. Normally, Vagrant will attempt to fix this
101
+ for you but VirtualBox only allows forwarded ports to change if the VM is
102
+ powered off. Therefore, please reload your VM or halt the other running
103
+ VMs to continue.
104
+ scp_unavailable: |-
105
+ SSH server on the guest doesn't support SCP. Please install the necessary
106
+ software to enable SCP on your guest operating system.
107
+ shared_folder_create_failed: |-
108
+ Failed to create the following shared folder on the host system. This is
109
+ usually because Vagrant does not have sufficient permissions to create
110
+ the folder.
111
+
112
+ %{path}
113
+
114
+ Please create the folder manually or specify another path to share.
115
+ ssh_authentication_failed: |-
116
+ SSH authentication failed! This is typically caused by the public/private
117
+ keypair for the SSH user not being properly set on the guest VM. Please
118
+ verify that the guest VM is setup with the proper public key, and that
119
+ the private key path for Vagrant is setup properly as well.
120
+ ssh_bad_exit_status: |-
121
+ The following SSH command responded with a non-zero exit status.
122
+ Vagrant assumes that this means the command failed!
123
+
124
+ %{command}
125
+ ssh_connection_refused: |-
126
+ SSH connection was refused! This usually happens if the VM failed to
127
+ boot properly. Some steps to try to fix this: First, try reloading your
128
+ VM with `vagrant reload`, since a simple restart sometimes fixes things.
129
+ If that doesn't work, destroy your VM and recreate it with a `vagrant destroy`
130
+ followed by a `vagrant up`. If that doesn't work, contact a Vagrant
131
+ maintainer (support channels listed on the website) for more assistance.
132
+ ssh_key_bad_permissions: |-
133
+ The private key to connect to this box via SSH has invalid permissions
134
+ set on it. The permissions of the private key should be set to 0600, otherwise SSH will
135
+ ignore the key. Vagrant tried to do this automatically for you but failed. Please set the
136
+ permissions on the following file to 0600 and then try running this command again:
137
+
138
+ %{key_path}
139
+ ssh_key_type_not_supported: |-
140
+ The private key you're attempting to use with this Vagrant box uses
141
+ an unsupported encryption type. The SSH library Vagrant uses does not support
142
+ this key type. Please use `ssh-rsa` or `ssh-dss` instead.
143
+ ssh_port_not_detected: |-
144
+ Vagrant couldn't determine the SSH port for your VM! Vagrant attempts to
145
+ automatically find a forwarded port that matches your `config.ssh.guest_port`
146
+ (default: 22) value and uses this for SSH. Alternatively, if `config.ssh.port`
147
+ is set, it will use this.
148
+
149
+ However, in this case Vagrant was unable to find a forwarded port that matches
150
+ the guest port and `config.ssh.port` is not set!
151
+
152
+ Please make sure that you have a forwarded port that goes to the configured
153
+ guest port value, or specify an explicit SSH port with `config.ssh.port`.
154
+ ssh_unavailable: "`ssh` binary could not be found. Is an SSH client installed?"
155
+ ssh_unavailable_windows: |-
156
+ `vagrant ssh` isn't available on the Windows platform. You are still able
157
+ to SSH into the virtual machine if you get a Windows SSH client (such as
158
+ PuTTY). The authentication information is shown below:
159
+
160
+ Host: %{host}
161
+ Port: %{port}
162
+ Username: %{username}
163
+ Private key: %{key_path}
164
+ ui_expects_tty: |-
165
+ Vagrant is attempting to interface with the UI in a way that requires
166
+ a TTY. Most actions in Vagrant that require a TTY have configuration
167
+ switches to disable this requirement. Please do that or run Vagrant
168
+ with TTY.
169
+ vagrantfile_exists: |-
170
+ `Vagrantfile` already exists in this directory. Remove it before
171
+ running `vagrant init`.
172
+ vagrantfile_syntax_error: |-
173
+ There is a syntax error in the following Vagrantfile. The syntax error
174
+ message is reproduced below for convenience:
175
+
176
+ %{file}
177
+ vboxmanage_error: |-
178
+ There was an error executing the following command with VBoxManage:
179
+
180
+ %{command}
181
+
182
+ For more information on the failure, enable detailed logging with
183
+ VAGRANT_LOG.
184
+ virtualbox_invalid_version: |-
185
+ Vagrant has detected that you have a version of VirtualBox installed
186
+ that is not supported. Please install one of the supported versions
187
+ listed below to use Vagrant:
188
+
189
+ %{supported_versions}
190
+ virtualbox_kernel_module_not_loaded: |-
191
+ VirtualBox is complaining that the kernel module is not loaded. Please
192
+ run `VBoxManage --version` to see the error message which should contain
193
+ instructions on how to fix this error.
194
+ virtualbox_not_detected: |-
195
+ Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
196
+ Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
197
+ this to be available on the PATH. If VirtualBox is installed, please find the
198
+ `VBoxManage` binary and add it to the PATH environmental variable.
199
+ vm_creation_required: |-
200
+ VM must be created before running this command. Run `vagrant up` first.
201
+ vm_inaccessible: |-
202
+ Your VM has become "inaccessible." Unfortunately, this is a critical error
203
+ with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox
204
+ and clear out your inaccessible virtual machines or find a way to fix
205
+ them.
206
+ vm_no_match: |-
207
+ No virtual machines matched the regular expression given.
208
+ vm_not_found: |-
209
+ A VM by the name of %{name} was not found.
210
+ vm_not_running: |-
211
+ VM must be running to open SSH connection. Run `vagrant up`
212
+ to start the virtual machine.
213
+
214
+ #-------------------------------------------------------------------------------
215
+ # Translations for config validation errors
216
+ #-------------------------------------------------------------------------------
217
+ config:
218
+ common:
219
+ error_empty: "`%{field}` must be filled in."
220
+ chef:
221
+ cookbooks_path_empty: "Must specify a cookbooks path for chef solo."
222
+ run_list_empty: "Run list must not be empty."
223
+ server_url_empty: "Chef server URL must be populated."
224
+ vagrant_as_json_key: |-
225
+ `vagrant` cannot be a JSON key, because it is used by Vagrant already.
226
+ validation_key_path: "Validation key path must be valid path to your chef server validation key."
227
+ ssh:
228
+ private_key_missing: "`private_key_path` file must exist: %{path}"
229
+ vm:
230
+ base_mac_invalid: "Base MAC address for eth0/NAT must be set. Contact box maintainer for more information."
231
+ boot_mode_invalid: "Boot mode must be one of: headless or gui"
232
+ box_missing: "A box must be specified."
233
+ box_not_found: "The box '%{name}' could not be found."
234
+ network_invalid: |-
235
+ The network type '%{type}' is not valid. Please use
236
+ 'hostonly' or 'bridged'.
237
+ network_ip_required: |-
238
+ Host only networks require an IP as an argument.
239
+ network_ip_invalid: |-
240
+ The host only network IP '%{ip}' is invalid.
241
+ network_ip_ends_one: |-
242
+ The host only network IP '%{ip}' must not end in a 1, as this
243
+ is reserved for the host machine.
244
+ shared_folder_hostpath_missing: "Shared folder host path for '%{name}' doesn't exist: %{path}"
245
+ shared_folder_nfs_owner_group: |-
246
+ Shared folder '%{name}': NFS does not support the owner/group settings.
247
+ provisioner_not_found: "The provisioner '%{shortcut}' doesn't exist."
248
+ provisioner_invalid_class: "The provisioner '%{shortcut}' must inherit from `Vagrant::Provisioners::Base`."
249
+
250
+ #-------------------------------------------------------------------------------
251
+ # Translations for commands. e.g. `vagrant x`
252
+ #-------------------------------------------------------------------------------
253
+ commands:
254
+ common:
255
+ vm_not_created: "VM not created. Moving on..."
256
+ vm_not_running: "VM is not currently running. Please bring it up to run this command."
257
+ box:
258
+ no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some."
259
+ destroy:
260
+ confirmation: "Are you sure you want to destroy the '%{name}' VM? [Y/N] "
261
+ will_not_destroy: |-
262
+ The VM '%{name}' will not be destroyed, since the confirmation
263
+ was declined.
264
+ gem:
265
+ help_preamble: |-
266
+ `vagrant gem` is used to install Vagrant plugins via the RubyGems
267
+ system. In fact, `vagrant gem` is just a frontend to the actual `gem`
268
+ interface, with the difference being that Vagrant sets up a custom
269
+ directory where gems are installed so that they are isolated from your
270
+ system gems.
271
+ init:
272
+ success: |-
273
+ A `Vagrantfile` has been placed in this directory. You are now
274
+ ready to `vagrant up` your first virtual environment! Please read
275
+ the comments in the Vagrantfile as well as documentation on
276
+ `vagrantup.com` for more information on using Vagrant.
277
+ status:
278
+ aborted: |-
279
+ The VM is in an aborted state. This means that it was abruptly
280
+ stopped without properly closing the session. Run `vagrant up`
281
+ to resume this virtual machine. If any problems persist, you may
282
+ have to destroy and restart the virtual machine.
283
+ gurumeditation: |-
284
+ The VM is in the "guru meditation" state. This is a rare case which means
285
+ that an internal error in VitualBox caused the VM to fail. This is always
286
+ the sign of a bug in VirtualBox. You can try to bring your VM back online
287
+ with a `vagrant up`.
288
+ inaccessible: |-
289
+ The VM is inaccessible! This is a rare case which means that VirtualBox
290
+ can't find your VM configuration. This usually happens when upgrading
291
+ VirtualBox, moving to a new computer, etc. Please consult VirtualBox
292
+ for how to handle this issue.
293
+ output: |-
294
+ Current VM states:
295
+
296
+ %{states}
297
+
298
+ %{message}
299
+ not_created: |-
300
+ The environment has not yet been created. Run `vagrant up` to
301
+ create the environment.
302
+ paused: |-
303
+ The VM is paused. This VM may have been paused via the VirtualBox
304
+ GUI or the VBoxManage command line interface. To unpause, please
305
+ use the VirtualBox GUI and/or VBoxManage command line interface so
306
+ that vagrant would be able to control the VM again.
307
+ poweroff: |-
308
+ The VM is powered off. To restart the VM, simply run `vagrant up`
309
+ running: |-
310
+ The VM is running. To stop this VM, you can run `vagrant halt` to
311
+ shut it down forcefully, or you can run `vagrant suspend` to simply
312
+ suspend the virtual machine. In either case, to restart it again,
313
+ simply run `vagrant up`.
314
+ saving: |-
315
+ The VM is currently saving its state. In a few moments this state
316
+ should transition to "saved." Please run `vagrant status` again
317
+ in a few seconds.
318
+ saved: |-
319
+ To resume this VM, simply run `vagrant up`.
320
+ stuck: |-
321
+ The VM is "stuck!" This is a very rare state which means that
322
+ VirtualBox is unable to recover the current state of the VM.
323
+ The only known solution to this problem is to restart your
324
+ machine, sorry.
325
+ listing: |-
326
+ This environment represents multiple VMs. The VMs are all listed
327
+ above with their current state. For more information about a specific
328
+ VM, run `vagrant status NAME`.
329
+ up:
330
+ vm_created: "VM already created. Booting if it's not already running..."
331
+ version:
332
+ output: "Vagrant version %{version}"
333
+
334
+ #-------------------------------------------------------------------------------
335
+ # Translations for Vagrant middleware acions
336
+ #-------------------------------------------------------------------------------
337
+ actions:
338
+ runner:
339
+ waiting_cleanup: "Waiting for cleanup before exiting..."
340
+ exit_immediately: "Exiting immediately, without cleanup!"
341
+ vm:
342
+ boot:
343
+ booting: Booting VM...
344
+ waiting: Waiting for VM to boot. This can take a few minutes.
345
+ ready: VM booted and ready for use!
346
+ failed: Failed to connect to VM!
347
+ failed_to_boot: |-
348
+ Failed to connect to VM via SSH. Please verify the VM successfully booted
349
+ by looking at the VirtualBox GUI.
350
+ failed_to_run: |-
351
+ The VM failed to remain in the "running" state while attempting to boot.
352
+ This is normally caused by a misconfiguration or host system incompatibilities.
353
+ Please open the VirtualBox GUI and attempt to boot the virtual machine
354
+ manually to get a more informative error message.
355
+ bridged_networking:
356
+ available: |-
357
+ Available bridged network interfaces:
358
+ bridging: |-
359
+ Bridging adapter #%{adapter} to '%{bridge}'
360
+ enabling: |-
361
+ Enabling bridged network...
362
+ preparing: |-
363
+ Preparing bridged networking...
364
+ specific_not_found: |-
365
+ Specific bridge '%{bridge}' not found. You may be asked to specify
366
+ which network to bridge to.
367
+ check_box:
368
+ not_found: Box %{name} was not found. Fetching box from specified URL...
369
+ not_specified: |-
370
+ No base box was specified! A base box is required as a staring point
371
+ for every vagrant virtual machine. Please specify one in your Vagrantfile
372
+ using `config.vm.box`
373
+ does_not_exist: |-
374
+ Specified box `%{name}` does not exist!
375
+
376
+ The box must be added through the `vagrant box add` command. Please view
377
+ the documentation associated with the command for more information.
378
+ check_guest_additions:
379
+ not_detected: |-
380
+ No guest additions were detected on the base box for this VM! Guest
381
+ additions are required for forwarded ports, shared folders, host only
382
+ networking, and more. If SSH fails on this machine, please install
383
+ the guest additions and repackage the box to continue.
384
+
385
+ This is not an error message; everything may continue to work properly,
386
+ in which case you may ignore this message.
387
+ version_mismatch: |-
388
+ The guest additions on this VM do not match the install version of
389
+ VirtualBox! This may cause things such as forwarded ports, shared
390
+ folders, and more to not work properly. If any of those things fail on
391
+ this machine, please update the guest additions and repackage the
392
+ box.
393
+
394
+ Guest Additions Version: %{guest_version}
395
+ VirtualBox Version: %{virtualbox_version}
396
+ clear_forward_ports:
397
+ deleting: Clearing any previously set forwarded ports...
398
+ clear_network_interfaces:
399
+ deleting: Clearing any previously set network interfaces...
400
+ clear_shared_folders:
401
+ deleting: Cleaning previously set shared folders...
402
+ customize:
403
+ failure: |-
404
+ A customization command failed:
405
+
406
+ %{command}
407
+
408
+ The following error was experienced:
409
+
410
+ %{error}
411
+
412
+ Please fix this customization and try again.
413
+ running: Running any VM customizations...
414
+ destroy:
415
+ destroying: Destroying VM and associated drives...
416
+ destroy_network:
417
+ destroying: Destroying unused networking interface...
418
+ disable_networks:
419
+ disabling: Disabling host only networks...
420
+ discard_state:
421
+ discarding: Discarding saved state of VM...
422
+ export:
423
+ create_dir: Creating temporary directory for export...
424
+ exporting: Exporting VM...
425
+ power_off: "The Vagrant virtual environment you are trying to package must be powered off."
426
+ forward_ports:
427
+ auto_empty: |-
428
+ Vagrant found a port collision for the specified port and virtual machine.
429
+ While this port was marked to be auto-corrected, the ports in the
430
+ auto-correction range are all also used.
431
+
432
+ VM: %{vm_name}
433
+ Forwarded port: %{guest_port} => %{host_port}
434
+ collision_error: |-
435
+ Vagrant cannot forward the specified ports on this VM, since they
436
+ would collide with another VirtualBox virtual machine's forwarded
437
+ ports! The forwarded port to %{host_port} is already in use on the host
438
+ machine.
439
+
440
+ To fix this, modify your current projects Vagrantfile to use another
441
+ port. Example, where '1234' would be replaced by a unique host port:
442
+
443
+ config.vm.forward_port %{guest_port}, 1234
444
+
445
+ fixed_collision: |-
446
+ Fixed port collision for %{guest_port} => %{host_port}. Now on port %{new_port}.
447
+ forwarding: Forwarding ports...
448
+ forwarding_entry: |-
449
+ -- %{guest_port} => %{host_port} (adapter %{adapter})
450
+ non_nat: |-
451
+ VirtualBox adapter #%{adapter} not configured as "NAT". Skipping port
452
+ forwards on this adapter.
453
+ privileged_ports: |-
454
+ You are trying to forward to privileged ports (ports <= 1024). Most
455
+ operating systems restrict this to only privileged process (typically
456
+ processes running as an administrative user). This is a warning in case
457
+ the port forwarding doesn't work. If any problems occur, please try a
458
+ port higher than 1024.
459
+ halt:
460
+ force: |-
461
+ Forcing shutdown of VM...
462
+ graceful: |-
463
+ Attempting graceful shutdown of VM...
464
+ host_name:
465
+ setting: "Setting host name..."
466
+ import:
467
+ importing: Importing base box '%{name}'...
468
+ failure: |-
469
+ The VM import failed! Try running `VBoxManage import` on the box file
470
+ manually for more verbose error output.
471
+ match_mac:
472
+ matching: Matching MAC address for NAT networking...
473
+ no_base_mac: |-
474
+ No base MAC address was specified. This is required for the NAT networking
475
+ to work properly (and hence port forwarding, SSH, etc.). Specifying this
476
+ MAC address is typically up to the box and box maintiner. Please contact
477
+ the relevant person to solve this issue.
478
+ network:
479
+ adapter_collision: |-
480
+ More than one network have been assigned to the same adapter. Please
481
+ make sure your networks you've configured in your Vagrantfile do not
482
+ overlap.
483
+ configuring: |-
484
+ Configuring and enabling network interfaces...
485
+ dhcp_already_attached: |-
486
+ A host only network interface you're attempting to configure via DHCP
487
+ already has a conflicting host only adapter with DHCP enabled. The
488
+ DHCP on this adapter is incompatible with the DHCP settings. Two
489
+ host only network interfaces are not allowed to overlap, and each
490
+ host only network interface can have only one DHCP server. Please
491
+ reconfigure your host only network or remove the virtual machine
492
+ using the other host only network.
493
+ no_adapters: |-
494
+ No available adapters on the virtual machine were found to accomodate
495
+ for all configured networks. VirtualBox virtual machines have 8
496
+ network interfaces available usually, so please lower the number of
497
+ networks to below 8.
498
+ preparing: |-
499
+ Preparing network interfaces based on configuration...
500
+ host_only_network:
501
+ collides: |-
502
+ The specified host network collides with a non-hostonly network!
503
+ This will cause your specified IP to be inaccessible. Please change
504
+ the IP or name of your host only network to not match that of
505
+ a bridged or non-hostonly network.
506
+ creating: "Creating new host only network for environment..."
507
+ enabling: "Enabling host only network..."
508
+ not_found: |-
509
+ The specified host network could not be found: '%{name}.'
510
+ If the name specification is removed, Vagrant will create a new
511
+ host only network for you. Alternatively, please create the
512
+ specified network manually.
513
+ preparing: "Preparing host only network..."
514
+ nfs:
515
+ host_required: |-
516
+ A host class is required for NFS shared folders. By default, these
517
+ are auto-detected, but can be overridden with `config.vagrant.host`.
518
+ There is currently no host class loaded.
519
+ no_host_network: |-
520
+ NFS shared folders requires that host only networking is enabled
521
+ with a static IP. Please enable host only network and assign a
522
+ static IP via `config.vm.network`.
523
+ not_supported: |-
524
+ The host class is reporting that NFS is not supported by this host,
525
+ or `nfsd` may not be installed. Please verify that `nfsd` is installed
526
+ on your machine, and retry.
527
+ exporting: Exporting NFS shared folders...
528
+ mounting: Mounting NFS shared folders...
529
+ persist:
530
+ dotfile_error: |-
531
+ The dotfile which Vagrant uses to store the UUID of the project's
532
+ virtual machine already exists and is not a file! The dotfile is
533
+ currently configured to be '%{dotfile_path}'
534
+
535
+ To change this value, please see `config.vagrant.dotfile_name`
536
+
537
+ Are you trying to use Vagrant from your home directory? This is the
538
+ leading cause of this error message. To resolve this, simply use a
539
+ different directory. Or, if you really want to run Vagrant from your
540
+ home directory, modify the `config.vagrant.dotfile_name` configuration
541
+ key.
542
+ persisting: "Persisting the VM UUID (%{uuid})..."
543
+ provision:
544
+ beginning: "Running provisioner: %{provisioner}..."
545
+ resume:
546
+ resuming: Resuming suspended VM...
547
+ share_folders:
548
+ creating: Creating shared folders metadata...
549
+ mounting: Mounting shared folders...
550
+ mounting_entry: "-- %{name}: %{guest_path}"
551
+ nomount_entry: "-- %{name}: Automounting disabled."
552
+ suspend:
553
+ suspending: Saving VM state and suspending execution...
554
+
555
+ box:
556
+ destroy:
557
+ destroying: "Deleting box '%{name}'..."
558
+ download:
559
+ with: "Downloading with %{class}..."
560
+ cleaning: "Cleaning up downloaded box..."
561
+ unknown_type: "Unknown or unsupported URI type given for box download."
562
+ unpackage:
563
+ extracting: "Extracting box..."
564
+ already_exists: |-
565
+ A box already exists under the name of '%{name}'. This may or may
566
+ not be the same box you are trying to add. Please use another name
567
+ or remove the previous box then try to add it again.
568
+ untar_failure: |-
569
+ Failed to untar the box file. This is usually because you're
570
+ attempting to add a box that isn't a valid box file. Please
571
+ double check that the box file is properly packaged.
572
+ verify:
573
+ verifying: "Verifying box..."
574
+ failed: |-
575
+ The box file you're attempting to add is invalid. This can be
576
+ commonly attributed to typos in the path given to the box add
577
+ command. Another common case of this is invalid packaging of the
578
+ box itself.
579
+
580
+ general:
581
+ package:
582
+ packaging: "Packaging additional file: %{file}"
583
+ compressing: "Compressing package to: %{tar_path}"
584
+ output_exists: |-
585
+ The specified file to save the package as already exists. Please
586
+ remove this file or specify a different file name for outputting.
587
+ output_is_directory: |-
588
+ The specified output is a directory. Please specify a path including
589
+ a filename.
590
+ requires_directory: |-
591
+ A directory was not specified to package. This should never happen
592
+ and is a result of an internal inconsistency.
593
+ include_file_missing: |-
594
+ Package include file doesn't exist: %{file}
595
+
596
+ downloaders:
597
+ file:
598
+ download: "Copying box to temporary location..."
599
+ file_missing: "The specified path to a file doesn't exist."
600
+ http:
601
+ download: "Downloading box: %{url}"
602
+ socket_error: |-
603
+ An error occurred while trying to download the specified box. This most
604
+ often happens if there is no internet connection or the address is
605
+ invalid.
606
+ status_error: |-
607
+ Bad status code: %{status}
608
+
609
+ Please verify that the box exists and is accessible. Also verify that
610
+ this computer is properly connected to the internet.
611
+
612
+ hosts:
613
+ bsd:
614
+ nfs_export: |-
615
+ Preparing to edit /etc/exports. Administrator privileges will be required...
616
+ nfs_prune: |-
617
+ Pruning invalid NFS exports. Administrator privileges will be required...
618
+ linux:
619
+ nfs_export: |-
620
+ Preparing to edit /etc/exports. Administrator privileges will be required...
621
+ nfs_prune: |-
622
+ Pruning invalid NFS exports. Administrator privileges will be required...
623
+ arch:
624
+ nfs_export:
625
+ prepare: "Preparing to edit /etc/exports. Administrator privileges will be required..."
626
+ freebsd:
627
+ nfs_whitespace: |-
628
+ FreeBSD hosts do not support sharing directories with whitespace in
629
+ their path. Please adjust your path accordingly.
630
+
631
+ provisioners:
632
+ chef:
633
+ chef_not_detected: |-
634
+ The chef binary (either `chef-solo` or `chef-client`) was not found on
635
+ the VM and is required for chef provisioning. Please verify that chef
636
+ is installed and that the binary is available on the PATH.
637
+ json: "Generating chef JSON and uploading..."
638
+ client_key_folder: "Creating folder to hold client key..."
639
+ upload_validation_key: "Uploading chef client validation key..."
640
+ upload_encrypted_data_bag_secret_key: "Uploading chef encrypted data bag secret key..."
641
+ running_client: "Running chef-client..."
642
+ running_client_again: "Running chef-client again (failed to converge)..."
643
+ running_solo: "Running chef-solo..."
644
+ running_solo_again: "Running chef-solo again (failed to converge)..."
645
+ invalid_provisioner: |-
646
+ Vagrant::Provisioners::Chef is not a valid provisioner! Use
647
+ ChefSolo or ChefClient instead.
648
+ missing_shared_folders: |-
649
+ Shared folders that Chef requires are missing on the virtual machine.
650
+ This is usually due to configuration changing after already booting the
651
+ machine. The fix is to run a `vagrant reload` so that the proper shared
652
+ folders will prepared and mounted on the VM.
653
+ no_convergence: |-
654
+ Chef never successfully completed! Any errors should be visible in the
655
+ output above. Please fix your recipes so that they properly complete.
656
+ not_detected: |-
657
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
658
+ could be because the PATH is not properly setup or perhaps chef is not
659
+ installed on this guest. Chef provisioning can not continue without
660
+ chef properly installed.
661
+ server_url_required: |-
662
+ Chef server provisioning requires that the `config.chef.chef_server_url` be set to the
663
+ URL of your chef server. Examples include "http://12.12.12.12:4000" and
664
+ "http://myserver.com:4000" (the port of course can be different, but 4000 is the default)
665
+ server_validation_key_required: |-
666
+ Chef server provisioning requires that the `config.chef.validation_key_path` configuration
667
+ be set to a path on your local machine of the validation key used to register the
668
+ VM with the chef server.
669
+ server_validation_key_doesnt_exist: |-
670
+ The validation key set for `config.chef.validation_key_path` does not exist! This
671
+ file needs to exist so it can be uploaded to the virtual machine.
672
+
673
+ puppet:
674
+ not_detected: |-
675
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
676
+ could be because the PATH is not properly setup or perhaps Puppet is not
677
+ installed on this guest. Puppet provisioning can not continue without
678
+ Puppet properly installed.
679
+ running_puppet: "Running Puppet with %{manifest}..."
680
+ manifest_missing: |-
681
+ The configured Puppet manifest is missing. Please specify a path to an
682
+ existing manifest:
683
+
684
+ %{manifest}
685
+ manifests_path_missing: "The manifests path specified for Puppet does not exist: %{path}"
686
+ missing_shared_folders: |-
687
+ Shared folders that Puppet requires are missing on the virtual machine.
688
+ This is usually due to configuration changing after already booting the
689
+ machine. The fix is to run a `vagrant reload` so that the proper shared
690
+ folders will prepared and mounted on the VM.
691
+ module_path_missing: "The configured module path doesn't exist: %{path}"
692
+
693
+ puppet_server:
694
+ not_detected: |-
695
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
696
+ could be because the PATH is not properly setup or perhaps Puppet is not
697
+ installed on this guest. Puppet provisioning can not continue without
698
+ Puppet properly installed.
699
+ running_puppetd: "Running Puppet agent..."
700
+
701
+ shell:
702
+ args_not_string: "Shell provisioner `args` must be a string."
703
+ path_and_inline_set: "Only one of `path` or `inline` may be set."
704
+ no_path_or_inline: "One of `path` or `inline` must be set."
705
+ path_invalid: "`path` for shell provisioner does not exist on the host system: %{path}"
706
+ upload_path_not_set: "`upload_path` must be set for the shell provisioner."
707
+
708
+ guest:
709
+ base:
710
+ unsupported_configure_networks: |-
711
+ Networking features require support that is dependent on the operating
712
+ system running within the guest virtual machine. Vagrant has built-in support
713
+ for many operating systems: Debian, Ubuntu, Gentoo, and RedHat. The distro
714
+ of your VM couldn't be detected or doesn't support networking features.
715
+
716
+ Most of the time this is simply due to the fact that no one has contributed
717
+ back the logic necessary to set this up. Please report a bug as well as the
718
+ box you're using.
719
+ unsupported_host_name: |-
720
+ Setting host name is currently only supported on Debian, Ubuntu and RedHat.
721
+ If you'd like your guest OS to be supported, please open a ticket on the
722
+ project.
723
+ unsupported_nfs: |-
724
+ Vagrant doesn't support mounting NFS shared folders for your specific
725
+ guest operating system yet, or possibly couldn't properly detect the
726
+ operating system on the VM.
727
+
728
+ Most of the time this is simply due to the fact that no one has contributed
729
+ back the logic necessary to set this up. Please report a bug as well as the
730
+ box you're using.
731
+ unsupported_halt: |-
732
+ Vagrant doesn't support graceful shutdowns for your specific
733
+ guest operating system yet, or possibly couldn't properly detect the
734
+ operating system on the VM.
735
+
736
+ Most of the time this is simply due to the fact that no one has contributed
737
+ back the logic necessary to set this up. Please report a bug as well as the
738
+ box you're using.
739
+ unsupported_shared_folder: |-
740
+ Vagrant doesn't support mounting shared folders for your specific
741
+ guest operating system yet, or possibly couldn't properly detect the
742
+ operating system on the VM.
743
+
744
+ Most of the time this is simply due to the fact that no one has contributed
745
+ back the logic necessary to set this up. Please report a bug as well as the
746
+ box you're using.
747
+ linux:
748
+ guestpath_expand_fail: |-
749
+ Vagrant failed to determine the shell expansion of the guest path
750
+ for one of your shared folders. This is an extremely rare error case
751
+ and most likely indicates an unusual configuration of the guest system.
752
+ Please report a bug with your Vagrantfile.
753
+ mount_fail: "Failed to mount shared folders. `vboxsf` was not available."
754
+ mount_nfs_fail: |-
755
+ Mounting NFS shared folders failed. This is most often caused by the NFS
756
+ client software not being installed on the guest machine. Please verify
757
+ that the NFS client software is properly installed, and consult any resources
758
+ specific to the linux distro you're using for more information on how to
759
+ do this.