vagrant-unbundled 1.8.4.2 → 1.8.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +52 -0
  4. data/Gemfile.lock +9 -7
  5. data/RELEASE.md +37 -14
  6. data/lib/vagrant/action/builtin/box_add.rb +3 -1
  7. data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +5 -0
  8. data/lib/vagrant/box_collection.rb +2 -1
  9. data/lib/vagrant/bundler.rb +36 -1
  10. data/lib/vagrant/errors.rb +16 -8
  11. data/lib/vagrant/plugin/state_file.rb +8 -1
  12. data/lib/vagrant/util/platform.rb +1 -1
  13. data/plugins/guests/arch/cap/change_host_name.rb +13 -10
  14. data/plugins/guests/arch/cap/configure_networks.rb +11 -8
  15. data/plugins/guests/arch/cap/nfs.rb +35 -0
  16. data/plugins/guests/arch/cap/rsync.rb +16 -0
  17. data/plugins/guests/arch/cap/smb.rb +17 -0
  18. data/plugins/guests/arch/plugin.rb +28 -3
  19. data/plugins/guests/atomic/cap/change_host_name.rb +13 -10
  20. data/plugins/guests/atomic/plugin.rb +3 -3
  21. data/plugins/guests/{netbsd → bsd}/cap/halt.rb +2 -2
  22. data/plugins/guests/bsd/cap/nfs.rb +49 -0
  23. data/plugins/guests/bsd/cap/public_key.rb +65 -0
  24. data/plugins/guests/bsd/cap/virtualbox.rb +16 -0
  25. data/plugins/guests/bsd/guest.rb +9 -0
  26. data/plugins/guests/bsd/plugin.rb +40 -0
  27. data/plugins/guests/coreos/cap/change_host_name.rb +1 -1
  28. data/plugins/guests/coreos/plugin.rb +4 -4
  29. data/plugins/guests/darwin/cap/change_host_name.rb +4 -1
  30. data/plugins/guests/darwin/cap/configure_networks.rb +12 -5
  31. data/plugins/guests/darwin/cap/halt.rb +3 -1
  32. data/plugins/guests/darwin/cap/rsync.rb +7 -4
  33. data/plugins/guests/darwin/plugin.rb +13 -28
  34. data/plugins/guests/debian/cap/change_host_name.rb +14 -15
  35. data/plugins/guests/debian/cap/configure_networks.rb +2 -6
  36. data/plugins/guests/debian/cap/{nfs_client.rb → nfs.rb} +2 -1
  37. data/plugins/guests/debian/cap/rsync.rb +5 -6
  38. data/plugins/guests/debian/plugin.rb +8 -8
  39. data/plugins/guests/esxi/cap/mount_nfs_folder.rb +2 -2
  40. data/plugins/guests/esxi/plugin.rb +6 -6
  41. data/plugins/guests/fedora/cap/flavor.rb +1 -1
  42. data/plugins/guests/fedora/plugin.rb +2 -17
  43. data/plugins/guests/freebsd/cap/change_host_name.rb +2 -3
  44. data/plugins/guests/freebsd/cap/rsync.rb +7 -4
  45. data/plugins/guests/freebsd/plugin.rb +9 -29
  46. data/plugins/guests/funtoo/plugin.rb +3 -8
  47. data/plugins/guests/gentoo/cap/change_host_name.rb +21 -6
  48. data/plugins/guests/gentoo/cap/configure_networks.rb +35 -26
  49. data/plugins/guests/gentoo/plugin.rb +4 -4
  50. data/plugins/guests/linux/cap/choose_addressable_ip_addr.rb +2 -3
  51. data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +31 -45
  52. data/plugins/guests/linux/cap/network_interfaces.rb +20 -0
  53. data/plugins/guests/linux/cap/nfs.rb +57 -0
  54. data/plugins/guests/linux/cap/public_key.rb +65 -0
  55. data/plugins/guests/linux/cap/rsync.rb +7 -4
  56. data/plugins/guests/linux/plugin.rb +30 -25
  57. data/plugins/guests/mint/plugin.rb +1 -1
  58. data/plugins/guests/netbsd/plugin.rb +10 -30
  59. data/plugins/guests/nixos/plugin.rb +5 -5
  60. data/plugins/guests/omnios/cap/change_host_name.rb +1 -1
  61. data/plugins/guests/omnios/plugin.rb +4 -4
  62. data/plugins/guests/openbsd/cap/change_host_name.rb +21 -3
  63. data/plugins/guests/openbsd/plugin.rb +10 -30
  64. data/plugins/guests/photon/cap/change_host_name.rb +1 -1
  65. data/plugins/guests/photon/plugin.rb +4 -4
  66. data/plugins/guests/pld/cap/change_host_name.rb +1 -1
  67. data/plugins/guests/pld/plugin.rb +4 -4
  68. data/plugins/guests/redhat/cap/change_host_name.rb +4 -3
  69. data/plugins/guests/redhat/cap/configure_networks.rb +1 -24
  70. data/plugins/guests/redhat/plugin.rb +7 -7
  71. data/plugins/guests/slackware/cap/change_host_name.rb +1 -1
  72. data/plugins/guests/slackware/cap/configure_networks.rb +1 -5
  73. data/plugins/guests/slackware/plugin.rb +3 -3
  74. data/plugins/guests/smartos/plugin.rb +12 -12
  75. data/plugins/guests/solaris/plugin.rb +14 -14
  76. data/plugins/guests/solaris11/plugin.rb +12 -12
  77. data/plugins/guests/suse/cap/change_host_name.rb +1 -1
  78. data/plugins/guests/suse/cap/configure_networks.rb +1 -5
  79. data/plugins/guests/suse/plugin.rb +8 -8
  80. data/plugins/guests/tinycore/cap/mount_nfs.rb +2 -2
  81. data/plugins/guests/tinycore/plugin.rb +7 -7
  82. data/plugins/guests/trisquel/plugin.rb +1 -1
  83. data/plugins/guests/ubuntu/guest.rb +1 -1
  84. data/plugins/guests/ubuntu/plugin.rb +1 -6
  85. data/plugins/guests/windows/plugin.rb +2 -2
  86. data/plugins/kernel_v2/config/vm.rb +8 -1
  87. data/plugins/providers/hyperv/scripts/get_vm_status.ps1 +25 -5
  88. data/plugins/providers/virtualbox/driver/meta.rb +1 -0
  89. data/plugins/providers/virtualbox/driver/version_5_1.rb +734 -0
  90. data/plugins/providers/virtualbox/plugin.rb +1 -0
  91. data/plugins/synced_folders/nfs/synced_folder.rb +10 -2
  92. data/plugins/synced_folders/rsync/helper.rb +11 -4
  93. data/scripts/{bintray_upload.sh → sign.sh} +0 -0
  94. data/templates/guests/arch/network_static.erb +3 -3
  95. data/templates/guests/arch/network_static6.erb +8 -0
  96. data/templates/guests/freebsd/network_static6.erb +6 -0
  97. data/templates/guests/funtoo/network_static6.erb +9 -0
  98. data/templates/guests/gentoo/network_dhcp.erb +1 -1
  99. data/templates/guests/gentoo/network_static.erb +4 -4
  100. data/templates/guests/gentoo/network_static6.erb +7 -0
  101. data/templates/guests/redhat/network_dhcp.erb +1 -1
  102. data/templates/guests/redhat/network_static.erb +4 -1
  103. data/templates/guests/{fedora → redhat}/network_static6.erb +5 -2
  104. data/templates/locales/en.yml +40 -6
  105. data/test/unit/plugins/guests/arch/cap/change_host_name_test.rb +6 -6
  106. data/test/unit/plugins/guests/arch/cap/configure_networks_test.rb +20 -15
  107. data/test/unit/plugins/guests/arch/cap/rsync_test.rb +30 -0
  108. data/test/unit/plugins/guests/arch/cap/smb_test.rb +38 -0
  109. data/test/unit/plugins/guests/atomic/cap/change_host_name_test.rb +9 -8
  110. data/test/unit/plugins/guests/{freebsd → bsd}/cap/halt_test.rb +11 -10
  111. data/test/unit/plugins/guests/{freebsd → bsd}/cap/insert_public_key_test.rb +7 -6
  112. data/test/unit/plugins/guests/bsd/cap/nfs_test.rb +68 -0
  113. data/test/unit/plugins/guests/coreos/cap/change_host_name_test.rb +5 -5
  114. data/test/unit/plugins/guests/darwin/cap/change_host_name_test.rb +5 -5
  115. data/test/unit/plugins/guests/darwin/cap/halt_test.rb +36 -0
  116. data/test/unit/plugins/guests/debian/cap/change_host_name_test.rb +3 -5
  117. data/test/unit/plugins/guests/debian/cap/configure_networks_test.rb +13 -9
  118. data/test/unit/plugins/guests/debian/cap/rsync_test.rb +3 -11
  119. data/test/unit/plugins/guests/freebsd/cap/change_host_name_test.rb +2 -2
  120. data/test/unit/plugins/guests/linux/cap/mount_nfs_test.rb +16 -3
  121. data/test/unit/plugins/guests/omnios/cap/change_host_name_test.rb +2 -2
  122. data/test/unit/plugins/guests/photon/cap/change_host_name_test.rb +2 -2
  123. data/test/unit/plugins/guests/pld/cap/change_host_name_test.rb +2 -2
  124. data/test/unit/plugins/guests/redhat/cap/change_host_name_test.rb +4 -3
  125. data/test/unit/plugins/guests/redhat/cap/configure_networks_test.rb +17 -33
  126. data/test/unit/plugins/guests/slackware/cap/change_host_name_test.rb +2 -2
  127. data/test/unit/plugins/guests/slackware/cap/configure_networks_test.rb +8 -4
  128. data/test/unit/plugins/guests/suse/cap/change_host_name_test.rb +2 -2
  129. data/test/unit/plugins/guests/suse/cap/configure_networks_test.rb +13 -16
  130. data/test/unit/plugins/kernel_v2/config/vm_test.rb +10 -2
  131. data/test/unit/templates/guests/arch/network_static_test.rb +4 -2
  132. data/test/unit/templates/guests/gentoo/network_dhcp_test.rb +2 -2
  133. data/test/unit/templates/guests/gentoo/network_static_test.rb +10 -10
  134. data/test/unit/templates/guests/redhat/network_dhcp_test.rb +2 -2
  135. data/test/unit/templates/guests/redhat/network_static_test.rb +9 -9
  136. data/vagrant.gemspec +3 -3
  137. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CHANGELOG.md +1 -0
  138. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CONTRIBUTING.md +38 -0
  139. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/LICENSE.txt +22 -0
  140. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/README.md +297 -0
  141. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/bin/listen +12 -0
  142. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/base.rb +141 -0
  143. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/bsd.rb +106 -0
  144. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb +26 -0
  145. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/darwin.rb +92 -0
  146. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/linux.rb +106 -0
  147. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/polling.rb +37 -0
  148. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/windows.rb +98 -0
  149. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter.rb +45 -0
  150. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/backend.rb +38 -0
  151. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/change.rb +76 -0
  152. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/cli.rb +65 -0
  153. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/directory.rb +87 -0
  154. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/config.rb +55 -0
  155. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/loop.rb +117 -0
  156. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/processor.rb +122 -0
  157. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/queue.rb +55 -0
  158. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/file.rb +80 -0
  159. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/fsm.rb +132 -0
  160. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb +29 -0
  161. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener/config.rb +41 -0
  162. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener.rb +133 -0
  163. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/logger.rb +32 -0
  164. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/options.rb +23 -0
  165. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/queue_optimizer.rb +132 -0
  166. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/entry.rb +64 -0
  167. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/symlink_detector.rb +39 -0
  168. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record.rb +118 -0
  169. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer/controller.rb +48 -0
  170. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer.rb +97 -0
  171. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/version.rb +3 -0
  172. data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen.rb +57 -0
  173. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.gitignore +8 -0
  174. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rspec +2 -0
  175. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop-disables.yml +384 -0
  176. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop.yml +3 -0
  177. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.travis.yml +43 -0
  178. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/AUTHORS +98 -0
  179. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Gemfile +11 -0
  180. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/LICENSE +21 -0
  181. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/README.md +667 -0
  182. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Rakefile +132 -0
  183. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/bin/restclient +92 -0
  184. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/history.md +310 -0
  185. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest-client.rb +2 -0
  186. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest_client.rb +2 -0
  187. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb +226 -0
  188. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/exceptions.rb +244 -0
  189. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/params_array.rb +72 -0
  190. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/payload.rb +209 -0
  191. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/platform.rb +49 -0
  192. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/raw_response.rb +38 -0
  193. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/request.rb +904 -0
  194. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/resource.rb +168 -0
  195. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/response.rb +80 -0
  196. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/utils.rb +235 -0
  197. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/version.rb +8 -0
  198. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows/root_certs.rb +105 -0
  199. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows.rb +8 -0
  200. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient.rb +184 -0
  201. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.gemspec +31 -0
  202. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.windows.gemspec +19 -0
  203. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/helpers.rb +22 -0
  204. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/_lib.rb +1 -0
  205. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/244b5494.0 +19 -0
  206. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/81b9768f.0 +19 -0
  207. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/README +8 -0
  208. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/digicert.crt +19 -0
  209. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/415660c1.0 +14 -0
  210. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/7651b327.0 +14 -0
  211. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/README +8 -0
  212. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/verisign.crt +14 -0
  213. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/digicert.crt +19 -0
  214. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/verisign.crt +14 -0
  215. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/httpbin_spec.rb +86 -0
  216. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/integration_spec.rb +125 -0
  217. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/request_spec.rb +127 -0
  218. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/spec_helper.rb +29 -0
  219. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/_lib.rb +1 -0
  220. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/abstract_response_spec.rb +145 -0
  221. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/exceptions_spec.rb +108 -0
  222. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/master_shake.jpg +0 -0
  223. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/params_array_spec.rb +36 -0
  224. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/payload_spec.rb +263 -0
  225. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/raw_response_spec.rb +18 -0
  226. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request2_spec.rb +54 -0
  227. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request_spec.rb +1265 -0
  228. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/resource_spec.rb +130 -0
  229. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/response_spec.rb +241 -0
  230. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/restclient_spec.rb +79 -0
  231. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/utils_spec.rb +147 -0
  232. data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/windows/root_certs_spec.rb +22 -0
  233. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.gitignore +10 -0
  234. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rspec +3 -0
  235. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rubocop.yml +3 -0
  236. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.travis.yml +11 -0
  237. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/LICENSE.txt +21 -0
  238. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/README.md +151 -0
  239. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/logger.rb +16 -0
  240. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/quiet.rb +3 -0
  241. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/ruby_version.rb +58 -0
  242. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis/ruby_version.rb +59 -0
  243. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis.rb +58 -0
  244. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/version.rb +3 -0
  245. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/warning.rb +97 -0
  246. data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep.rb +2 -0
  247. data/vendor/bundle/ruby/2.3.0/specifications/listen-3.1.5.gemspec +44 -0
  248. data/vendor/bundle/ruby/2.3.0/specifications/rest-client-2.0.0.gemspec +60 -0
  249. data/vendor/bundle/ruby/2.3.0/specifications/ruby_dep-1.4.0.gemspec +34 -0
  250. data/version.txt +1 -1
  251. metadata +147 -44
  252. data/plugins/guests/darwin/cap/insert_public_key.rb +0 -33
  253. data/plugins/guests/darwin/cap/mount_nfs_folder.rb +0 -37
  254. data/plugins/guests/darwin/cap/remove_public_key.rb +0 -21
  255. data/plugins/guests/fedora/cap/change_host_name.rb +0 -29
  256. data/plugins/guests/fedora/cap/configure_networks.rb +0 -135
  257. data/plugins/guests/fedora/cap/network_scripts_dir.rb +0 -15
  258. data/plugins/guests/freebsd/cap/halt.rb +0 -16
  259. data/plugins/guests/freebsd/cap/insert_public_key.rb +0 -34
  260. data/plugins/guests/freebsd/cap/mount_nfs_folder.rb +0 -24
  261. data/plugins/guests/freebsd/cap/remove_public_key.rb +0 -21
  262. data/plugins/guests/funtoo/cap/change_host_name.rb +0 -17
  263. data/plugins/guests/linux/cap/insert_public_key.rb +0 -31
  264. data/plugins/guests/linux/cap/mount_nfs.rb +0 -50
  265. data/plugins/guests/linux/cap/nfs_client.rb +0 -11
  266. data/plugins/guests/linux/cap/remove_public_key.rb +0 -24
  267. data/plugins/guests/netbsd/cap/insert_public_key.rb +0 -21
  268. data/plugins/guests/netbsd/cap/mount_nfs_folder.rb +0 -17
  269. data/plugins/guests/netbsd/cap/remove_public_key.rb +0 -21
  270. data/plugins/guests/openbsd/cap/halt.rb +0 -16
  271. data/plugins/guests/openbsd/cap/insert_public_key.rb +0 -21
  272. data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +0 -14
  273. data/plugins/guests/openbsd/cap/remove_public_key.rb +0 -21
  274. data/plugins/guests/ubuntu/cap/change_host_name.rb +0 -52
  275. data/templates/guests/fedora/network_dhcp.erb +0 -6
  276. data/templates/guests/fedora/network_static.erb +0 -16
  277. data/test/unit/plugins/guests/freebsd/cap/mount_nfs_folder_test.rb +0 -53
  278. data/test/unit/plugins/guests/ubuntu/cap/change_host_name_test.rb +0 -42
  279. data/test/unit/templates/guests/fedora/network_dhcp_test.rb +0 -21
  280. data/test/unit/templates/guests/fedora/network_static6_test.rb +0 -25
  281. data/test/unit/templates/guests/fedora/network_static_test.rb +0 -71
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d507d2e4b219a6853d5d83575589d96d3eaf2551
4
- data.tar.gz: dcca47b8d0815009c69813d06309b83ce6e432c1
3
+ metadata.gz: 3399ced63f71497def36fc66752c7ec363d56237
4
+ data.tar.gz: ad00037be9e832842a11df1442b49dc6e3fbbf57
5
5
  SHA512:
6
- metadata.gz: 25a8121f366e573bca596d2decd443644f0a577d68d357afa025d864c3fb90e696d074822814bfb257eb13ba1a4d0805458768db4f6c1e8d06310dbf8bc2dcac
7
- data.tar.gz: 2ef93aabcc4b793ed3b9c215da8db839dda402885832a066f2d7571e16ed7868e09f0797ecb4bdac70e6ad088969e2938abdecc24e00c63f48e60e50b135924f
6
+ metadata.gz: f0a9015078be01b016a32aedb81c2f673dfcd8872e6b51960765da7441a850141b0ff7854e71046e5111a12ad60fde5ff41ec4a2d657866e4ed7658d33018f62
7
+ data.tar.gz: 3850bb5a10928494e7dcd3a5bc727b2d0c67b88e31ea127cde5a53bea5ff13f52422e6225fc6615ae04a49034809170c8106d4536cd3d19b9e89b6e4bc601413
data/.travis.yml CHANGED
@@ -13,7 +13,7 @@ addons:
13
13
  - bsdtar
14
14
 
15
15
  rvm:
16
- - 2.0.0
16
+ - 2.2.3
17
17
 
18
18
  branches:
19
19
  only:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,55 @@
1
+ ## 1.8.5 (July 18, 2016)
2
+
3
+ FEATURES:
4
+
5
+ - core: Provide a way to globally disable box update checks with the
6
+ environment variable `VAGRANT_BOX_UPDATE_CHECK_DISABLE`. Setting this
7
+ to any non-empty value will instruct Vagrant to not look for box updates
8
+ when running `vagrant up`. Setting this environment variable has no
9
+ effect on the `vagrant box` commands.
10
+
11
+ IMPROVEMENTS:
12
+
13
+ - guests/arch: Support installing synced folder clients [GH-7519]
14
+ - guests/darwin: Allow ipv6 static networks [GH-7491]
15
+ - providers/virtualbox: Add support for 5.1 [GH-7574]
16
+
17
+ BUG FIXES:
18
+
19
+ - core: Bump listen gem and Ruby version to improve rsync performance
20
+ [GH-7453, GH-7441]
21
+ - core: Check process stdout when detecting if a hyperv admin
22
+ [GH-7465, GH-7467]
23
+ - core: Ensure removal of temporary directory when box download fails
24
+ [GH-7496, GH-7499]
25
+ - core: Fix regression for installing plugins from path [GH-7505, GH-7493]
26
+ - core: Skip checking conflicts on disabled ports [GH-7587]
27
+ - core: Idempotent write-out for state file [GH-7550]
28
+ - core/guests: Create common BSD guest for shared logic
29
+ - core/guests: Ignore empty output from `/sbin/ip`
30
+ [GH-7539, GH-7537, GH-7533, GH-7605]
31
+ - synced_folders/nfs: Shellescape rsync paths
32
+ [GH-7540, GH-7605]
33
+ - synced_folders/nfs: Ensure retries take place [GH-6360, GH-7605]
34
+ - synced_folders/rsync: Shellescape rsync paths
35
+ [GH-7580, GH-6690, GH-7579, GH-7605]
36
+ - synced_folders/rsync: Translate Windows paths
37
+ [GH-7012, GH-6702, GH-6568, GH-7046]
38
+ - guests/bsd: Consolidate core logic for mounting NFS folders
39
+ [GH-7480, GH-7474, GH-7466]
40
+ - guests/bsd: Consolidate core logic for public key management [GH-7481]
41
+ - guests/bsd: Consolidate core logic for halting [GH-7484]
42
+ - guests/centos: Use `ip` instead of `ifconfig` to detect network interfaces
43
+ [GH-7460]
44
+ - guests/debian: Ensure newline when inserting public key [GH-7456]
45
+ - guests/linux: Ensure NFS retries during mounting [GH-7492]
46
+ - guests/redhat: Use `/sbin/ip` to list and configure networks for
47
+ compatability with older versions of CentOS [GH-7482]
48
+ - guests/redhat: Ensure newline when inserting public key [GH-7598, GH-7605]
49
+ - guests/ubuntu: Use /etc/os-release to detech [GH-7524]
50
+ - guests/ubuntu: Use short hostname [GH-7488, GH-7605]
51
+ - providers/hyperv: Fix version check and catch statement [GH-7447, GH-7487]
52
+
1
53
  ## 1.8.4 (June 13, 2016)
2
54
 
3
55
  BUG FIXES:
data/Gemfile.lock CHANGED
@@ -10,13 +10,13 @@ PATH
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- vagrant-unbundled (1.8.4.2)
13
+ vagrant-unbundled (1.8.5.1)
14
14
  bundler
15
15
  childprocess (~> 0.5.0)
16
16
  erubis (~> 2.7.0)
17
17
  hashicorp-checkpoint (~> 0.1.1)
18
18
  i18n (>= 0.6.0, <= 0.8.0)
19
- listen (~> 3.0.2)
19
+ listen (~> 3.1.5)
20
20
  log4r (~> 1.1.9, < 1.1.11)
21
21
  logging (~> 2.0)
22
22
  mime-types (~> 2.99)
@@ -25,7 +25,7 @@ PATH
25
25
  net-ssh (~> 3.0.1)
26
26
  nokogiri (~> 1.6.8)
27
27
  rb-kqueue (~> 0.2.0)
28
- rest-client (>= 1.6.0, < 2.0)
28
+ rest-client (>= 1.6.0, < 3.0)
29
29
  wdm (~> 0.1.0)
30
30
  winrm (~> 1.6)
31
31
  winrm-fs (~> 0.3.0)
@@ -55,9 +55,10 @@ GEM
55
55
  domain_name (~> 0.5)
56
56
  httpclient (2.8.0)
57
57
  i18n (0.7.0)
58
- listen (3.0.8)
58
+ listen (3.1.5)
59
59
  rb-fsevent (~> 0.9, >= 0.9.4)
60
60
  rb-inotify (~> 0.9, >= 0.9.7)
61
+ ruby_dep (~> 1.2)
61
62
  little-plugger (1.1.4)
62
63
  log4r (1.1.10)
63
64
  logging (2.1.0)
@@ -83,10 +84,10 @@ GEM
83
84
  ffi (>= 0.5.0)
84
85
  rb-kqueue (0.2.4)
85
86
  ffi (>= 0.5.0)
86
- rest-client (1.8.0)
87
+ rest-client (2.0.0)
87
88
  http-cookie (>= 1.0.2, < 2.0)
88
- mime-types (>= 1.16, < 3.0)
89
- netrc (~> 0.7)
89
+ mime-types (>= 1.16, < 4.0)
90
+ netrc (~> 0.8)
90
91
  rspec (2.14.1)
91
92
  rspec-core (~> 2.14.0)
92
93
  rspec-expectations (~> 2.14.0)
@@ -95,6 +96,7 @@ GEM
95
96
  rspec-expectations (2.14.5)
96
97
  diff-lcs (>= 1.1.3, < 2.0)
97
98
  rspec-mocks (2.14.6)
99
+ ruby_dep (1.4.0)
98
100
  rubyntlm (0.6.0)
99
101
  rubyzip (1.2.0)
100
102
  safe_yaml (1.0.4)
data/RELEASE.md CHANGED
@@ -4,25 +4,48 @@ This documents how to release Vagrant. Various steps in this document will
4
4
  require privileged access to private systems, so this document is only
5
5
  targetted at Vagrant core members who have the ability to cut a release.
6
6
 
7
- 1. Update `version.txt` to the version you want to release.
7
+ 1. Update `version.txt` to the version you want to release.
8
8
 
9
- 1. Update `CHANGELOG.md` to have a header with the release version and date.
9
+ 1. Update `CHANGELOG.md` to have a header with the release version and date.
10
10
 
11
- 1. Commit those changes and also tag the release with the version:
12
- `git tag vX.Y.Z`. Push them.
11
+ 1. Commit those changes and also tag the release with the version:
13
12
 
14
- 1. Trigger an installer creation run within the HashiCorp Bamboo
15
- installation. This will take around 45 minutes.
13
+ ```
14
+ $ git tag vX.Y.Z
15
+ $ git push --tags
16
+ ```
16
17
 
17
- 1. Download all the resulting artifacts into the `pkg/dist` folder
18
- relative to the Vagrant repository.
18
+ 1. Trigger an installer creation run within the HashiCorp Bamboo installation.
19
+ This will take around 45 minutes.
19
20
 
20
- 1. Run the awkwardly-named `./scripts/bintray_upload.sh` with the version
21
- that is being created. This must be run from the Vagrant repo root.
22
- This will GPG sign and checksum the files.
21
+ 1. Download all the resulting artifacts into the `pkg/dist` folder relative to
22
+ the Vagrant repository on your local machine.
23
23
 
24
- 1. Run `hc-releases -upload pkg/dist` to upload the releases to S3.
24
+ 1. Run `./scripts/sign.sh` with the version that is being created. This must be
25
+ run from the Vagrant repo root. This will GPG sign and checksum the files.
25
26
 
26
- 1. Update `website/config.rb` to point to the latest version. Commit and push.
27
+ 1. Run the following command to upload the binaries to the releases site:
27
28
 
28
- 1. Use Atlas `hashicorp/vagrant-www` to deploy the site by queueing a build.
29
+ ```
30
+ $ hc-releases upload pkg/dist
31
+ ```
32
+
33
+ 1. Publish the new index files to the releases site:
34
+
35
+ ```
36
+ $ hc-releases publish
37
+ ```
38
+
39
+ 1. Update `website/config.rb` to point to the latest version, commit, and push.
40
+
41
+ 1. Tell HashiBot to deploy in ``#deploys`
42
+
43
+ ```
44
+ hashibot deploy vagrant
45
+ ```
46
+
47
+ 1. Update `version.txt` to append `.dev` and add a new blank entry in the
48
+ CHANGELOG, commit, and push.
49
+
50
+ 1. Update [Checkpoint](https://checkpoint.hashicorp.com/control) with the new
51
+ version.
@@ -34,7 +34,7 @@ module Vagrant
34
34
  u = u.gsub("\\", "/")
35
35
  if Util::Platform.windows? && u =~ /^[a-z]:/i
36
36
  # On Windows, we need to be careful about drive letters
37
- u = "file://#{URI.escape(u)}"
37
+ u = "file:///#{URI.escape(u)}"
38
38
  end
39
39
 
40
40
  if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
@@ -472,6 +472,8 @@ module Vagrant
472
472
  if uri.scheme == "file"
473
473
  url = uri.path
474
474
  url ||= uri.opaque
475
+ #7570 Strip leading slash left in front of drive letter by uri.path
476
+ Util::Platform.windows? && url.gsub!(/^\/([a-zA-Z]:)/, '\1')
475
477
 
476
478
  begin
477
479
  File.open(url, "r") do |f|
@@ -93,6 +93,11 @@ module Vagrant
93
93
  guest_port = options[:guest]
94
94
  host_port = options[:host]
95
95
 
96
+ if options[:disabled]
97
+ @logger.debug("Skipping disabled port #{host_port}.")
98
+ next
99
+ end
100
+
96
101
  if options[:protocol] && options[:protocol] != "tcp"
97
102
  @logger.debug("Skipping #{host_port} because UDP protocol.")
98
103
  next
@@ -1,4 +1,5 @@
1
1
  require "digest/sha1"
2
+ require "fileutils"
2
3
  require "monitor"
3
4
  require "tmpdir"
4
5
 
@@ -447,7 +448,7 @@ module Vagrant
447
448
 
448
449
  yield dir
449
450
  ensure
450
- dir.rmtree if dir.exist?
451
+ FileUtils.rm_rf(dir.to_s)
451
452
  end
452
453
 
453
454
  # Checks if a box with a given name exists.
@@ -272,7 +272,11 @@ module Vagrant
272
272
  Gem.paths = ENV
273
273
 
274
274
  # Reset the all specs override that Bundler does
275
- Gem::Specification.reset
275
+ old_all = Gem::Specification._all
276
+
277
+ # WARNING: Seriously don't touch this without reading the comment attached
278
+ # to the monkey-patch at the bottom of this file.
279
+ Gem::Specification.vagrant_reset!
276
280
 
277
281
  # /etc/gemrc and so on.
278
282
  old_config = nil
@@ -299,6 +303,7 @@ module Vagrant
299
303
 
300
304
  Gem.configuration = old_config
301
305
  Gem.paths = ENV
306
+ Gem::Specification.all = old_all
302
307
  end
303
308
 
304
309
  # This method returns a proper "tempfile" on disk. Ruby's Tempfile class
@@ -330,6 +335,36 @@ module Vagrant
330
335
  end
331
336
  end
332
337
 
338
+ # This monkey patches Gem::Specification from RubyGems to add a new method,
339
+ # `vagrant_reset!`. For some background, Vagrant needs to set the value
340
+ # of these variables to nil to force new specs to be loaded. Previously,
341
+ # this was accomplished by setting Gem::Specification.specs = nil. However,
342
+ # newer versions of Rubygems try to map across that nil using a group_by
343
+ # clause, breaking things.
344
+ #
345
+ # This generally never affected Vagrant users who were using the official
346
+ # Vagrant installers because we lock to an older version of Rubygems that
347
+ # does not have this issue. The users of the official debian packages,
348
+ # however, experienced this issue because they float on Rubygems.
349
+ #
350
+ # In GH-7073, a number of Debian users reported this issue, but it was not
351
+ # reproducible in the official installer for reasons described above. Commit
352
+ # ba77d4b switched to using Gem::Specification.reset, but this actually
353
+ # broke the ability to install gems locally (GH-7493) because it resets
354
+ # the complete local cache, which is already built.
355
+ #
356
+ # The only solution that works with both new and old versions of Rubygems
357
+ # is to provide our own function for JUST resetting all the stubs. Both
358
+ # @@all and @@stubs must be set to a falsey value, so some of the
359
+ # originally-suggested solutions of using an empty array do not work. Only
360
+ # setting these values to nil (without clearing the cache), allows Vagrant
361
+ # to install and manage plugins.
362
+ class Gem::Specification < Gem::BasicSpecification
363
+ def self.vagrant_reset!
364
+ @@all = @@stubs = nil
365
+ end
366
+ end
367
+
333
368
  if ::Bundler::UI.const_defined? :Silent
334
369
  class BundlerUI < ::Bundler::UI::Silent
335
370
  attr_reader :output
@@ -324,10 +324,6 @@ module Vagrant
324
324
  error_key(:darwin_mount_failed)
325
325
  end
326
326
 
327
- class DarwinNFSMountFailed < VagrantError
328
- error_key(:darwin_nfs_mount_failed)
329
- end
330
-
331
327
  class DestroyRequiresForce < VagrantError
332
328
  error_key(:destroy_requires_force)
333
329
  end
@@ -404,10 +400,6 @@ module Vagrant
404
400
  error_key(:linux_mount_failed)
405
401
  end
406
402
 
407
- class LinuxNFSMountFailed < VagrantError
408
- error_key(:linux_nfs_mount_failed)
409
- end
410
-
411
403
  class LinuxRDPClientNotFound < VagrantError
412
404
  error_key(:linux_rdp_client_not_found)
413
405
  end
@@ -456,6 +448,10 @@ module Vagrant
456
448
  error_key(:not_found, "vagrant.actions.vm.host_only_network")
457
449
  end
458
450
 
451
+ class NetworkTypeNotSupported < VagrantError
452
+ error_key(:network_type_not_supported)
453
+ end
454
+
459
455
  class NFSBadExports < VagrantError
460
456
  error_key(:nfs_bad_exports)
461
457
  end
@@ -464,6 +460,10 @@ module Vagrant
464
460
  error_key(:nfs_cant_read_exports)
465
461
  end
466
462
 
463
+ class NFSMountFailed < VagrantError
464
+ error_key(:nfs_mount_failed)
465
+ end
466
+
467
467
  class NFSNoGuestIP < VagrantError
468
468
  error_key(:nfs_no_guest_ip)
469
469
  end
@@ -780,6 +780,14 @@ module Vagrant
780
780
  error_key(:virtualbox_no_name)
781
781
  end
782
782
 
783
+ class VirtualBoxMountFailed < VagrantError
784
+ error_key(:virtualbox_mount_failed)
785
+ end
786
+
787
+ class VirtualBoxMountNotSupportedBSD < VagrantError
788
+ error_key(:virtualbox_mount_not_supported_bsd)
789
+ end
790
+
783
791
  class VirtualBoxNameExists < VagrantError
784
792
  error_key(:virtualbox_name_exists)
785
793
  end
@@ -1,4 +1,6 @@
1
1
  require "json"
2
+ require "fileutils"
3
+ require "tempfile"
2
4
 
3
5
  module Vagrant
4
6
  module Plugin
@@ -91,8 +93,13 @@ module Vagrant
91
93
 
92
94
  # This saves the state back into the state file.
93
95
  def save!
94
- @path.open("w+") do |f|
96
+ Tempfile.open(@path.basename.to_s, @path.dirname.to_s) do |f|
97
+ f.binmode
95
98
  f.write(JSON.dump(@data))
99
+ f.fsync
100
+ f.chmod(0644)
101
+ f.close
102
+ FileUtils.mv(f.path, @path)
96
103
  end
97
104
  end
98
105
 
@@ -82,7 +82,7 @@ module Vagrant
82
82
  begin
83
83
  username = ENV["USERNAME"]
84
84
  process = Subprocess.execute("net", "localgroup", "Hyper-V Administrators")
85
- return process.include?(username)
85
+ return process.stdout.include?(username)
86
86
  rescue Errors::CommandUnavailableWindows
87
87
  return false
88
88
  end
@@ -5,19 +5,22 @@ module VagrantPlugins
5
5
  def self.change_host_name(machine, name)
6
6
  comm = machine.communicate
7
7
 
8
- if !comm.test("hostname | grep -w '#{name}'")
8
+ if !comm.test("hostname -f | grep '^#{name}$'", sudo: false)
9
9
  basename = name.split(".", 2)[0]
10
- comm.sudo <<-EOH
11
- hostnamectl set-hostname '#{name}'
10
+ comm.sudo <<-EOH.gsub(/^ {14}/, "")
11
+ set -e
12
12
 
13
- # Remove comments and blank lines from /etc/hosts
14
- sed -i'' -e 's/#.*$//' -e '/^$/d' /etc/hosts
13
+ # Set hostname
14
+ hostnamectl set-hostname '#{basename}'
15
15
 
16
- # Prepend ourselves to /etc/hosts
17
- grep -w '#{name}' /etc/hosts || {
18
- sed -i'' '1i 127.0.0.1\\t#{name}\\t#{basename}' /etc/hosts
19
- }
20
- EOH
16
+ # Remove comments and blank lines from /etc/hosts
17
+ sed -i'' -e 's/#.*$//' -e '/^$/d' /etc/hosts
18
+
19
+ # Prepend ourselves to /etc/hosts
20
+ grep -w '#{name}' /etc/hosts || {
21
+ sed -i'' '1i 127.0.0.1\\t#{name}\\t#{basename}' /etc/hosts
22
+ }
23
+ EOH
21
24
  end
22
25
  end
23
26
  end
@@ -1,3 +1,5 @@
1
+ require "ipaddr"
2
+ require "socket"
1
3
  require "tempfile"
2
4
 
3
5
  require_relative "../../../../lib/vagrant/util/template_renderer"
@@ -11,18 +13,19 @@ module VagrantPlugins
11
13
  def self.configure_networks(machine, networks)
12
14
  comm = machine.communicate
13
15
 
14
- commands = []
15
- interfaces = []
16
-
17
- # The result will be something like:
18
- # eth0\nenp0s8\nenp0s9
19
- comm.sudo("ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://'") do |_, stdout|
20
- interfaces = stdout.split("\n")
21
- end
16
+ commands = ["set -e"]
17
+ interfaces = machine.guest.capability(:network_interfaces)
22
18
 
23
19
  networks.each.with_index do |network, i|
24
20
  network[:device] = interfaces[network[:interface]]
25
21
 
22
+ # Arch expects netmasks to be in the "24" or "64", but users may
23
+ # specify IPV4 netmasks like "255.255.255.0". This magic converts
24
+ # the netmask to the proper value.
25
+ if network[:netmask] && network[:netmask].to_s.include?(".")
26
+ network[:netmask] = (32-Math.log2((IPAddr.new(network[:netmask], Socket::AF_INET).to_i^0xffffffff)+1)).to_i
27
+ end
28
+
26
29
  entry = TemplateRenderer.render("guests/arch/network_#{network[:type]}",
27
30
  options: network,
28
31
  )