rvagrant 0.8.7.dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. data/.gitignore +25 -0
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +386 -0
  4. data/Gemfile +21 -0
  5. data/LICENSE +21 -0
  6. data/README.md +61 -0
  7. data/Rakefile +11 -0
  8. data/bin/vagrant +28 -0
  9. data/config/default.rb +38 -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.ppk +26 -0
  16. data/keys/vagrant.pub +1 -0
  17. data/lib/vagrant.rb +44 -0
  18. data/lib/vagrant/action.rb +138 -0
  19. data/lib/vagrant/action/box.rb +11 -0
  20. data/lib/vagrant/action/box/destroy.rb +21 -0
  21. data/lib/vagrant/action/box/download.rb +72 -0
  22. data/lib/vagrant/action/box/package.rb +19 -0
  23. data/lib/vagrant/action/box/unpackage.rb +55 -0
  24. data/lib/vagrant/action/box/verify.rb +23 -0
  25. data/lib/vagrant/action/builder.rb +124 -0
  26. data/lib/vagrant/action/builtin.rb +108 -0
  27. data/lib/vagrant/action/env.rb +7 -0
  28. data/lib/vagrant/action/env/set.rb +18 -0
  29. data/lib/vagrant/action/environment.rb +50 -0
  30. data/lib/vagrant/action/general.rb +8 -0
  31. data/lib/vagrant/action/general/package.rb +113 -0
  32. data/lib/vagrant/action/general/validate.rb +19 -0
  33. data/lib/vagrant/action/vm.rb +34 -0
  34. data/lib/vagrant/action/vm/boot.rb +48 -0
  35. data/lib/vagrant/action/vm/check_accessible.rb +23 -0
  36. data/lib/vagrant/action/vm/check_box.rb +28 -0
  37. data/lib/vagrant/action/vm/check_guest_additions.rb +35 -0
  38. data/lib/vagrant/action/vm/clean_machine_folder.rb +43 -0
  39. data/lib/vagrant/action/vm/clear_forwarded_ports.rb +26 -0
  40. data/lib/vagrant/action/vm/clear_nfs_exports.rb +20 -0
  41. data/lib/vagrant/action/vm/clear_shared_folders.rb +27 -0
  42. data/lib/vagrant/action/vm/customize.rb +26 -0
  43. data/lib/vagrant/action/vm/destroy.rb +19 -0
  44. data/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb +30 -0
  45. data/lib/vagrant/action/vm/discard_state.rb +22 -0
  46. data/lib/vagrant/action/vm/export.rb +52 -0
  47. data/lib/vagrant/action/vm/forward_ports.rb +133 -0
  48. data/lib/vagrant/action/vm/forward_ports_helpers.rb +28 -0
  49. data/lib/vagrant/action/vm/halt.rb +29 -0
  50. data/lib/vagrant/action/vm/host_name.rb +21 -0
  51. data/lib/vagrant/action/vm/import.rb +40 -0
  52. data/lib/vagrant/action/vm/match_mac_address.rb +26 -0
  53. data/lib/vagrant/action/vm/modify.rb +37 -0
  54. data/lib/vagrant/action/vm/network.rb +146 -0
  55. data/lib/vagrant/action/vm/nfs.rb +160 -0
  56. data/lib/vagrant/action/vm/nfs_helpers.rb +11 -0
  57. data/lib/vagrant/action/vm/package.rb +23 -0
  58. data/lib/vagrant/action/vm/package_vagrantfile.rb +33 -0
  59. data/lib/vagrant/action/vm/provision.rb +34 -0
  60. data/lib/vagrant/action/vm/provisioner_cleanup.rb +26 -0
  61. data/lib/vagrant/action/vm/resume.rb +20 -0
  62. data/lib/vagrant/action/vm/share_folders.rb +78 -0
  63. data/lib/vagrant/action/vm/suspend.rb +20 -0
  64. data/lib/vagrant/action/warden.rb +85 -0
  65. data/lib/vagrant/box.rb +90 -0
  66. data/lib/vagrant/box_collection.rb +53 -0
  67. data/lib/vagrant/cli.rb +55 -0
  68. data/lib/vagrant/command.rb +25 -0
  69. data/lib/vagrant/command/base.rb +106 -0
  70. data/lib/vagrant/command/box.rb +33 -0
  71. data/lib/vagrant/command/destroy.rb +17 -0
  72. data/lib/vagrant/command/group_base.rb +107 -0
  73. data/lib/vagrant/command/halt.rb +18 -0
  74. data/lib/vagrant/command/helpers.rb +33 -0
  75. data/lib/vagrant/command/init.rb +14 -0
  76. data/lib/vagrant/command/named_base.rb +14 -0
  77. data/lib/vagrant/command/package.rb +41 -0
  78. data/lib/vagrant/command/provision.rb +23 -0
  79. data/lib/vagrant/command/reload.rb +17 -0
  80. data/lib/vagrant/command/resume.rb +17 -0
  81. data/lib/vagrant/command/ssh.rb +49 -0
  82. data/lib/vagrant/command/ssh_config.rb +29 -0
  83. data/lib/vagrant/command/status.rb +31 -0
  84. data/lib/vagrant/command/suspend.rb +17 -0
  85. data/lib/vagrant/command/up.rb +19 -0
  86. data/lib/vagrant/command/upgrade_to_060.rb +45 -0
  87. data/lib/vagrant/command/version.rb +13 -0
  88. data/lib/vagrant/config.rb +123 -0
  89. data/lib/vagrant/config/base.rb +85 -0
  90. data/lib/vagrant/config/error_recorder.rb +19 -0
  91. data/lib/vagrant/config/nfs.rb +10 -0
  92. data/lib/vagrant/config/package.rb +9 -0
  93. data/lib/vagrant/config/ssh.rb +38 -0
  94. data/lib/vagrant/config/top.rb +61 -0
  95. data/lib/vagrant/config/vagrant.rb +17 -0
  96. data/lib/vagrant/config/vm.rb +148 -0
  97. data/lib/vagrant/config/vm/provisioner.rb +56 -0
  98. data/lib/vagrant/config/vm/sub_vm.rb +17 -0
  99. data/lib/vagrant/data_store.rb +70 -0
  100. data/lib/vagrant/downloaders.rb +7 -0
  101. data/lib/vagrant/downloaders/base.rb +23 -0
  102. data/lib/vagrant/downloaders/file.rb +22 -0
  103. data/lib/vagrant/downloaders/http.rb +70 -0
  104. data/lib/vagrant/environment.rb +516 -0
  105. data/lib/vagrant/errors.rb +352 -0
  106. data/lib/vagrant/hosts.rb +9 -0
  107. data/lib/vagrant/hosts/arch.rb +27 -0
  108. data/lib/vagrant/hosts/base.rb +76 -0
  109. data/lib/vagrant/hosts/bsd.rb +58 -0
  110. data/lib/vagrant/hosts/fedora.rb +11 -0
  111. data/lib/vagrant/hosts/linux.rb +69 -0
  112. data/lib/vagrant/plugin.rb +79 -0
  113. data/lib/vagrant/provisioners.rb +9 -0
  114. data/lib/vagrant/provisioners/base.rb +67 -0
  115. data/lib/vagrant/provisioners/chef.rb +155 -0
  116. data/lib/vagrant/provisioners/chef_client.rb +120 -0
  117. data/lib/vagrant/provisioners/chef_solo.rb +135 -0
  118. data/lib/vagrant/provisioners/puppet.rb +137 -0
  119. data/lib/vagrant/provisioners/puppet_server.rb +55 -0
  120. data/lib/vagrant/provisioners/shell.rb +96 -0
  121. data/lib/vagrant/ssh.rb +224 -0
  122. data/lib/vagrant/ssh/session.rb +136 -0
  123. data/lib/vagrant/systems.rb +13 -0
  124. data/lib/vagrant/systems/arch.rb +34 -0
  125. data/lib/vagrant/systems/base.rb +87 -0
  126. data/lib/vagrant/systems/debian.rb +36 -0
  127. data/lib/vagrant/systems/freebsd.rb +84 -0
  128. data/lib/vagrant/systems/gentoo.rb +27 -0
  129. data/lib/vagrant/systems/linux.rb +82 -0
  130. data/lib/vagrant/systems/linux/config.rb +21 -0
  131. data/lib/vagrant/systems/linux/error.rb +9 -0
  132. data/lib/vagrant/systems/redhat.rb +48 -0
  133. data/lib/vagrant/systems/solaris.rb +67 -0
  134. data/lib/vagrant/systems/suse.rb +9 -0
  135. data/lib/vagrant/systems/ubuntu.rb +17 -0
  136. data/lib/vagrant/test_helpers.rb +128 -0
  137. data/lib/vagrant/ui.rb +81 -0
  138. data/lib/vagrant/util.rb +13 -0
  139. data/lib/vagrant/util/busy.rb +59 -0
  140. data/lib/vagrant/util/counter.rb +24 -0
  141. data/lib/vagrant/util/hash_with_indifferent_access.rb +63 -0
  142. data/lib/vagrant/util/platform.rb +57 -0
  143. data/lib/vagrant/util/retryable.rb +25 -0
  144. data/lib/vagrant/util/safe_exec.rb +35 -0
  145. data/lib/vagrant/util/stacked_proc_runner.rb +35 -0
  146. data/lib/vagrant/util/template_renderer.rb +83 -0
  147. data/lib/vagrant/version.rb +6 -0
  148. data/lib/vagrant/vm.rb +181 -0
  149. data/templates/chef_server_client.erb +32 -0
  150. data/templates/chef_solo_solo.erb +23 -0
  151. data/templates/commands/init/Vagrantfile.erb +86 -0
  152. data/templates/config/validation_failed.erb +7 -0
  153. data/templates/locales/en.yml +556 -0
  154. data/templates/network_entry_arch.erb +9 -0
  155. data/templates/network_entry_debian.erb +8 -0
  156. data/templates/network_entry_gentoo.erb +5 -0
  157. data/templates/network_entry_redhat.erb +9 -0
  158. data/templates/nfs/exports.erb +5 -0
  159. data/templates/nfs/exports_linux.erb +5 -0
  160. data/templates/package_Vagrantfile.erb +11 -0
  161. data/templates/ssh_config.erb +15 -0
  162. data/test/unit/locales/en.yml +8 -0
  163. data/test/unit/test_helper.rb +28 -0
  164. data/test/unit/vagrant/action/box/destroy_test.rb +18 -0
  165. data/test/unit/vagrant/action/box/download_test.rb +125 -0
  166. data/test/unit/vagrant/action/box/package_test.rb +25 -0
  167. data/test/unit/vagrant/action/box/unpackage_test.rb +84 -0
  168. data/test/unit/vagrant/action/box/verify_test.rb +30 -0
  169. data/test/unit/vagrant/action/builder_test.rb +207 -0
  170. data/test/unit/vagrant/action/env/set_test.rb +24 -0
  171. data/test/unit/vagrant/action/environment_test.rb +27 -0
  172. data/test/unit/vagrant/action/general/package_test.rb +268 -0
  173. data/test/unit/vagrant/action/general/validate_test.rb +31 -0
  174. data/test/unit/vagrant/action/vm/boot_test.rb +66 -0
  175. data/test/unit/vagrant/action/vm/check_accessible_test.rb +61 -0
  176. data/test/unit/vagrant/action/vm/check_box_test.rb +56 -0
  177. data/test/unit/vagrant/action/vm/check_guest_additions_test.rb +9 -0
  178. data/test/unit/vagrant/action/vm/clean_machine_folder_test.rb +84 -0
  179. data/test/unit/vagrant/action/vm/clear_forwarded_ports_test.rb +52 -0
  180. data/test/unit/vagrant/action/vm/clear_nfs_exports_test.rb +22 -0
  181. data/test/unit/vagrant/action/vm/clear_shared_folders_test.rb +40 -0
  182. data/test/unit/vagrant/action/vm/customize_test.rb +37 -0
  183. data/test/unit/vagrant/action/vm/destroy_test.rb +25 -0
  184. data/test/unit/vagrant/action/vm/destroy_unused_network_interfaces_test.rb +49 -0
  185. data/test/unit/vagrant/action/vm/discard_state_test.rb +45 -0
  186. data/test/unit/vagrant/action/vm/export_test.rb +107 -0
  187. data/test/unit/vagrant/action/vm/forward_ports_helpers_test.rb +77 -0
  188. data/test/unit/vagrant/action/vm/forward_ports_test.rb +213 -0
  189. data/test/unit/vagrant/action/vm/halt_test.rb +79 -0
  190. data/test/unit/vagrant/action/vm/host_name_test.rb +36 -0
  191. data/test/unit/vagrant/action/vm/import_test.rb +66 -0
  192. data/test/unit/vagrant/action/vm/match_mac_address_test.rb +40 -0
  193. data/test/unit/vagrant/action/vm/modify_test.rb +38 -0
  194. data/test/unit/vagrant/action/vm/network_test.rb +286 -0
  195. data/test/unit/vagrant/action/vm/nfs_helpers_test.rb +26 -0
  196. data/test/unit/vagrant/action/vm/nfs_test.rb +260 -0
  197. data/test/unit/vagrant/action/vm/package_test.rb +25 -0
  198. data/test/unit/vagrant/action/vm/package_vagrantfile_test.rb +46 -0
  199. data/test/unit/vagrant/action/vm/provision_test.rb +65 -0
  200. data/test/unit/vagrant/action/vm/provisioner_cleanup_test.rb +56 -0
  201. data/test/unit/vagrant/action/vm/resume_test.rb +35 -0
  202. data/test/unit/vagrant/action/vm/share_folders_test.rb +144 -0
  203. data/test/unit/vagrant/action/vm/suspend_test.rb +35 -0
  204. data/test/unit/vagrant/action/warden_test.rb +125 -0
  205. data/test/unit/vagrant/action_test.rb +89 -0
  206. data/test/unit/vagrant/box_collection_test.rb +45 -0
  207. data/test/unit/vagrant/box_test.rb +74 -0
  208. data/test/unit/vagrant/cli_test.rb +35 -0
  209. data/test/unit/vagrant/command/base_test.rb +23 -0
  210. data/test/unit/vagrant/command/group_base_test.rb +15 -0
  211. data/test/unit/vagrant/command/helpers_test.rb +88 -0
  212. data/test/unit/vagrant/command/package_test.rb +27 -0
  213. data/test/unit/vagrant/config/base_test.rb +52 -0
  214. data/test/unit/vagrant/config/error_recorder_test.rb +18 -0
  215. data/test/unit/vagrant/config/ssh_test.rb +12 -0
  216. data/test/unit/vagrant/config/vagrant_test.rb +35 -0
  217. data/test/unit/vagrant/config/vm/provisioner_test.rb +92 -0
  218. data/test/unit/vagrant/config/vm_test.rb +56 -0
  219. data/test/unit/vagrant/config_test.rb +162 -0
  220. data/test/unit/vagrant/data_store_test.rb +77 -0
  221. data/test/unit/vagrant/downloaders/base_test.rb +28 -0
  222. data/test/unit/vagrant/downloaders/file_test.rb +48 -0
  223. data/test/unit/vagrant/downloaders/http_test.rb +82 -0
  224. data/test/unit/vagrant/environment_test.rb +598 -0
  225. data/test/unit/vagrant/errors_test.rb +42 -0
  226. data/test/unit/vagrant/hosts/base_test.rb +46 -0
  227. data/test/unit/vagrant/hosts/bsd_test.rb +53 -0
  228. data/test/unit/vagrant/hosts/linux_test.rb +54 -0
  229. data/test/unit/vagrant/plugin_test.rb +9 -0
  230. data/test/unit/vagrant/provisioners/base_test.rb +63 -0
  231. data/test/unit/vagrant/provisioners/chef_client_test.rb +190 -0
  232. data/test/unit/vagrant/provisioners/chef_solo_test.rb +114 -0
  233. data/test/unit/vagrant/provisioners/chef_test.rb +202 -0
  234. data/test/unit/vagrant/provisioners/puppet_server_test.rb +68 -0
  235. data/test/unit/vagrant/provisioners/puppet_test.rb +182 -0
  236. data/test/unit/vagrant/provisioners/shell_test.rb +79 -0
  237. data/test/unit/vagrant/ssh/session_test.rb +40 -0
  238. data/test/unit/vagrant/ssh_test.rb +307 -0
  239. data/test/unit/vagrant/systems/base_test.rb +18 -0
  240. data/test/unit/vagrant/systems/linux_test.rb +104 -0
  241. data/test/unit/vagrant/ui_test.rb +29 -0
  242. data/test/unit/vagrant/util/busy_test.rb +106 -0
  243. data/test/unit/vagrant/util/counter_test.rb +29 -0
  244. data/test/unit/vagrant/util/hash_with_indifferent_access_test.rb +39 -0
  245. data/test/unit/vagrant/util/platform_test.rb +18 -0
  246. data/test/unit/vagrant/util/retryable_test.rb +50 -0
  247. data/test/unit/vagrant/util/stacked_proc_runner_test.rb +43 -0
  248. data/test/unit/vagrant/util/template_renderer_test.rb +145 -0
  249. data/test/unit/vagrant/vm_test.rb +300 -0
  250. data/vagrant.gemspec +35 -0
  251. metadata +431 -0
@@ -0,0 +1,23 @@
1
+ <% if node_name %>
2
+ node_name "<%= node_name %>"
3
+ <% end %>
4
+ file_cache_path "<%= provisioning_path %>"
5
+ cookbook_path <%= cookbooks_path.inspect %>
6
+ role_path <%= roles_path.inspect %>
7
+ log_level <%= log_level.inspect %>
8
+
9
+ <% if data_bags_path -%>
10
+ data_bag_path <%= data_bags_path.inspect %>
11
+ <% end %>
12
+
13
+ <% if recipe_url -%>
14
+ recipe_url "<%= recipe_url %>"
15
+ <% end -%>
16
+
17
+ http_proxy <%= http_proxy.inspect %>
18
+ http_proxy_user <%= http_proxy_user.inspect %>
19
+ http_proxy_pass <%= http_proxy_pass.inspect %>
20
+ https_proxy <%= https_proxy.inspect %>
21
+ https_proxy_user <%= https_proxy_user.inspect %>
22
+ https_proxy_pass <%= https_proxy_pass.inspect %>
23
+ no_proxy <%= no_proxy.inspect %>
@@ -0,0 +1,86 @@
1
+ Vagrant::Config.run do |config|
2
+ # All Vagrant configuration is done here. The most common configuration
3
+ # options are documented and commented below. For a complete reference,
4
+ # please see the online documentation at vagrantup.com.
5
+
6
+ # Every Vagrant virtual environment requires a box to build off of.
7
+ config.vm.box = "<%= box_name %>"
8
+
9
+ # The url from where the 'config.vm.box' box will be fetched if it
10
+ # doesn't already exist on the user's system.
11
+ <% if box_url.nil? %># <% end %>config.vm.box_url = "<%= box_url || "http://domain.com/path/to/above.box" %>"
12
+
13
+ # Boot with a GUI so you can see the screen. (Default is headless)
14
+ # config.vm.boot_mode = :gui
15
+
16
+ # Assign this VM to a host only network IP, allowing you to access it
17
+ # via the IP.
18
+ # config.vm.network "33.33.33.10"
19
+
20
+ # Forward a port from the guest to the host, which allows for outside
21
+ # computers to access the VM, whereas host only networking does not.
22
+ # config.vm.forward_port "http", 80, 8080
23
+
24
+ # Share an additional folder to the guest VM. The first argument is
25
+ # an identifier, the second is the path on the guest to mount the
26
+ # folder, and the third is the path on the host to the actual folder.
27
+ # config.vm.share_folder "v-data", "/vagrant_data", "../data"
28
+
29
+ # Enable provisioning with Puppet stand alone. Puppet manifests
30
+ # are contained in a directory path relative to this Vagrantfile.
31
+ # You will need to create the manifests directory and a manifest in
32
+ # the file <%= box_name %>.pp in the manifests_path directory.
33
+ #
34
+ # An example Puppet manifest to provision the message of the day:
35
+ #
36
+ # # group { "puppet":
37
+ # # ensure => "present",
38
+ # # }
39
+ # #
40
+ # # File { owner => 0, group => 0, mode => 0644 }
41
+ # #
42
+ # # file { '/etc/motd':
43
+ # # content => "Welcome to your Vagrant-built virtual machine!
44
+ # # Managed by Puppet.\n"
45
+ # # }
46
+ #
47
+ # config.vm.provision :puppet do |puppet|
48
+ # puppet.manifests_path = "manifests"
49
+ # puppet.manifest_file = "<%= box_name %>.pp"
50
+ # end
51
+
52
+ # Enable provisioning with chef solo, specifying a cookbooks path (relative
53
+ # to this Vagrantfile), and adding some recipes and/or roles.
54
+ #
55
+ # config.vm.provision :chef_solo do |chef|
56
+ # chef.cookbooks_path = "cookbooks"
57
+ # chef.add_recipe "mysql"
58
+ # chef.add_role "web"
59
+ #
60
+ # # You may also specify custom JSON attributes:
61
+ # chef.json = { :mysql_password => "foo" }
62
+ # end
63
+
64
+ # Enable provisioning with chef server, specifying the chef server URL,
65
+ # and the path to the validation key (relative to this Vagrantfile).
66
+ #
67
+ # The Opscode Platform uses HTTPS. Substitute your organization for
68
+ # ORGNAME in the URL and validation key.
69
+ #
70
+ # If you have your own Chef Server, use the appropriate URL, which may be
71
+ # HTTP instead of HTTPS depending on your configuration. Also change the
72
+ # validation key to validation.pem.
73
+ #
74
+ # config.vm.provision :chef_client do |chef|
75
+ # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
76
+ # chef.validation_key_path = "ORGNAME-validator.pem"
77
+ # end
78
+ #
79
+ # If you're using the Opscode platform, your validator client is
80
+ # ORGNAME-validator, replacing ORGNAME with your organization name.
81
+ #
82
+ # IF you have your own Chef Server, the default validation client name is
83
+ # chef-validator, unless you changed the configuration.
84
+ #
85
+ # chef.validation_client_name = "ORGNAME-validator"
86
+ 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,556 @@
1
+ en:
2
+ vagrant:
3
+ general:
4
+ creating_home_dir: "Creating home directory since it doesn't exist: %{directory}"
5
+ moving_home_dir: "Moving old Vagrant home directory to new location: %{directory}"
6
+ home_dir_migration_failed: |-
7
+ Both an old and new Vagrant home directory exist. Only the new one will
8
+ be used. Please merge the old directory into the new directory if you'd
9
+ like to use the old data as well.
10
+
11
+ Old: %{old}
12
+ New: %{new}
13
+
14
+ #-------------------------------------------------------------------------------
15
+ # Translations for exception classes
16
+ #-------------------------------------------------------------------------------
17
+ errors:
18
+ base_vm_not_found: The base VM with the name '%{name}' was not found.
19
+ box_not_found: Box '%{name}' could not be found.
20
+ chef_not_detected: |-
21
+ The chef (either `chef-solo` or `chef-client`) binary was not found on
22
+ the VM and is required for chef provisioning. Please verify that chef
23
+ is installed and that the binary is available on the PATH.
24
+ puppet_not_detected: |-
25
+ The `puppet` binary was not found on the VM and is required for Puppet provisioning.
26
+ Please verify that Puppet is installed and that the binary is available on the PATH.
27
+ puppetd_not_detected: |-
28
+ The `puppetd` binary was not found on the VM is required for Puppet Server provisioning.
29
+ Please verify that Puppet is installed and that the binary is available on the PATH.
30
+ cli_missing_env: This command requires that a Vagrant environment be properly passed in as the last parameter.
31
+ config_validation: |-
32
+ There was a problem with the configuration of Vagrant. The error message(s)
33
+ are printed below:
34
+
35
+ %{messages}
36
+ dotfile_is_directory: |-
37
+ The local file Vagrant uses to store data ".vagrant" already exists
38
+ and is a directory! If you are in your home directory, then please run
39
+ this command in another directory. If you aren't in a home directory,
40
+ then please rename ".vagrant" to something else, or configure Vagrant
41
+ to use another filename by modifying `config.vagrant.dotfile_name`.
42
+ environment_locked: |-
43
+ An instance of Vagrant is already running. Only one instance of Vagrant
44
+ may run at any given time to avoid problems with VirtualBox inconsistencies
45
+ occurring. Please wait for the other instance of Vagrant to end and then
46
+ try again.
47
+ interrupted: "Vagrant exited after cleanup due to external interrupt."
48
+ multi_vm_required: "A multi-vm environment is required for name specification to this command."
49
+ multi_vm_target_required: "`vagrant %{command}` requires a specific VM name to target in a multi-VM environment."
50
+ no_env: "No Vagrant environment detected. Run `vagrant init` to set one up."
51
+ ssh_authentication_failed: |-
52
+ SSH authentication failed! This is typically caused by the public/private
53
+ keypair for the SSH user not being properly set on the guest VM. Please
54
+ verify that the guest VM is setup with the proper public key, and that
55
+ the private key path for Vagrant is setup properly as well.
56
+ ssh_bad_exit_status: |-
57
+ The following SSH command responded with a non-zero exit status.
58
+ Vagrant assumes that this means the command failed!
59
+
60
+ %{command}
61
+
62
+ The output of the command prior to failing is outputted below:
63
+
64
+ %{output}
65
+ ssh_connection_refused: |-
66
+ SSH connection was refused! This usually happens if the VM failed to
67
+ boot properly. Some steps to try to fix this: First, try reloading your
68
+ VM with `vagrant reload`, since a simple restart sometimes fixes things.
69
+ If that doesn't work, destroy your VM and recreate it with a `vagrant destroy`
70
+ followed by a `vagrant up`. If that doesn't work, contact a Vagrant
71
+ maintainer (support channels listed on the website) for more assistance.
72
+ ssh_key_bad_permissions: |-
73
+ The private key to connect to this box via SSH has invalid permissions
74
+ set on it. The permissions of the private key should be set to 0600, otherwise SSH will
75
+ ignore the key. Vagrant tried to do this automatically for you but failed. Please set the
76
+ permissions on the following file to 0600 and then try running this command again:
77
+
78
+ %{key_path}
79
+ ssh_port_not_detected: |-
80
+ Vagrant couldn't determine the SSH port for your VM! This is a rare,
81
+ exceptional event, and a bug should be filed. Please try recreating your
82
+ VM (vagrant destroy, then vagrant up). Sorry!
83
+ ssh_unavailable: "`ssh` binary could not be found. Is an SSH client installed?"
84
+ ssh_unavailable_windows: |-
85
+ `vagrant ssh` isn't available on the Windows platform. The
86
+ vagrant.ppk file for use with Putty is available at:
87
+
88
+ %{key_path}.ppk
89
+
90
+ To use this create a new Putty session for `vagrant@localhost`
91
+ on port `%{ssh_port}`, in the Connection>SSH>Auth
92
+ configuration section navigate to the vagrant.ppk file,
93
+ select it, save the session for later use, and connect.
94
+
95
+ For a more detailed guide please consult:
96
+
97
+ http://vagrantup.com/docs/getting-started/setup/windows.html
98
+
99
+ system:
100
+ invalid_class: |-
101
+ The specified system does not inherit from `Vagrant::Systems::Base`. The
102
+ specified system class must inherit from this class.
103
+
104
+ The specified system class was: %{system}
105
+ unknown_type: |-
106
+ The specified system type is unknown: %{system}. Please change this
107
+ to a proper value.
108
+ unspecified: |-
109
+ A VM system type must be specified! This is done via the `config.vm.system`
110
+ configuration value. Please read the documentation online for more information.
111
+ vagrantfile_syntax_error: |-
112
+ There is a syntax error in the following Vagrantfile. The syntax error
113
+ message is reproduced below for convenience:
114
+
115
+ %{file}
116
+ virtualbox_invalid_version: |-
117
+ Vagrant has detected that you have VirtualBox version %{version} installed!
118
+ Vagrant requires that you use at least VirtualBox version 4.1. Please install
119
+ a more recent version of VirtualBox to continue.
120
+
121
+ Early versions of Vagrant support earlier versions of VirtualBox. Specifically,
122
+ the 0.7.x series supports VirtualBox 4.0.x and the 0.6.x series supports VirtualBox
123
+ 3.2.x. Please use the version you need.
124
+
125
+ Any newer versions may not be supported yet. Please check the mailing list
126
+ for any announcements of newer versions.
127
+ virtualbox_not_detected: |-
128
+ Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
129
+ If VirtualBox is installed, it may be an incorrect version. Vagrant currently
130
+ requires VirtualBox 4.1.x. Please install the proper version to continue.
131
+
132
+ If you have an older or newer version of VirtualBox, please make sure you're
133
+ using the proper version of Vagrant. Ask the mailing list if you have questions.
134
+ virtualbox_not_detected_win64: |-
135
+ Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed
136
+ with version 4.0.0 or higher.
137
+
138
+ Additionally, it appears you're on 64-bit Windows. If this is the case, and
139
+ VirtualBox is properly installed with the correct version, then please make
140
+ sure you're running Vagrant via JRuby on a 64-bit Java runtime. For more
141
+ information on how to set this up and how to verify it is properly setup,
142
+ please view the guide online at:
143
+
144
+ http://vagrantup.com/docs/getting-started/setup/windows_x64.html
145
+
146
+ vm_creation_required: "VM must be created before running this command. Run `vagrant up` first."
147
+ vm_inaccessible: |-
148
+ Your VM has become "inaccessible." Unfortunately, this is a critical error
149
+ with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox
150
+ and clear out your inaccessible virtual machines or find a way to fix
151
+ them.
152
+ vm_not_found: "A VM by the name of %{name} was not found."
153
+ vm_not_running: "VM must be running to open SSH connection."
154
+
155
+ #-------------------------------------------------------------------------------
156
+ # Translations for config validation errors
157
+ #-------------------------------------------------------------------------------
158
+ config:
159
+ common:
160
+ error_empty: "`%{field}` must be filled in."
161
+ chef:
162
+ run_list_empty: "Run list must not be empty."
163
+ cookbooks_path_empty: "Must specify a cookbooks path for chef solo."
164
+ server_url_empty: "Chef server URL must be populated."
165
+ validation_key_path: "Validation key path must be valid path to your chef server validation key."
166
+ ssh:
167
+ private_key_missing: "`private_key_path` file must exist: %{path}"
168
+ vm:
169
+ base_mac_invalid: "Base MAC address for eth0/NAT must be set. Contact box maintainer for more information."
170
+ boot_mode_invalid: "Boot mode must be one of: vrdp or gui"
171
+ box_missing: "A box must be specified."
172
+ box_not_found: "The box '%{name}' could not be found."
173
+ network_ip_invalid: "The host only network IP '%{ip}' is invalid."
174
+ network_ip_ends_one: |-
175
+ The host only network IP '%{ip}' must not end in a 1, as this
176
+ is reserved for the host machine.
177
+ shared_folder_hostpath_missing: "Shared folder host path for '%{name}' doesn't exist: %{path}"
178
+ shared_folder_nfs_owner_group: |-
179
+ Shared folder '%{name}': NFS does not support the owner/group settings.
180
+ provisioner_chef_server_changed: "The provisioner 'chef_server' is now 'chef_client'"
181
+ provisioner_not_found: "The provisioner '%{shortcut}' doesn't exist."
182
+ provisioner_invalid_class: "The provisioner '%{shortcut}' must inherit from `Vagrant::Provisioners::Base`."
183
+
184
+ #-------------------------------------------------------------------------------
185
+ # Translations for commands. e.g. `vagrant x`
186
+ #-------------------------------------------------------------------------------
187
+ commands:
188
+ common:
189
+ vm_not_created: "VM not created. Moving on..."
190
+ vm_not_running: "VM is not currently running. Please bring it up to run this command."
191
+ box:
192
+ no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some."
193
+ status:
194
+ aborted: |-
195
+ The VM is in an aborted state. This means that it was abruptly
196
+ stopped without properly closing the session. Run `vagrant up`
197
+ to resume this virtual machine. If any problems persist, you may
198
+ have to destroy and restart the virtual machine.
199
+ inaccessible: |-
200
+ The VM is inaccessible! This is a rare case which means that VirtualBox
201
+ can't find your VM configuration. This usually happens when upgrading
202
+ VirtualBox, moving to a new computer, etc. Please consult VirtualBox
203
+ for how to handle this issue.
204
+ output: |-
205
+ Current VM states:
206
+
207
+ %{states}
208
+
209
+ %{message}
210
+ not_created: |-
211
+ The environment has not yet been created. Run `vagrant up` to
212
+ create the environment.
213
+ powered_off: The VM is powered off. To restart the VM, simply run `vagrant up`
214
+ running: |-
215
+ The VM is running. To stop this VM, you can run `vagrant halt` to
216
+ shut it down forcefully, or you can run `vagrant suspend` to simply
217
+ suspend the virtual machine. In either case, to restart it again,
218
+ simply run `vagrant up`.
219
+ saved: To resume this VM, simply run `vagrant up`.
220
+ stuck: |-
221
+ The VM is "stuck!" This is a very rare state which means that
222
+ VirtualBox is unable to recover the current state of the VM.
223
+ The only known solution to this problem is to restart your
224
+ machine, sorry.
225
+ listing: |-
226
+ This environment represents multiple VMs. The VMs are all listed
227
+ above with their current state. For more information about a specific
228
+ VM, run `vagrant status NAME`.
229
+ up:
230
+ vm_created: "VM already created. Booting if its not already running..."
231
+ upgrade_to_060:
232
+ already_done: "Environment appears to already be upgraded to 0.6.0. Doing nothing!"
233
+ ask: "Are you sure you want to execute this command?"
234
+ backing_up: "Backing up previous .vagrant file..."
235
+ complete: "Environment upgraded to 0.6.0 successfully."
236
+ info: |-
237
+ This command will upgrade the current environment from a pre-0.6.0
238
+ environment to a 0.6.x compatible environment. Running this command
239
+ multiple times should be okay. This command will make a backup file
240
+ prior to making any changes. Therefore, if anything goes wrong, then
241
+ restore that file to ".vagrant" in the same directory as the Vagrantfile.
242
+ quit: "Not executing this command by user request. Quitting..."
243
+ version:
244
+ output: "Vagrant version %{version}"
245
+
246
+ #-------------------------------------------------------------------------------
247
+ # Translations for Vagrant middleware acions
248
+ #-------------------------------------------------------------------------------
249
+ actions:
250
+ runner:
251
+ waiting_cleanup: "Waiting for cleanup before exiting..."
252
+ exit_immediately: "Exiting immediately, without cleanup!"
253
+ vm:
254
+ boot:
255
+ booting: Booting VM...
256
+ waiting: Waiting for VM to boot. This can take a few minutes.
257
+ ready: VM booted and ready for use!
258
+ failed: Failed to connect to VM!
259
+ failed_to_boot: |-
260
+ Failed to connect to VM via SSH. Please verify the VM successfully booted
261
+ by looking at the VirtualBox GUI.
262
+ check_box:
263
+ not_found: Box %{name} was not found. Fetching box from specified URL...
264
+ not_specified: |-
265
+ No base box was specified! A base box is required as a staring point
266
+ for every vagrant virtual machine. Please specify one in your Vagrantfile
267
+ using `config.vm.box`
268
+ does_not_exist: |-
269
+ Specified box `%{name}` does not exist!
270
+
271
+ The box must be added through the `vagrant box add` command. Please view
272
+ the documentation associated with the command for more information.
273
+ check_guest_additions:
274
+ not_detected: |-
275
+ No guest additions were detected on the base box for this VM! Guest
276
+ additions are required for forwarded ports, shared folders, host only
277
+ networking, and more. If SSH fails on this machine, please install
278
+ the guest additions and repackage the box to continue.
279
+
280
+ This is not an error message; everything may continue to work properly,
281
+ in which case you may ignore this message.
282
+ version_mismatch: |-
283
+ The guest additions on this VM do not match the install version of
284
+ VirtualBox! This may cause things such as forwarded ports, shared
285
+ folders, and more to not work properly. If any of those things fail on
286
+ this machine, please update the guest additions and repackage the
287
+ box.
288
+
289
+ Guest Additions Version: %{guest_version}
290
+ VirtualBox Version: %{virtualbox_version}
291
+ clear_forward_ports:
292
+ deleting: Clearing any previously set forwarded ports...
293
+ clear_shared_folders:
294
+ deleting: Cleaning previously set shared folders...
295
+ customize:
296
+ running: Running any VM customizations...
297
+ destroy:
298
+ destroying: Destroying VM and associated drives...
299
+ destroy_network:
300
+ destroying: Destroying unused networking interface...
301
+ disable_networks:
302
+ disabling: Disabling host only networks...
303
+ discard_state:
304
+ discarding: Discarding saved state of VM...
305
+ export:
306
+ create_dir: Creating temporary directory for export...
307
+ exporting: Exporting VM...
308
+ power_off: "The Vagrant virtual environment you are trying to package must be powered off."
309
+ forward_ports:
310
+ auto_empty: |-
311
+ Vagrant found a port collision for the specified port and virtual machine.
312
+ While this port was marked to be auto-corrected, the ports in the
313
+ auto-correction range are all also used.
314
+
315
+ VM: %{vm_name}
316
+ Forwarded port: %{name} (%{guest_port} => %{host_port})
317
+ below_threshold_error: |-
318
+ The host port of all forwarded ports must be above 1024. VirtualBox
319
+ does not allow host ports to be below 1024. (Guest ports below 1024
320
+ are fine. For example: SSH on port 22 on the guest can be forwarded
321
+ to port 2222, but not 222).
322
+ collision_error: |-
323
+ Vagrant cannot forward the specified ports on this VM, since they
324
+ would collide with another VirtualBox virtual machine's forwarded
325
+ ports! The '%{name}' forwarded port (%{host_port}) is already in use on the host
326
+ machine.
327
+
328
+ To fix this, modify your current projects Vagrantfile to use another
329
+ port. Example, where '1234' would be replaced by a unique host port:
330
+
331
+ config.vm.forward_port("%{name}", %{guest_port}, 1234)
332
+
333
+ fixed_collision: Fixed port collision '%{name}'. Now on port %{new_port}.
334
+ forwarding: Forwarding ports...
335
+ forwarding_entry: "-- %{name}: %{guest_port} => %{host_port} (adapter %{adapter})"
336
+ non_nat: |-
337
+ VirtualBox adapter #%{adapter} not configured as "NAT"
338
+ Skipping port forwarding '%{name}'.
339
+ halt:
340
+ force: Forcing shutdown of VM...
341
+ host_name:
342
+ setting: "Setting host name..."
343
+ import:
344
+ importing: Importing base box '%{name}'...
345
+ failure: |-
346
+ The VM import failed! Try running `VBoxManage import` on the box file
347
+ manually for more verbose error output.
348
+ match_mac:
349
+ matching: Matching MAC address for NAT networking...
350
+ no_base_mac: |-
351
+ No base MAC address was specified. This is required for the NAT networking
352
+ to work properly (and hence port forwarding, SSH, etc.). Specifying this
353
+ MAC address is typically up to the box and box maintiner. Please contact
354
+ the relevant person to solve this issue.
355
+ network:
356
+ collides: |-
357
+ The specified host network collides with a non-hostonly network!
358
+ This will cause your specified IP to be inaccessible. Please change
359
+ the IP or name of your host only network to not match that of
360
+ a bridged or non-hostonly network.
361
+ creating: "Creating new host only network for environment..."
362
+ enabling: "Enabling host only network..."
363
+ not_found: |-
364
+ The specified host network could not be found: '%{name}.'
365
+ If the name specification is removed, Vagrant will create a new
366
+ host only network for you. Alternatively, please create the
367
+ specified network manually.
368
+ preparing: "Preparing host only network..."
369
+ windows_not_implemented: |-
370
+ Host only networking is currently broken on Windows due to a bug
371
+ in jruby-win32ole. When the bug is fixed, a patch release for Vagrant
372
+ will be released to remove this error. Until then, please just use
373
+ forwarded ports.
374
+ nfs:
375
+ host_required: |-
376
+ A host class is required for NFS shared folders. By default, these
377
+ are auto-detected, but can be overridden with `config.vagrant.host`.
378
+ There is currently not host class loaded.
379
+ no_host_network: |-
380
+ NFS shared folders requires that host only networking is enabled.
381
+ Please enable host only networking via `config.vm.network`.
382
+ not_supported: |-
383
+ The host class is reporting that NFS is not supported by this host,
384
+ or `nfsd` may not be installed. Please verify that `nfsd` is installed
385
+ on your machine, and retry.
386
+ exporting: Exporting NFS shared folders...
387
+ mounting: Mounting NFS shared folders...
388
+ persist:
389
+ dotfile_error: |-
390
+ The dotfile which Vagrant uses to store the UUID of the project's
391
+ virtual machine already exists and is not a file! The dotfile is
392
+ currently configured to be '%{dotfile_path}'
393
+
394
+ To change this value, please see `config.vagrant.dotfile_name`
395
+
396
+ Are you trying to use Vagrant from your home directory? This is the
397
+ leading cause of this error message. To resolve this, simply use a
398
+ different directory. Or, if you really want to run Vagrant from your
399
+ home directory, modify the `config.vagrant.dotfile_name` configuration
400
+ key.
401
+ persisting: "Persisting the VM UUID (%{uuid})..."
402
+ provision:
403
+ beginning: "Running provisioner: %{provisioner}..."
404
+ resume:
405
+ resuming: Resuming suspended VM...
406
+ share_folders:
407
+ creating: Creating shared folders metadata...
408
+ mounting: Mounting shared folders...
409
+ mounting_entry: "-- %{name}: %{guest_path}"
410
+ nomount_entry: "-- %{name}: Automounting disabled."
411
+ suspend:
412
+ suspending: Saving VM state and suspending execution...
413
+
414
+ box:
415
+ destroy:
416
+ destroying: "Deleting box '%{name}'..."
417
+ download:
418
+ with: "Downloading with %{class}..."
419
+ cleaning: "Cleaning up downloaded box..."
420
+ unknown_type: "Unknown or unsupported URI type given for box download."
421
+ unpackage:
422
+ extracting: "Extracting box..."
423
+ already_exists: |-
424
+ A box already exists under the name of '%{name}'. This may or may
425
+ not be the same box you are trying to add. Please use another name
426
+ or remove the previous box then try to add it again.
427
+ verify:
428
+ verifying: "Verifying box..."
429
+ failed: |-
430
+ The box file you're attempting to add is invalid. This can be
431
+ commonly attributed to typos in the path given to the box add
432
+ command. Another common case of this is invalid packaging of the
433
+ box itself.
434
+
435
+ general:
436
+ package:
437
+ packaging: "Packaging additional file: %{file}"
438
+ compressing: "Compressing package to: %{tar_path}"
439
+ output_exists: |-
440
+ The specified file to save the package as already exists. Please
441
+ remove this file or specify a different file name for outputting.
442
+ requires_directory: |-
443
+ A directory was not specified to package. This should never happen
444
+ and is a result of an internal inconsistency.
445
+ include_file_missing: |-
446
+ Package include file doesn't exist: %{file}
447
+
448
+ downloaders:
449
+ file:
450
+ download: "Copying box to temporary location..."
451
+ file_missing: "The specified path to a file doesn't exist."
452
+ http:
453
+ download: "Downloading box: %{url}"
454
+ socket_error: |-
455
+ An error occurred while trying to download the specified box. This most
456
+ often happens if there is no internet connection or the address is
457
+ invalid.
458
+ status_error: |-
459
+ Bad status code: %{status}
460
+
461
+ Please verify that the box exists and is accessible. Also verify that
462
+ this computer is properly connected to the internet.
463
+
464
+ hosts:
465
+ bsd:
466
+ nfs_export:
467
+ prepare: "Preparing to edit /etc/exports. Administrator privileges will be required..."
468
+ linux:
469
+ nfs_export:
470
+ prepare: "Preparing to edit /etc/exports. Administrator privileges will be required..."
471
+
472
+ arch:
473
+ nfs_export:
474
+ prepare: "Preparing to edit /etc/exports. Administrator privileges will be required..."
475
+
476
+ provisioners:
477
+ chef:
478
+ json: "Generating chef JSON and uploading..."
479
+ client_key_folder: "Creating folder to hold client key..."
480
+ upload_validation_key: "Uploading chef client validation key..."
481
+ upload_encrypted_data_bag_secret_key: "Uploading chef encrypted data bag secret key..."
482
+ running_client: "Running chef-client..."
483
+ running_solo: "Running chef-solo..."
484
+ invalid_provisioner: "Vagrant::Provisioners::Chef is not a valid provisioner! Use ChefSolo or ChefClient instead."
485
+ not_detected: |-
486
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
487
+ could be because the PATH is not properly setup or perhaps chef is not
488
+ installed on this guest. Chef provisioning can not continue without
489
+ chef properly installed.
490
+ server_url_required: |-
491
+ Chef server provisioning requires that the `config.chef.chef_server_url` be set to the
492
+ URL of your chef server. Examples include "http://12.12.12.12:4000" and
493
+ "http://myserver.com:4000" (the port of course can be different, but 4000 is the default)
494
+ server_validation_key_required: |-
495
+ Chef server provisioning requires that the `config.chef.validation_key_path` configuration
496
+ be set to a path on your local machine of the validation key used to register the
497
+ VM with the chef server.
498
+ server_validation_key_doesnt_exist: |-
499
+ The validation key set for `config.chef.validation_key_path` does not exist! This
500
+ file needs to exist so it can be uploaded to the virtual machine.
501
+
502
+ puppet:
503
+ not_detected: |-
504
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
505
+ could be because the PATH is not properly setup or perhaps Puppet is not
506
+ installed on this guest. Puppet provisioning can not continue without
507
+ Puppet properly installed.
508
+ running_puppet: "Running Puppet with %{manifest}..."
509
+ manifest_missing: "The Puppet %{manifest} manifest is missing. You cannot configure this box."
510
+ manifests_path_missing: "The manifests path specified for Puppet does not exist: %{path}"
511
+ module_path_missing: "The configured module path doesn't exist: %{path}"
512
+
513
+ puppet_server:
514
+ not_detected: |-
515
+ The `%{binary}` binary appears to not be in the PATH of the guest. This
516
+ could be because the PATH is not properly setup or perhaps Puppet is not
517
+ installed on this guest. Puppet provisioning can not continue without
518
+ Puppet properly installed.
519
+ running_puppetd: "Running Puppet agent..."
520
+
521
+ shell:
522
+ args_not_string: "Shell provisioner `args` must be a string."
523
+ path_and_inline_set: "Only one of `path` or `inline` may be set."
524
+ no_path_or_inline: "One of `path` or `inline` must be set."
525
+ path_invalid: "`path` for shell provisioner does not exist on the host system: %{path}"
526
+ upload_path_not_set: "`upload_path` must be set for the shell provisioner."
527
+
528
+ systems:
529
+ base:
530
+ unsupported_host_only: |-
531
+ Host only networking is very distro-specific. Vagrant has support for many
532
+ distros built-in: Debian, Ubuntu, Gentoo, and RedHat. The distro of your VM
533
+ couldn't be detected, or isn't supported for host only networking.
534
+
535
+ Most of the time this is simply due to the fact that no one has contributed
536
+ back the SSH commands necessary to set this up. Please report a bug and this
537
+ will be fixed for your distro.
538
+ unsupported_host_name: |-
539
+ Setting host name is currently only supported on Debian, Ubuntu and RedHat.
540
+ If you'd like your guest OS to be supported, please open a ticket on the
541
+ project.
542
+ linux:
543
+ attempting_halt: "Attempting graceful shutdown of linux..."
544
+ mount_fail: "Failed to mount shared folders. `vboxsf` was not available."
545
+ mount_nfs_fail: |-
546
+ Mounting NFS shared folders failed. This is most often caused by the NFS
547
+ client software not being installed on the guest machine. Please verify
548
+ that the NFS client software is properly installed, and consult any resources
549
+ specific to the linux distro you're using for more information on how to
550
+ do this.
551
+
552
+ solaris:
553
+ attempting_halt: "Attempting graceful shutdown of solaris..."
554
+
555
+ freebsd:
556
+ attempting_halt: "Attempting graceful shutdown of FreeBSD..."