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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +52 -0
- data/Gemfile.lock +9 -7
- data/RELEASE.md +37 -14
- data/lib/vagrant/action/builtin/box_add.rb +3 -1
- data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +5 -0
- data/lib/vagrant/box_collection.rb +2 -1
- data/lib/vagrant/bundler.rb +36 -1
- data/lib/vagrant/errors.rb +16 -8
- data/lib/vagrant/plugin/state_file.rb +8 -1
- data/lib/vagrant/util/platform.rb +1 -1
- data/plugins/guests/arch/cap/change_host_name.rb +13 -10
- data/plugins/guests/arch/cap/configure_networks.rb +11 -8
- data/plugins/guests/arch/cap/nfs.rb +35 -0
- data/plugins/guests/arch/cap/rsync.rb +16 -0
- data/plugins/guests/arch/cap/smb.rb +17 -0
- data/plugins/guests/arch/plugin.rb +28 -3
- data/plugins/guests/atomic/cap/change_host_name.rb +13 -10
- data/plugins/guests/atomic/plugin.rb +3 -3
- data/plugins/guests/{netbsd → bsd}/cap/halt.rb +2 -2
- data/plugins/guests/bsd/cap/nfs.rb +49 -0
- data/plugins/guests/bsd/cap/public_key.rb +65 -0
- data/plugins/guests/bsd/cap/virtualbox.rb +16 -0
- data/plugins/guests/bsd/guest.rb +9 -0
- data/plugins/guests/bsd/plugin.rb +40 -0
- data/plugins/guests/coreos/cap/change_host_name.rb +1 -1
- data/plugins/guests/coreos/plugin.rb +4 -4
- data/plugins/guests/darwin/cap/change_host_name.rb +4 -1
- data/plugins/guests/darwin/cap/configure_networks.rb +12 -5
- data/plugins/guests/darwin/cap/halt.rb +3 -1
- data/plugins/guests/darwin/cap/rsync.rb +7 -4
- data/plugins/guests/darwin/plugin.rb +13 -28
- data/plugins/guests/debian/cap/change_host_name.rb +14 -15
- data/plugins/guests/debian/cap/configure_networks.rb +2 -6
- data/plugins/guests/debian/cap/{nfs_client.rb → nfs.rb} +2 -1
- data/plugins/guests/debian/cap/rsync.rb +5 -6
- data/plugins/guests/debian/plugin.rb +8 -8
- data/plugins/guests/esxi/cap/mount_nfs_folder.rb +2 -2
- data/plugins/guests/esxi/plugin.rb +6 -6
- data/plugins/guests/fedora/cap/flavor.rb +1 -1
- data/plugins/guests/fedora/plugin.rb +2 -17
- data/plugins/guests/freebsd/cap/change_host_name.rb +2 -3
- data/plugins/guests/freebsd/cap/rsync.rb +7 -4
- data/plugins/guests/freebsd/plugin.rb +9 -29
- data/plugins/guests/funtoo/plugin.rb +3 -8
- data/plugins/guests/gentoo/cap/change_host_name.rb +21 -6
- data/plugins/guests/gentoo/cap/configure_networks.rb +35 -26
- data/plugins/guests/gentoo/plugin.rb +4 -4
- data/plugins/guests/linux/cap/choose_addressable_ip_addr.rb +2 -3
- data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +31 -45
- data/plugins/guests/linux/cap/network_interfaces.rb +20 -0
- data/plugins/guests/linux/cap/nfs.rb +57 -0
- data/plugins/guests/linux/cap/public_key.rb +65 -0
- data/plugins/guests/linux/cap/rsync.rb +7 -4
- data/plugins/guests/linux/plugin.rb +30 -25
- data/plugins/guests/mint/plugin.rb +1 -1
- data/plugins/guests/netbsd/plugin.rb +10 -30
- data/plugins/guests/nixos/plugin.rb +5 -5
- data/plugins/guests/omnios/cap/change_host_name.rb +1 -1
- data/plugins/guests/omnios/plugin.rb +4 -4
- data/plugins/guests/openbsd/cap/change_host_name.rb +21 -3
- data/plugins/guests/openbsd/plugin.rb +10 -30
- data/plugins/guests/photon/cap/change_host_name.rb +1 -1
- data/plugins/guests/photon/plugin.rb +4 -4
- data/plugins/guests/pld/cap/change_host_name.rb +1 -1
- data/plugins/guests/pld/plugin.rb +4 -4
- data/plugins/guests/redhat/cap/change_host_name.rb +4 -3
- data/plugins/guests/redhat/cap/configure_networks.rb +1 -24
- data/plugins/guests/redhat/plugin.rb +7 -7
- data/plugins/guests/slackware/cap/change_host_name.rb +1 -1
- data/plugins/guests/slackware/cap/configure_networks.rb +1 -5
- data/plugins/guests/slackware/plugin.rb +3 -3
- data/plugins/guests/smartos/plugin.rb +12 -12
- data/plugins/guests/solaris/plugin.rb +14 -14
- data/plugins/guests/solaris11/plugin.rb +12 -12
- data/plugins/guests/suse/cap/change_host_name.rb +1 -1
- data/plugins/guests/suse/cap/configure_networks.rb +1 -5
- data/plugins/guests/suse/plugin.rb +8 -8
- data/plugins/guests/tinycore/cap/mount_nfs.rb +2 -2
- data/plugins/guests/tinycore/plugin.rb +7 -7
- data/plugins/guests/trisquel/plugin.rb +1 -1
- data/plugins/guests/ubuntu/guest.rb +1 -1
- data/plugins/guests/ubuntu/plugin.rb +1 -6
- data/plugins/guests/windows/plugin.rb +2 -2
- data/plugins/kernel_v2/config/vm.rb +8 -1
- data/plugins/providers/hyperv/scripts/get_vm_status.ps1 +25 -5
- data/plugins/providers/virtualbox/driver/meta.rb +1 -0
- data/plugins/providers/virtualbox/driver/version_5_1.rb +734 -0
- data/plugins/providers/virtualbox/plugin.rb +1 -0
- data/plugins/synced_folders/nfs/synced_folder.rb +10 -2
- data/plugins/synced_folders/rsync/helper.rb +11 -4
- data/scripts/{bintray_upload.sh → sign.sh} +0 -0
- data/templates/guests/arch/network_static.erb +3 -3
- data/templates/guests/arch/network_static6.erb +8 -0
- data/templates/guests/freebsd/network_static6.erb +6 -0
- data/templates/guests/funtoo/network_static6.erb +9 -0
- data/templates/guests/gentoo/network_dhcp.erb +1 -1
- data/templates/guests/gentoo/network_static.erb +4 -4
- data/templates/guests/gentoo/network_static6.erb +7 -0
- data/templates/guests/redhat/network_dhcp.erb +1 -1
- data/templates/guests/redhat/network_static.erb +4 -1
- data/templates/guests/{fedora → redhat}/network_static6.erb +5 -2
- data/templates/locales/en.yml +40 -6
- data/test/unit/plugins/guests/arch/cap/change_host_name_test.rb +6 -6
- data/test/unit/plugins/guests/arch/cap/configure_networks_test.rb +20 -15
- data/test/unit/plugins/guests/arch/cap/rsync_test.rb +30 -0
- data/test/unit/plugins/guests/arch/cap/smb_test.rb +38 -0
- data/test/unit/plugins/guests/atomic/cap/change_host_name_test.rb +9 -8
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/halt_test.rb +11 -10
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/insert_public_key_test.rb +7 -6
- data/test/unit/plugins/guests/bsd/cap/nfs_test.rb +68 -0
- data/test/unit/plugins/guests/coreos/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/halt_test.rb +36 -0
- data/test/unit/plugins/guests/debian/cap/change_host_name_test.rb +3 -5
- data/test/unit/plugins/guests/debian/cap/configure_networks_test.rb +13 -9
- data/test/unit/plugins/guests/debian/cap/rsync_test.rb +3 -11
- data/test/unit/plugins/guests/freebsd/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/linux/cap/mount_nfs_test.rb +16 -3
- data/test/unit/plugins/guests/omnios/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/photon/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/pld/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/redhat/cap/change_host_name_test.rb +4 -3
- data/test/unit/plugins/guests/redhat/cap/configure_networks_test.rb +17 -33
- data/test/unit/plugins/guests/slackware/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/slackware/cap/configure_networks_test.rb +8 -4
- data/test/unit/plugins/guests/suse/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/suse/cap/configure_networks_test.rb +13 -16
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +10 -2
- data/test/unit/templates/guests/arch/network_static_test.rb +4 -2
- data/test/unit/templates/guests/gentoo/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/gentoo/network_static_test.rb +10 -10
- data/test/unit/templates/guests/redhat/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/redhat/network_static_test.rb +9 -9
- data/vagrant.gemspec +3 -3
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CHANGELOG.md +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CONTRIBUTING.md +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/README.md +297 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/bin/listen +12 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/base.rb +141 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/bsd.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb +26 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/darwin.rb +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/linux.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/polling.rb +37 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/windows.rb +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter.rb +45 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/backend.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/change.rb +76 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/cli.rb +65 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/directory.rb +87 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/config.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/loop.rb +117 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/processor.rb +122 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/queue.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/file.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/fsm.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener/config.rb +41 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener.rb +133 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/logger.rb +32 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/options.rb +23 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/queue_optimizer.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/entry.rb +64 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/symlink_detector.rb +39 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record.rb +118 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer/controller.rb +48 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen.rb +57 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.gitignore +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rspec +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop-disables.yml +384 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.travis.yml +43 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/AUTHORS +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Gemfile +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/LICENSE +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/README.md +667 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Rakefile +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/bin/restclient +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/history.md +310 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest-client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest_client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb +226 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/exceptions.rb +244 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/params_array.rb +72 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/payload.rb +209 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/platform.rb +49 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/raw_response.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/request.rb +904 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/resource.rb +168 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/response.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/utils.rb +235 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/version.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows/root_certs.rb +105 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient.rb +184 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.gemspec +31 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.windows.gemspec +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/helpers.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/244b5494.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/81b9768f.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/415660c1.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/7651b327.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/httpbin_spec.rb +86 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/integration_spec.rb +125 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/request_spec.rb +127 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/spec_helper.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/abstract_response_spec.rb +145 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/exceptions_spec.rb +108 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/master_shake.jpg +0 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/params_array_spec.rb +36 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/payload_spec.rb +263 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/raw_response_spec.rb +18 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request2_spec.rb +54 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request_spec.rb +1265 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/resource_spec.rb +130 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/response_spec.rb +241 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/restclient_spec.rb +79 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/utils_spec.rb +147 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/windows/root_certs_spec.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.gitignore +10 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.travis.yml +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/README.md +151 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/logger.rb +16 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/quiet.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/ruby_version.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis/ruby_version.rb +59 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/warning.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/specifications/listen-3.1.5.gemspec +44 -0
- data/vendor/bundle/ruby/2.3.0/specifications/rest-client-2.0.0.gemspec +60 -0
- data/vendor/bundle/ruby/2.3.0/specifications/ruby_dep-1.4.0.gemspec +34 -0
- data/version.txt +1 -1
- metadata +147 -44
- data/plugins/guests/darwin/cap/insert_public_key.rb +0 -33
- data/plugins/guests/darwin/cap/mount_nfs_folder.rb +0 -37
- data/plugins/guests/darwin/cap/remove_public_key.rb +0 -21
- data/plugins/guests/fedora/cap/change_host_name.rb +0 -29
- data/plugins/guests/fedora/cap/configure_networks.rb +0 -135
- data/plugins/guests/fedora/cap/network_scripts_dir.rb +0 -15
- data/plugins/guests/freebsd/cap/halt.rb +0 -16
- data/plugins/guests/freebsd/cap/insert_public_key.rb +0 -34
- data/plugins/guests/freebsd/cap/mount_nfs_folder.rb +0 -24
- data/plugins/guests/freebsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/funtoo/cap/change_host_name.rb +0 -17
- data/plugins/guests/linux/cap/insert_public_key.rb +0 -31
- data/plugins/guests/linux/cap/mount_nfs.rb +0 -50
- data/plugins/guests/linux/cap/nfs_client.rb +0 -11
- data/plugins/guests/linux/cap/remove_public_key.rb +0 -24
- data/plugins/guests/netbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/netbsd/cap/mount_nfs_folder.rb +0 -17
- data/plugins/guests/netbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/halt.rb +0 -16
- data/plugins/guests/openbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +0 -14
- data/plugins/guests/openbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/ubuntu/cap/change_host_name.rb +0 -52
- data/templates/guests/fedora/network_dhcp.erb +0 -6
- data/templates/guests/fedora/network_static.erb +0 -16
- data/test/unit/plugins/guests/freebsd/cap/mount_nfs_folder_test.rb +0 -53
- data/test/unit/plugins/guests/ubuntu/cap/change_host_name_test.rb +0 -42
- data/test/unit/templates/guests/fedora/network_dhcp_test.rb +0 -21
- data/test/unit/templates/guests/fedora/network_static6_test.rb +0 -25
- data/test/unit/templates/guests/fedora/network_static_test.rb +0 -71
@@ -56,6 +56,7 @@ module VagrantPlugins
|
|
56
56
|
autoload :Version_4_2, File.expand_path("../driver/version_4_2", __FILE__)
|
57
57
|
autoload :Version_4_3, File.expand_path("../driver/version_4_3", __FILE__)
|
58
58
|
autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__)
|
59
|
+
autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__)
|
59
60
|
end
|
60
61
|
|
61
62
|
module Model
|
@@ -101,8 +101,16 @@ module VagrantPlugins
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# Mount them!
|
104
|
-
machine.guest.capability(
|
105
|
-
:
|
104
|
+
if machine.guest.capability?(:nfs_pre)
|
105
|
+
machine.guest.capability(:nfs_pre)
|
106
|
+
end
|
107
|
+
|
108
|
+
machine.guest.capability(:mount_nfs_folder,
|
109
|
+
nfsopts[:nfs_host_ip], mount_folders)
|
110
|
+
|
111
|
+
if machine.guest.capability?(:nfs_post)
|
112
|
+
machine.guest.capability(:nfs_post)
|
113
|
+
end
|
106
114
|
end
|
107
115
|
|
108
116
|
def cleanup(machine, opts)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "shellwords"
|
2
|
+
|
1
3
|
require "vagrant/util/platform"
|
2
4
|
require "vagrant/util/subprocess"
|
3
5
|
|
@@ -43,6 +45,9 @@ module VagrantPlugins
|
|
43
45
|
guestpath = machine.guest.capability(:rsync_scrub_guestpath, opts)
|
44
46
|
end
|
45
47
|
|
48
|
+
# Shellescape
|
49
|
+
guestpath = Shellwords.escape(guestpath)
|
50
|
+
|
46
51
|
if Vagrant::Util::Platform.windows?
|
47
52
|
# rsync for Windows expects cygwin style paths, always.
|
48
53
|
hostpath = Vagrant::Util::Platform.cygwin_path(hostpath)
|
@@ -69,14 +74,16 @@ module VagrantPlugins
|
|
69
74
|
# Create the path for the control sockets. We used to do this
|
70
75
|
# in the machine data dir but this can result in paths that are
|
71
76
|
# too long for unix domain sockets.
|
72
|
-
|
77
|
+
control_options = ""
|
78
|
+
unless Vagrant::Util::Platform.windows?
|
79
|
+
controlpath = File.join(Dir.tmpdir, "ssh.#{rand(1000)}")
|
80
|
+
control_options = "-o ControlMaster=auto -o ControlPath=#{controlpath} -o ControlPersist=10m "
|
81
|
+
end
|
73
82
|
|
74
83
|
rsh = [
|
75
84
|
"ssh -p #{ssh_info[:port]} " +
|
76
85
|
proxy_command +
|
77
|
-
|
78
|
-
"-o ControlPath=#{controlpath} " +
|
79
|
-
"-o ControlPersist=10m " +
|
86
|
+
control_options +
|
80
87
|
"-o StrictHostKeyChecking=no " +
|
81
88
|
"-o IdentitiesOnly=true " +
|
82
89
|
"-o UserKnownHostsFile=/dev/null",
|
File without changes
|
@@ -2,7 +2,7 @@ Connection=ethernet
|
|
2
2
|
Description='A basic static ethernet connection'
|
3
3
|
Interface=<%= options[:device] %>
|
4
4
|
IP=static
|
5
|
-
Address=('<%= options[:ip]
|
6
|
-
<% if options[:gateway]
|
5
|
+
Address=('<%= options[:ip]%>/<%= options[:netmask] %>')
|
6
|
+
<% if options[:gateway] -%>
|
7
7
|
Gateway='<%= options[:gateway] %>'
|
8
|
-
<% end
|
8
|
+
<% end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#VAGRANT-BEGIN
|
2
|
+
template='interface'
|
3
|
+
ipaddr='<%= options[:ip] %>/<%= options[:netmask] %>'
|
4
|
+
<% [:gateway, :nameservers, :domain, :route, :gateway6, :route6, :mtu].each do |key| %>
|
5
|
+
<% if options[key] %>
|
6
|
+
<%= key %>='<%= options[key] %>'
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
#VAGRANT-END
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#VAGRANT-BEGIN
|
2
2
|
# The contents below are automatically generated by Vagrant. Do not modify.
|
3
|
-
|
4
|
-
<% if options[:gateway]
|
5
|
-
|
6
|
-
<% end
|
3
|
+
config_<%= options[:device] %>=("<%= options[:ip] %> netmask <%= options[:netmask] %>")
|
4
|
+
<% if options[:gateway] -%>
|
5
|
+
gateways_<%= options[:device] %>="<%= options[:gateway] %>"
|
6
|
+
<% end -%>
|
7
7
|
#VAGRANT-END
|
@@ -0,0 +1,7 @@
|
|
1
|
+
#VAGRANT-BEGIN
|
2
|
+
# The contents below are automatically generated by Vagrant. Do not modify.
|
3
|
+
config_<%= options[:device] %>="<%= options[:ip] %>/<%= options[:netmask] %>"
|
4
|
+
<% if options[:gateway] -%>
|
5
|
+
gateways_<%= options[:device] %>="<%= options[:gateway] %>"
|
6
|
+
<% end -%>
|
7
|
+
#VAGRANT-END
|
@@ -5,9 +5,12 @@ BOOTPROTO=none
|
|
5
5
|
ONBOOT=yes
|
6
6
|
IPADDR=<%= options[:ip] %>
|
7
7
|
NETMASK=<%= options[:netmask] %>
|
8
|
-
DEVICE
|
8
|
+
DEVICE=<%= options[:device] %>
|
9
9
|
<% if options[:gateway] %>
|
10
10
|
GATEWAY=<%= options[:gateway] %>
|
11
11
|
<% end %>
|
12
|
+
<% if options[:mac_address] %>
|
13
|
+
HWADDR=<%= options[:mac_address] %>
|
14
|
+
<% end %>
|
12
15
|
PEERDNS=no
|
13
16
|
#VAGRANT-END
|
@@ -3,7 +3,10 @@
|
|
3
3
|
NM_CONTROLLED=no
|
4
4
|
BOOTPROTO=static
|
5
5
|
ONBOOT=yes
|
6
|
-
IPV6INIT=yes
|
7
|
-
IPV6ADDR=<%= options[:ip] %>
|
8
6
|
DEVICE=<%= options[:device] %>
|
7
|
+
IPV6INIT=yes
|
8
|
+
IPV6ADDR=<%= options[:ip] %>/<%= options[:netmask] %>
|
9
|
+
<% if options[:gateway] -%>
|
10
|
+
IPV6_DEFAULTGW=<%= options[:gateway] %>
|
11
|
+
<% end %>
|
9
12
|
#VAGRANT-END
|
data/templates/locales/en.yml
CHANGED
@@ -822,12 +822,6 @@ en:
|
|
822
822
|
The error output from the last command was:
|
823
823
|
|
824
824
|
%{output}
|
825
|
-
linux_nfs_mount_failed: |-
|
826
|
-
Mounting NFS shared folders failed. This is most often caused by the NFS
|
827
|
-
client software not being installed on the guest machine. Please verify
|
828
|
-
that the NFS client software is properly installed, and consult any resources
|
829
|
-
specific to the linux distro you're using for more information on how to
|
830
|
-
do this.
|
831
825
|
linux_rdp_client_not_found: |-
|
832
826
|
An appropriate RDP client was not found. Vagrant requires either
|
833
827
|
`xfreerdp` or `rdesktop` in order to connect via RDP to the Vagrant
|
@@ -875,6 +869,8 @@ en:
|
|
875
869
|
If the problem persists, please report a bug to the net-ssh project.
|
876
870
|
|
877
871
|
%{message}
|
872
|
+
network_type_not_supported: |-
|
873
|
+
The %{type} network type is not supported for this box or guest.
|
878
874
|
nfs_bad_exports: |-
|
879
875
|
NFS is reporting that your exports file is invalid. Vagrant does
|
880
876
|
this check before making any changes to the file. Please correct
|
@@ -885,6 +881,12 @@ en:
|
|
885
881
|
Vagrant can't read your current NFS exports! The exports file should be
|
886
882
|
readable by any user. This is usually caused by invalid permissions
|
887
883
|
on your NFS exports file. Please fix them and try again.
|
884
|
+
nfs_mount_failed: |-
|
885
|
+
Mounting NFS shared folders failed. This is most often caused by the NFS
|
886
|
+
client software not being installed on the guest machine. Please verify
|
887
|
+
that the NFS client software is properly installed, and consult any resources
|
888
|
+
specific to the linux distro you're using for more information on how to
|
889
|
+
do this.
|
888
890
|
nfs_no_guest_ip: |-
|
889
891
|
No guest IP was given to the Vagrant core NFS helper. This is an
|
890
892
|
internal error that should be reported as a bug.
|
@@ -1340,6 +1342,38 @@ en:
|
|
1340
1342
|
VirtualBox is complaining that the installation is incomplete. Please
|
1341
1343
|
run `VBoxManage --version` to see the error message which should contain
|
1342
1344
|
instructions on how to fix this error.
|
1345
|
+
virtualbox_mount_failed: |-
|
1346
|
+
Vagrant was unable to mount VirtualBox shared folders. This is usually
|
1347
|
+
because the filesystem "vboxsf" is not available. This filesystem is
|
1348
|
+
made available via the VirtualBox Guest Additions and kernel module.
|
1349
|
+
Please verify that these guest additions are properly installed in the
|
1350
|
+
guest. This is not a bug in Vagrant and is usually caused by a faulty
|
1351
|
+
Vagrant box. For context, the command attemped was:
|
1352
|
+
|
1353
|
+
%{command}
|
1354
|
+
|
1355
|
+
The error output from the command was:
|
1356
|
+
|
1357
|
+
%{output}
|
1358
|
+
virtualbox_mount_not_supported_bsd: |-
|
1359
|
+
Vagrant is not able to mount VirtualBox shared folders on BSD-based
|
1360
|
+
guests. BSD-based guests do not support the VirtualBox filesystem at
|
1361
|
+
this time.
|
1362
|
+
|
1363
|
+
To change the type of the default synced folder, specify the type as
|
1364
|
+
rsync or nfs:
|
1365
|
+
|
1366
|
+
config.vm.synced_folder ".", "/vagrant", type: "nfs" # or "rsync"
|
1367
|
+
|
1368
|
+
Alternatively, if you do not need to mount the default synced folder,
|
1369
|
+
you can also disable it entirely:
|
1370
|
+
|
1371
|
+
config.vm.synced_folder ".", "/vagrant", disabled: true
|
1372
|
+
|
1373
|
+
You can read more about Vagrant's synced folder types and the various
|
1374
|
+
configuration options on the Vagrant website.
|
1375
|
+
|
1376
|
+
This is not a bug in Vagrant.
|
1343
1377
|
virtualbox_name_exists: |-
|
1344
1378
|
The name of your virtual machine couldn't be set because VirtualBox
|
1345
1379
|
is reporting another VM with that name already exists. Most of the
|
@@ -20,18 +20,18 @@ describe "VagrantPlugins::GuestArch::Cap::ChangeHostName" do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
describe ".change_host_name" do
|
23
|
-
let(:
|
23
|
+
let(:name) { "banana-rama.example.com" }
|
24
24
|
|
25
25
|
it "sets the hostname" do
|
26
|
-
comm.stub_command("hostname | grep
|
26
|
+
comm.stub_command("hostname -f | grep '^#{name}$'", exit_code: 1)
|
27
27
|
|
28
|
-
described_class.change_host_name(machine,
|
29
|
-
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname '
|
28
|
+
described_class.change_host_name(machine, name)
|
29
|
+
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname 'banana-rama'/)
|
30
30
|
end
|
31
31
|
|
32
32
|
it "does not change the hostname if already set" do
|
33
|
-
comm.stub_command("hostname | grep
|
34
|
-
described_class.change_host_name(machine,
|
33
|
+
comm.stub_command("hostname -f | grep '^#{name}$'", exit_code: 0)
|
34
|
+
described_class.change_host_name(machine, name)
|
35
35
|
expect(comm.received_commands.size).to eq(1)
|
36
36
|
end
|
37
37
|
end
|
@@ -1,20 +1,18 @@
|
|
1
1
|
require_relative "../../../../base"
|
2
2
|
|
3
3
|
describe "VagrantPlugins::GuestArch::Cap::ConfigureNetworks" do
|
4
|
-
let(:
|
4
|
+
let(:caps) do
|
5
5
|
VagrantPlugins::GuestArch::Plugin
|
6
6
|
.components
|
7
7
|
.guest_capabilities[:arch]
|
8
|
-
.get(:configure_networks)
|
9
8
|
end
|
10
9
|
|
11
|
-
let(:
|
10
|
+
let(:guest) { double("guest") }
|
11
|
+
let(:machine) { double("machine", guest: guest) }
|
12
12
|
let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) }
|
13
13
|
|
14
14
|
before do
|
15
15
|
allow(machine).to receive(:communicate).and_return(comm)
|
16
|
-
comm.stub_command("ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://'",
|
17
|
-
stdout: "eth1\neth2")
|
18
16
|
end
|
19
17
|
|
20
18
|
after do
|
@@ -22,6 +20,13 @@ describe "VagrantPlugins::GuestArch::Cap::ConfigureNetworks" do
|
|
22
20
|
end
|
23
21
|
|
24
22
|
describe ".configure_networks" do
|
23
|
+
let(:cap) { caps.get(:configure_networks) }
|
24
|
+
|
25
|
+
before do
|
26
|
+
allow(guest).to receive(:capability).with(:network_interfaces)
|
27
|
+
.and_return(["eth1", "eth2"])
|
28
|
+
end
|
29
|
+
|
25
30
|
let(:network_1) do
|
26
31
|
{
|
27
32
|
interface: 0,
|
@@ -40,16 +45,16 @@ describe "VagrantPlugins::GuestArch::Cap::ConfigureNetworks" do
|
|
40
45
|
end
|
41
46
|
|
42
47
|
it "creates and starts the networks" do
|
43
|
-
|
44
|
-
expect(comm.received_commands[
|
45
|
-
expect(comm.received_commands[
|
46
|
-
expect(comm.received_commands[
|
47
|
-
expect(comm.received_commands[
|
48
|
-
|
49
|
-
expect(comm.received_commands[
|
50
|
-
expect(comm.received_commands[
|
51
|
-
expect(comm.received_commands[
|
52
|
-
expect(comm.received_commands[
|
48
|
+
cap.configure_networks(machine, [network_1, network_2])
|
49
|
+
expect(comm.received_commands[0]).to match(/mv (.+) '\/etc\/netctl\/eth1'/)
|
50
|
+
expect(comm.received_commands[0]).to match(/ip link set 'eth1' down/)
|
51
|
+
expect(comm.received_commands[0]).to match(/netctl restart 'eth1'/)
|
52
|
+
expect(comm.received_commands[0]).to match(/netctl enable 'eth1'/)
|
53
|
+
|
54
|
+
expect(comm.received_commands[0]).to match(/mv (.+) '\/etc\/netctl\/eth2'/)
|
55
|
+
expect(comm.received_commands[0]).to match(/ip link set 'eth2' down/)
|
56
|
+
expect(comm.received_commands[0]).to match(/netctl restart 'eth2'/)
|
57
|
+
expect(comm.received_commands[0]).to match(/netctl enable 'eth2'/)
|
53
58
|
end
|
54
59
|
end
|
55
60
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative "../../../../base"
|
2
|
+
|
3
|
+
describe "VagrantPlugins::GuestArch::Cap:RSync" do
|
4
|
+
let(:described_class) do
|
5
|
+
VagrantPlugins::GuestArch::Plugin
|
6
|
+
.components
|
7
|
+
.guest_capabilities[:arch]
|
8
|
+
.get(:rsync_install)
|
9
|
+
end
|
10
|
+
|
11
|
+
let(:machine) { double("machine") }
|
12
|
+
let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) }
|
13
|
+
|
14
|
+
before do
|
15
|
+
allow(machine).to receive(:communicate).and_return(comm)
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
comm.verify_expectations!
|
20
|
+
end
|
21
|
+
|
22
|
+
describe ".rsync_install" do
|
23
|
+
it "installs rsync=" do
|
24
|
+
described_class.rsync_install(machine)
|
25
|
+
|
26
|
+
expect(comm.received_commands[0]).to match(/pacman -Sy --noconfirm/)
|
27
|
+
expect(comm.received_commands[0]).to match(/pacman -S --noconfirm rsync/)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative "../../../../base"
|
2
|
+
|
3
|
+
describe "VagrantPlugins::GuestArch::Cap::SMB" do
|
4
|
+
let(:described_class) do
|
5
|
+
VagrantPlugins::GuestArch::Plugin
|
6
|
+
.components
|
7
|
+
.guest_capabilities[:arch]
|
8
|
+
.get(:smb_install)
|
9
|
+
end
|
10
|
+
|
11
|
+
let(:machine) { double("machine") }
|
12
|
+
let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) }
|
13
|
+
|
14
|
+
before do
|
15
|
+
allow(machine).to receive(:communicate).and_return(comm)
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
comm.verify_expectations!
|
20
|
+
end
|
21
|
+
|
22
|
+
describe ".smb_install" do
|
23
|
+
it "installs smb when /usr/bin/mount.cifs does not exist" do
|
24
|
+
comm.stub_command("test -f /usr/bin/mount.cifs", exit_code: 1)
|
25
|
+
described_class.smb_install(machine)
|
26
|
+
|
27
|
+
expect(comm.received_commands[1]).to match(/pacman -Sy --noconfirm/)
|
28
|
+
expect(comm.received_commands[1]).to match(/pacman -S --noconfirm cifs-utils/)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "does not install smb when /usr/bin/mount.cifs exists" do
|
32
|
+
comm.stub_command("test -f /usr/bin/mount.cifs", exit_code: 0)
|
33
|
+
described_class.smb_install(machine)
|
34
|
+
|
35
|
+
expect(comm.received_commands.join("")).to_not match(/-S/)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
require_relative "../../../../base"
|
2
2
|
|
3
3
|
describe "VagrantPlugins::GuestAtomic::Cap::ChangeHostName" do
|
4
|
-
let(:
|
4
|
+
let(:caps) do
|
5
5
|
VagrantPlugins::GuestAtomic::Plugin
|
6
6
|
.components
|
7
7
|
.guest_capabilities[:atomic]
|
8
|
-
.get(:change_host_name)
|
9
8
|
end
|
10
9
|
|
11
10
|
let(:machine) { double("machine") }
|
@@ -20,18 +19,20 @@ describe "VagrantPlugins::GuestAtomic::Cap::ChangeHostName" do
|
|
20
19
|
end
|
21
20
|
|
22
21
|
describe ".change_host_name" do
|
23
|
-
let(:
|
22
|
+
let(:cap) { caps.get(:change_host_name) }
|
23
|
+
|
24
|
+
let(:name) { "banana-rama.example.com" }
|
24
25
|
|
25
26
|
it "sets the hostname" do
|
26
|
-
comm.stub_command("hostname | grep
|
27
|
+
comm.stub_command("hostname -f | grep '^#{name}$'", exit_code: 1)
|
27
28
|
|
28
|
-
|
29
|
-
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname '
|
29
|
+
cap.change_host_name(machine, name)
|
30
|
+
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname 'banana-rama'/)
|
30
31
|
end
|
31
32
|
|
32
33
|
it "does not change the hostname if already set" do
|
33
|
-
comm.stub_command("hostname | grep
|
34
|
-
|
34
|
+
comm.stub_command("hostname -f | grep '^#{name}$'", exit_code: 0)
|
35
|
+
cap.change_host_name(machine, name)
|
35
36
|
expect(comm.received_commands.size).to eq(1)
|
36
37
|
end
|
37
38
|
end
|