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
@@ -4,7 +4,9 @@ module VagrantPlugins
|
|
4
4
|
class Halt
|
5
5
|
def self.halt(machine)
|
6
6
|
begin
|
7
|
-
|
7
|
+
# Darwin does not support the `-p` option like the rest of the
|
8
|
+
# BSD-based guests, so it needs its own cap.
|
9
|
+
machine.communicate.sudo("/sbin/shutdown -h now")
|
8
10
|
rescue IOError
|
9
11
|
# Do nothing because SSH connection closed and it probably
|
10
12
|
# means the VM just shut down really fast.
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "shellwords"
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module GuestDarwin
|
3
5
|
module Cap
|
@@ -11,9 +13,8 @@ module VagrantPlugins
|
|
11
13
|
end
|
12
14
|
|
13
15
|
def self.rsync_pre(machine, opts)
|
14
|
-
|
15
|
-
|
16
|
-
end
|
16
|
+
guest_path = Shellwords.escape(opts[:guestpath])
|
17
|
+
machine.communicate.sudo("mkdir -p #{guest_path}")
|
17
18
|
end
|
18
19
|
|
19
20
|
def self.rsync_post(machine, opts)
|
@@ -21,8 +22,10 @@ module VagrantPlugins
|
|
21
22
|
return
|
22
23
|
end
|
23
24
|
|
25
|
+
guest_path = Shellwords.escape(opts[:guestpath])
|
26
|
+
|
24
27
|
machine.communicate.sudo(
|
25
|
-
"find
|
28
|
+
"find #{guest_path} '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
26
29
|
"xargs -0 chown #{opts[:owner]}:#{opts[:group]}")
|
27
30
|
end
|
28
31
|
end
|
@@ -6,82 +6,67 @@ module VagrantPlugins
|
|
6
6
|
name "Darwin guest"
|
7
7
|
description "Darwin guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:darwin, :bsd) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:darwin, :change_host_name) do
|
15
15
|
require_relative "cap/change_host_name"
|
16
16
|
Cap::ChangeHostName
|
17
17
|
end
|
18
18
|
|
19
|
-
guest_capability(
|
19
|
+
guest_capability(:darwin, :choose_addressable_ip_addr) do
|
20
20
|
require_relative "cap/choose_addressable_ip_addr"
|
21
21
|
Cap::ChooseAddressableIPAddr
|
22
22
|
end
|
23
23
|
|
24
|
-
guest_capability(
|
24
|
+
guest_capability(:darwin, :configure_networks) do
|
25
25
|
require_relative "cap/configure_networks"
|
26
26
|
Cap::ConfigureNetworks
|
27
27
|
end
|
28
28
|
|
29
|
-
guest_capability(
|
29
|
+
guest_capability(:darwin, :halt) do
|
30
30
|
require_relative "cap/halt"
|
31
31
|
Cap::Halt
|
32
32
|
end
|
33
33
|
|
34
|
-
guest_capability(
|
35
|
-
require_relative "cap/insert_public_key"
|
36
|
-
Cap::InsertPublicKey
|
37
|
-
end
|
38
|
-
|
39
|
-
guest_capability("darwin", "mount_nfs_folder") do
|
40
|
-
require_relative "cap/mount_nfs_folder"
|
41
|
-
Cap::MountNFSFolder
|
42
|
-
end
|
43
|
-
|
44
|
-
guest_capability("darwin", "mount_smb_shared_folder") do
|
34
|
+
guest_capability(:darwin, :mount_smb_shared_folder) do
|
45
35
|
require_relative "cap/mount_smb_shared_folder"
|
46
36
|
Cap::MountSMBSharedFolder
|
47
37
|
end
|
48
38
|
|
49
|
-
guest_capability(
|
39
|
+
guest_capability(:darwin, :mount_vmware_shared_folder) do
|
50
40
|
require_relative "cap/mount_vmware_shared_folder"
|
51
41
|
Cap::MountVmwareSharedFolder
|
52
42
|
end
|
53
43
|
|
54
|
-
guest_capability(
|
55
|
-
require_relative "cap/remove_public_key"
|
56
|
-
Cap::RemovePublicKey
|
57
|
-
end
|
58
|
-
|
59
|
-
guest_capability("darwin", "rsync_installed") do
|
44
|
+
guest_capability(:darwin, :rsync_installed) do
|
60
45
|
require_relative "cap/rsync"
|
61
46
|
Cap::RSync
|
62
47
|
end
|
63
48
|
|
64
|
-
guest_capability(
|
49
|
+
guest_capability(:darwin, :rsync_command) do
|
65
50
|
require_relative "cap/rsync"
|
66
51
|
Cap::RSync
|
67
52
|
end
|
68
53
|
|
69
|
-
guest_capability(
|
54
|
+
guest_capability(:darwin, :rsync_post) do
|
70
55
|
require_relative "cap/rsync"
|
71
56
|
Cap::RSync
|
72
57
|
end
|
73
58
|
|
74
|
-
guest_capability(
|
59
|
+
guest_capability(:darwin, :rsync_pre) do
|
75
60
|
require_relative "cap/rsync"
|
76
61
|
Cap::RSync
|
77
62
|
end
|
78
63
|
|
79
|
-
guest_capability(
|
64
|
+
guest_capability(:darwin, :shell_expand_guest_path) do
|
80
65
|
require_relative "cap/shell_expand_guest_path"
|
81
66
|
Cap::ShellExpandGuestPath
|
82
67
|
end
|
83
68
|
|
84
|
-
guest_capability(
|
69
|
+
guest_capability(:darwin, :verify_vmware_hgfs) do
|
85
70
|
require_relative "cap/verify_vmware_hgfs"
|
86
71
|
Cap::VerifyVmwareHgfs
|
87
72
|
end
|
@@ -2,20 +2,23 @@ module VagrantPlugins
|
|
2
2
|
module GuestDebian
|
3
3
|
module Cap
|
4
4
|
class ChangeHostName
|
5
|
-
# For more information, please see:
|
6
|
-
#
|
7
|
-
# https://wiki.debian.org/HowTo/ChangeHostname
|
8
|
-
#
|
9
5
|
def self.change_host_name(machine, name)
|
10
6
|
comm = machine.communicate
|
11
7
|
|
12
|
-
if !comm.test("hostname -f | grep
|
8
|
+
if !comm.test("hostname -f | grep '^#{name}$'", sudo: false)
|
13
9
|
basename = name.split(".", 2)[0]
|
14
10
|
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
11
|
+
# Ensure exit on command error
|
12
|
+
set -e
|
13
|
+
|
15
14
|
# Set the hostname
|
16
|
-
echo '#{
|
15
|
+
echo '#{basename}' > /etc/hostname
|
17
16
|
hostname -F /etc/hostname
|
18
17
|
|
18
|
+
if command -v hostnamectl; then
|
19
|
+
hostnamectl set-hostname '#{basename}'
|
20
|
+
fi
|
21
|
+
|
19
22
|
# Remove comments and blank lines from /etc/hosts
|
20
23
|
sed -i'' -e 's/#.*$//' -e '/^$/d' /etc/hosts
|
21
24
|
|
@@ -27,17 +30,13 @@ module VagrantPlugins
|
|
27
30
|
# Update mailname
|
28
31
|
echo '#{name}' > /etc/mailname
|
29
32
|
|
30
|
-
# Restart
|
31
|
-
if
|
32
|
-
|
33
|
-
fi
|
34
|
-
|
35
|
-
if [ test -f /etc/init.d/networking ]; then
|
36
|
-
invoke-rc.d networking force-reload
|
33
|
+
# Restart hostname services
|
34
|
+
if test -f /etc/init.d/hostname; then
|
35
|
+
/etc/init.d/hostname start || true
|
37
36
|
fi
|
38
37
|
|
39
|
-
if
|
40
|
-
|
38
|
+
if test -f /etc/init.d/hostname.sh; then
|
39
|
+
/etc/init.d/hostname.sh start || true
|
41
40
|
fi
|
42
41
|
EOH
|
43
42
|
end
|
@@ -11,13 +11,9 @@ module VagrantPlugins
|
|
11
11
|
def self.configure_networks(machine, networks)
|
12
12
|
comm = machine.communicate
|
13
13
|
|
14
|
-
commands = []
|
14
|
+
commands = ["set -e"]
|
15
15
|
entries = []
|
16
|
-
interfaces =
|
17
|
-
|
18
|
-
comm.sudo("ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://'") do |_, stdout|
|
19
|
-
interfaces = stdout.split("\n")
|
20
|
-
end
|
16
|
+
interfaces = machine.guest.capability(:network_interfaces)
|
21
17
|
|
22
18
|
networks.each do |network|
|
23
19
|
network[:device] = interfaces[network[:interface]]
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module VagrantPlugins
|
2
2
|
module GuestDebian
|
3
3
|
module Cap
|
4
|
-
class
|
4
|
+
class NFS
|
5
5
|
def self.nfs_client_install(machine)
|
6
6
|
comm = machine.communicate
|
7
7
|
comm.sudo <<-EOH.gsub(/^ {12}/, '')
|
8
|
+
set -e
|
8
9
|
apt-get -yqq update
|
9
10
|
apt-get -yqq install nfs-common portmap
|
10
11
|
EOH
|
@@ -4,12 +4,11 @@ module VagrantPlugins
|
|
4
4
|
class RSync
|
5
5
|
def self.rsync_install(machine)
|
6
6
|
comm = machine.communicate
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
7
|
+
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
8
|
+
set -e
|
9
|
+
apt-get -yqq update
|
10
|
+
apt-get -yqq install rsync
|
11
|
+
EOH
|
13
12
|
end
|
14
13
|
end
|
15
14
|
end
|
@@ -6,32 +6,32 @@ module VagrantPlugins
|
|
6
6
|
name "Debian guest"
|
7
7
|
description "Debian guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:debian, :linux) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:debian, :configure_networks) do
|
15
15
|
require_relative "cap/configure_networks"
|
16
16
|
Cap::ConfigureNetworks
|
17
17
|
end
|
18
18
|
|
19
|
-
guest_capability(
|
19
|
+
guest_capability(:debian, :change_host_name) do
|
20
20
|
require_relative "cap/change_host_name"
|
21
21
|
Cap::ChangeHostName
|
22
22
|
end
|
23
23
|
|
24
|
-
guest_capability(
|
25
|
-
require_relative "cap/
|
26
|
-
Cap::
|
24
|
+
guest_capability(:debian, :nfs_client_install) do
|
25
|
+
require_relative "cap/nfs"
|
26
|
+
Cap::NFS
|
27
27
|
end
|
28
28
|
|
29
|
-
guest_capability(
|
29
|
+
guest_capability(:debian, :rsync_install) do
|
30
30
|
require_relative "cap/rsync"
|
31
31
|
Cap::RSync
|
32
32
|
end
|
33
33
|
|
34
|
-
guest_capability(
|
34
|
+
guest_capability(:debian, :smb_install) do
|
35
35
|
require_relative "cap/smb"
|
36
36
|
Cap::SMB
|
37
37
|
end
|
@@ -13,9 +13,9 @@ module VagrantPlugins
|
|
13
13
|
comm.execute("localcli storage nfs remove -v #{volume}")
|
14
14
|
end
|
15
15
|
mount_command = "localcli storage nfs add -H #{ip} -s '#{opts[:hostpath]}' -v '#{volume}'"
|
16
|
-
retryable(on: Vagrant::Errors::
|
16
|
+
retryable(on: Vagrant::Errors::NFSMountFailed, tries: 5, sleep: 2) do
|
17
17
|
comm.execute(mount_command,
|
18
|
-
error_class: Vagrant::Errors::
|
18
|
+
error_class: Vagrant::Errors::NFSMountFailed)
|
19
19
|
end
|
20
20
|
|
21
21
|
# symlink vmfs volume to :guestpath
|
@@ -6,27 +6,27 @@ module VagrantPlugins
|
|
6
6
|
name "ESXi guest."
|
7
7
|
description "ESXi guest support."
|
8
8
|
|
9
|
-
guest(
|
10
|
-
|
9
|
+
guest(:esxi) do
|
10
|
+
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:esxi, :change_host_name) do
|
15
15
|
require_relative "cap/change_host_name"
|
16
16
|
Cap::ChangeHostName
|
17
17
|
end
|
18
18
|
|
19
|
-
guest_capability(
|
19
|
+
guest_capability(:esxi, :configure_networks) do
|
20
20
|
require_relative "cap/configure_networks"
|
21
21
|
Cap::ConfigureNetworks
|
22
22
|
end
|
23
23
|
|
24
|
-
guest_capability(
|
24
|
+
guest_capability(:esxi, :mount_nfs_folder) do
|
25
25
|
require_relative "cap/mount_nfs_folder"
|
26
26
|
Cap::MountNFSFolder
|
27
27
|
end
|
28
28
|
|
29
|
-
guest_capability(
|
29
|
+
guest_capability(:esxi, :halt) do
|
30
30
|
require_relative "cap/halt"
|
31
31
|
Cap::Halt
|
32
32
|
end
|
@@ -6,27 +6,12 @@ module VagrantPlugins
|
|
6
6
|
name "Fedora guest"
|
7
7
|
description "Fedora guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:fedora, :redhat) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
15
|
-
require_relative "cap/change_host_name"
|
16
|
-
Cap::ChangeHostName
|
17
|
-
end
|
18
|
-
|
19
|
-
guest_capability("fedora", "configure_networks") do
|
20
|
-
require_relative "cap/configure_networks"
|
21
|
-
Cap::ConfigureNetworks
|
22
|
-
end
|
23
|
-
|
24
|
-
guest_capability("fedora", "network_scripts_dir") do
|
25
|
-
require_relative "cap/network_scripts_dir"
|
26
|
-
Cap::NetworkScriptsDir
|
27
|
-
end
|
28
|
-
|
29
|
-
guest_capability("fedora", "flavor") do
|
14
|
+
guest_capability(:fedora, :flavor) do
|
30
15
|
require_relative "cap/flavor"
|
31
16
|
Cap::Flavor
|
32
17
|
end
|
@@ -3,10 +3,9 @@ module VagrantPlugins
|
|
3
3
|
module Cap
|
4
4
|
class ChangeHostName
|
5
5
|
def self.change_host_name(machine, name)
|
6
|
-
options = { shell: "sh" }
|
7
6
|
comm = machine.communicate
|
8
7
|
|
9
|
-
if !comm.test("hostname -f | grep
|
8
|
+
if !comm.test("hostname -f | grep '^#{name}$'", sudo: false, shell: "sh")
|
10
9
|
basename = name.split(".", 2)[0]
|
11
10
|
command = <<-EOH.gsub(/^ {14}/, '')
|
12
11
|
# Set the hostname
|
@@ -23,7 +22,7 @@ module VagrantPlugins
|
|
23
22
|
mv /tmp/tmp-hosts /etc/hosts
|
24
23
|
}
|
25
24
|
EOH
|
26
|
-
comm.sudo(command,
|
25
|
+
comm.sudo(command, shell: "sh")
|
27
26
|
end
|
28
27
|
end
|
29
28
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "shellwords"
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module GuestFreeBSD
|
3
5
|
module Cap
|
@@ -15,9 +17,8 @@ module VagrantPlugins
|
|
15
17
|
end
|
16
18
|
|
17
19
|
def self.rsync_pre(machine, opts)
|
18
|
-
|
19
|
-
|
20
|
-
end
|
20
|
+
guest_path = Shellwords.escape(opts[:guestpath])
|
21
|
+
machine.communicate.sudo("mkdir -p #{guest_path}")
|
21
22
|
end
|
22
23
|
|
23
24
|
def self.rsync_post(machine, opts)
|
@@ -25,8 +26,10 @@ module VagrantPlugins
|
|
25
26
|
return
|
26
27
|
end
|
27
28
|
|
29
|
+
guest_path = Shellwords.escape(opts[:guestpath])
|
30
|
+
|
28
31
|
machine.communicate.sudo(
|
29
|
-
"find
|
32
|
+
"find #{guest_path} '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
30
33
|
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
|
31
34
|
end
|
32
35
|
end
|
@@ -6,67 +6,47 @@ module VagrantPlugins
|
|
6
6
|
name "FreeBSD guest"
|
7
7
|
description "FreeBSD guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:freebsd, :bsd) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:freebsd, :change_host_name) do
|
15
15
|
require_relative "cap/change_host_name"
|
16
16
|
Cap::ChangeHostName
|
17
17
|
end
|
18
18
|
|
19
|
-
guest_capability(
|
19
|
+
guest_capability(:freebsd, :configure_networks) do
|
20
20
|
require_relative "cap/configure_networks"
|
21
21
|
Cap::ConfigureNetworks
|
22
22
|
end
|
23
23
|
|
24
|
-
guest_capability(
|
25
|
-
require_relative "cap/halt"
|
26
|
-
Cap::Halt
|
27
|
-
end
|
28
|
-
|
29
|
-
guest_capability("freebsd", "insert_public_key") do
|
30
|
-
require_relative "cap/insert_public_key"
|
31
|
-
Cap::InsertPublicKey
|
32
|
-
end
|
33
|
-
|
34
|
-
guest_capability("freebsd", "mount_nfs_folder") do
|
35
|
-
require_relative "cap/mount_nfs_folder"
|
36
|
-
Cap::MountNFSFolder
|
37
|
-
end
|
38
|
-
|
39
|
-
guest_capability("freebsd", "remove_public_key") do
|
40
|
-
require_relative "cap/remove_public_key"
|
41
|
-
Cap::RemovePublicKey
|
42
|
-
end
|
43
|
-
|
44
|
-
guest_capability("freebsd", "rsync_install") do
|
24
|
+
guest_capability(:freebsd, :rsync_install) do
|
45
25
|
require_relative "cap/rsync"
|
46
26
|
Cap::RSync
|
47
27
|
end
|
48
28
|
|
49
|
-
guest_capability(
|
29
|
+
guest_capability(:freebsd, :rsync_installed) do
|
50
30
|
require_relative "cap/rsync"
|
51
31
|
Cap::RSync
|
52
32
|
end
|
53
33
|
|
54
|
-
guest_capability(
|
34
|
+
guest_capability(:freebsd, :rsync_command) do
|
55
35
|
require_relative "cap/rsync"
|
56
36
|
Cap::RSync
|
57
37
|
end
|
58
38
|
|
59
|
-
guest_capability(
|
39
|
+
guest_capability(:freebsd, :rsync_post) do
|
60
40
|
require_relative "cap/rsync"
|
61
41
|
Cap::RSync
|
62
42
|
end
|
63
43
|
|
64
|
-
guest_capability(
|
44
|
+
guest_capability(:freebsd, :rsync_pre) do
|
65
45
|
require_relative "cap/rsync"
|
66
46
|
Cap::RSync
|
67
47
|
end
|
68
48
|
|
69
|
-
guest_capability(
|
49
|
+
guest_capability(:freebsd, :shell_expand_guest_path) do
|
70
50
|
require_relative "cap/shell_expand_guest_path"
|
71
51
|
Cap::ShellExpandGuestPath
|
72
52
|
end
|