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
@@ -0,0 +1,35 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module GuestArch
|
3
|
+
module Cap
|
4
|
+
class NFS
|
5
|
+
def self.nfs_client_installed(machine)
|
6
|
+
machine.communicate.test("pacman -Q nfs-utils")
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.nfs_pre(machine)
|
10
|
+
comm = machine.communicate
|
11
|
+
|
12
|
+
# There is a bug in NFS where the rpcbind functionality is not started
|
13
|
+
# and it's not a dependency of nfs-utils. Read more here:
|
14
|
+
#
|
15
|
+
# https://bbs.archlinux.org/viewtopic.php?id=193410
|
16
|
+
#
|
17
|
+
comm.sudo <<-EOH.gsub(/^ {12}/, "")
|
18
|
+
set -e
|
19
|
+
systemctl enable rpcbind
|
20
|
+
systemctl start rpcbind
|
21
|
+
EOH
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.nfs_client_install(machine)
|
25
|
+
comm = machine.communicate
|
26
|
+
comm.sudo <<-EOH.gsub(/^ {12}/, "")
|
27
|
+
set -e
|
28
|
+
pacman --noconfirm -Syy
|
29
|
+
pacman --noconfirm -S nfs-utils ntp
|
30
|
+
EOH
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module GuestArch
|
3
|
+
module Cap
|
4
|
+
class RSync
|
5
|
+
def self.rsync_install(machine)
|
6
|
+
comm = machine.communicate
|
7
|
+
comm.sudo <<-EOH.gsub(/^ {12}/, '')
|
8
|
+
set -e
|
9
|
+
pacman -Sy --noconfirm
|
10
|
+
pacman -S --noconfirm rsync
|
11
|
+
EOH
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module GuestArch
|
3
|
+
module Cap
|
4
|
+
class SMB
|
5
|
+
def self.smb_install(machine)
|
6
|
+
comm = machine.communicate
|
7
|
+
if !comm.test("test -f /usr/bin/mount.cifs")
|
8
|
+
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
9
|
+
pacman -Sy --noconfirm
|
10
|
+
pacman -S --noconfirm cifs-utils
|
11
|
+
EOH
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -6,20 +6,45 @@ module VagrantPlugins
|
|
6
6
|
name "Arch guest"
|
7
7
|
description "Arch guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:arch, :linux) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:arch, :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(:arch, :configure_networks) do
|
20
20
|
require_relative "cap/configure_networks"
|
21
21
|
Cap::ConfigureNetworks
|
22
22
|
end
|
23
|
+
|
24
|
+
guest_capability(:arch, :nfs_client_install) do
|
25
|
+
require_relative "cap/nfs"
|
26
|
+
Cap::NFS
|
27
|
+
end
|
28
|
+
|
29
|
+
guest_capability(:arch, :nfs_client_installed) do
|
30
|
+
require_relative "cap/nfs"
|
31
|
+
Cap::NFS
|
32
|
+
end
|
33
|
+
|
34
|
+
guest_capability(:arch, :nfs_pre) do
|
35
|
+
require_relative "cap/nfs"
|
36
|
+
Cap::NFS
|
37
|
+
end
|
38
|
+
|
39
|
+
guest_capability(:arch, :rsync_install) do
|
40
|
+
require_relative "cap/rsync"
|
41
|
+
Cap::RSync
|
42
|
+
end
|
43
|
+
|
44
|
+
guest_capability(:arch, :smb_install) do
|
45
|
+
require_relative "cap/smb"
|
46
|
+
Cap::SMB
|
47
|
+
end
|
23
48
|
end
|
24
49
|
end
|
25
50
|
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
|
8
|
+
if !comm.test("hostname -f | grep '^#{name}$'", sudo: false)
|
9
9
|
basename = name.split(".", 2)[0]
|
10
|
-
comm.sudo <<-EOH
|
11
|
-
|
10
|
+
comm.sudo <<-EOH.gsub(/^ {14}/, "")
|
11
|
+
set -e
|
12
12
|
|
13
|
-
#
|
14
|
-
|
13
|
+
# Set hostname
|
14
|
+
hostnamectl set-hostname '#{basename}'
|
15
15
|
|
16
|
-
#
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
@@ -6,17 +6,17 @@ module VagrantPlugins
|
|
6
6
|
name "Atomic Host guest"
|
7
7
|
description "Atomic Host guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:atomic, :fedora) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:atomic, :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(:atomic, :docker_daemon_running) do
|
20
20
|
require_relative "cap/docker"
|
21
21
|
Cap::Docker
|
22
22
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module VagrantPlugins
|
2
|
-
module
|
2
|
+
module GuestBSD
|
3
3
|
module Cap
|
4
4
|
class Halt
|
5
5
|
def self.halt(machine)
|
6
6
|
begin
|
7
|
-
machine.communicate.sudo("/sbin/shutdown -p
|
7
|
+
machine.communicate.sudo("/sbin/shutdown -p now", shell: "sh")
|
8
8
|
rescue IOError
|
9
9
|
# Do nothing, because it probably means the machine shut down
|
10
10
|
# and SSH connection was lost.
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "shellwords"
|
2
|
+
require "vagrant/util/retryable"
|
3
|
+
|
4
|
+
module VagrantPlugins
|
5
|
+
module GuestBSD
|
6
|
+
module Cap
|
7
|
+
class NFS
|
8
|
+
extend Vagrant::Util::Retryable
|
9
|
+
|
10
|
+
# Mount the given NFS folder.
|
11
|
+
def self.mount_nfs_folder(machine, ip, folders)
|
12
|
+
comm = machine.communicate
|
13
|
+
|
14
|
+
folders.each do |name, opts|
|
15
|
+
# Mount each folder separately so we can retry.
|
16
|
+
commands = ["set -e"]
|
17
|
+
|
18
|
+
# Shellescape the paths in case they do not have special characters.
|
19
|
+
guest_path = Shellwords.escape(opts[:guestpath])
|
20
|
+
host_path = Shellwords.escape(opts[:hostpath])
|
21
|
+
|
22
|
+
# Build the list of mount options.
|
23
|
+
mount_opts = []
|
24
|
+
mount_opts << "nfsv#{opts[:nfs_version]}" if opts[:nfs_version]
|
25
|
+
mount_opts << "mntudp" if opts[:nfs_udp]
|
26
|
+
if opts[:mount_options]
|
27
|
+
mount_opts = mount_opts + opts[:mount_options].dup
|
28
|
+
end
|
29
|
+
mount_opts = mount_opts.join(",")
|
30
|
+
|
31
|
+
# Make the directory on the guest.
|
32
|
+
commands << "mkdir -p #{guest_path}"
|
33
|
+
|
34
|
+
# Perform the mount operation.
|
35
|
+
commands << "/sbin/mount -t nfs -o '#{mount_opts}' #{ip}:#{host_path} #{guest_path}"
|
36
|
+
|
37
|
+
# Run the command, raising a specific error.
|
38
|
+
retryable(on: Vagrant::Errors::NFSMountFailed, tries: 3, sleep: 5) do
|
39
|
+
machine.communicate.sudo(commands.join("\n"),
|
40
|
+
error_class: Vagrant::Errors::NFSMountFailed,
|
41
|
+
shell: "sh",
|
42
|
+
)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require "tempfile"
|
2
|
+
|
3
|
+
require "vagrant/util/shell_quote"
|
4
|
+
|
5
|
+
module VagrantPlugins
|
6
|
+
module GuestBSD
|
7
|
+
module Cap
|
8
|
+
class PublicKey
|
9
|
+
def self.insert_public_key(machine, contents)
|
10
|
+
comm = machine.communicate
|
11
|
+
contents = contents.strip << "\n"
|
12
|
+
|
13
|
+
remote_path = "/tmp/vagrant-insert-pubkey-#{Time.now.to_i}"
|
14
|
+
Tempfile.open("vagrant-bsd-insert-public-key") do |f|
|
15
|
+
f.binmode
|
16
|
+
f.write(contents)
|
17
|
+
f.fsync
|
18
|
+
f.close
|
19
|
+
comm.upload(f.path, remote_path)
|
20
|
+
end
|
21
|
+
|
22
|
+
# Use execute (not sudo) because we want to execute this as the SSH
|
23
|
+
# user (which is "vagrant" by default).
|
24
|
+
comm.execute <<-EOH.gsub(/^ {12}/, "")
|
25
|
+
set -e
|
26
|
+
|
27
|
+
mkdir -p ~/.ssh
|
28
|
+
chmod 0700 ~/.ssh
|
29
|
+
cat '#{remote_path}' >> ~/.ssh/authorized_keys
|
30
|
+
chmod 0600 ~/.ssh/authorized_keys
|
31
|
+
|
32
|
+
rm -f '#{remote_path}'
|
33
|
+
EOH
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.remove_public_key(machine, contents)
|
37
|
+
comm = machine.communicate
|
38
|
+
contents = contents.strip << "\n"
|
39
|
+
|
40
|
+
remote_path = "/tmp/vagrant-remove-pubkey-#{Time.now.to_i}"
|
41
|
+
Tempfile.open("vagrant-bsd-remove-public-key") do |f|
|
42
|
+
f.binmode
|
43
|
+
f.write(contents)
|
44
|
+
f.fsync
|
45
|
+
f.close
|
46
|
+
comm.upload(f.path, remote_path)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Use execute (not sudo) because we want to execute this as the SSH
|
50
|
+
# user (which is "vagrant" by default).
|
51
|
+
comm.execute <<-EOH.sub(/^ {12}/, "")
|
52
|
+
set -e
|
53
|
+
|
54
|
+
if test -f ~/.ssh/authorized_keys; then
|
55
|
+
grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp
|
56
|
+
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
|
57
|
+
fi
|
58
|
+
|
59
|
+
rm -f '#{remote_path}'
|
60
|
+
EOH
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module GuestBSD
|
3
|
+
module Cap
|
4
|
+
class VirtualBox
|
5
|
+
# BSD-based guests do not currently support VirtualBox synced folders.
|
6
|
+
# Instead of raising an error about a missing capability, this defines
|
7
|
+
# the capability and then provides a more detailed error message,
|
8
|
+
# linking to sources on the Internet where the problem is
|
9
|
+
# better-described.
|
10
|
+
def self.mount_virtualbox_shared_folder(machine, name, guestpath, options)
|
11
|
+
raise Vagrant::Errors::VirtualBoxMountNotSupportedBSD
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module GuestBSD
|
5
|
+
class Plugin < Vagrant.plugin("2")
|
6
|
+
name "BSD-based guest"
|
7
|
+
description "BSD-based guest support."
|
8
|
+
|
9
|
+
guest(:bsd) do
|
10
|
+
require_relative "guest"
|
11
|
+
Guest
|
12
|
+
end
|
13
|
+
|
14
|
+
guest_capability(:bsd, :halt) do
|
15
|
+
require_relative "cap/halt"
|
16
|
+
Cap::Halt
|
17
|
+
end
|
18
|
+
|
19
|
+
guest_capability(:bsd, :insert_public_key) do
|
20
|
+
require_relative "cap/public_key"
|
21
|
+
Cap::PublicKey
|
22
|
+
end
|
23
|
+
|
24
|
+
guest_capability(:bsd, :mount_nfs_folder) do
|
25
|
+
require_relative "cap/nfs"
|
26
|
+
Cap::NFS
|
27
|
+
end
|
28
|
+
|
29
|
+
guest_capability(:bsd, :mount_virtualbox_shared_folder) do
|
30
|
+
require_relative "cap/virtualbox"
|
31
|
+
Cap::VirtualBox
|
32
|
+
end
|
33
|
+
|
34
|
+
guest_capability(:bsd, :remove_public_key) do
|
35
|
+
require_relative "cap/public_key"
|
36
|
+
Cap::PublicKey
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -5,7 +5,7 @@ module VagrantPlugins
|
|
5
5
|
def self.change_host_name(machine, name)
|
6
6
|
comm = machine.communicate
|
7
7
|
|
8
|
-
if !comm.test("hostname
|
8
|
+
if !comm.test("hostname -f | grep '^#{name}$'", sudo: false)
|
9
9
|
basename = name.split(".", 2)[0]
|
10
10
|
comm.sudo("hostname '#{basename}'")
|
11
11
|
|
@@ -6,22 +6,22 @@ module VagrantPlugins
|
|
6
6
|
name "CoreOS guest"
|
7
7
|
description "CoreOS guest support."
|
8
8
|
|
9
|
-
guest(
|
9
|
+
guest(:coreos, :linux) do
|
10
10
|
require_relative "guest"
|
11
11
|
Guest
|
12
12
|
end
|
13
13
|
|
14
|
-
guest_capability(
|
14
|
+
guest_capability(:coreos, :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(:coreos, :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(:coreos, :docker_daemon_running) do
|
25
25
|
require_relative "cap/docker"
|
26
26
|
Cap::Docker
|
27
27
|
end
|
@@ -5,10 +5,13 @@ module VagrantPlugins
|
|
5
5
|
def self.change_host_name(machine, name)
|
6
6
|
comm = machine.communicate
|
7
7
|
|
8
|
-
if !comm.test("hostname -f | grep
|
8
|
+
if !comm.test("hostname -f | grep '^#{name}$'", sudo: false)
|
9
9
|
basename = name.split(".", 2)[0]
|
10
10
|
|
11
11
|
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
12
|
+
set -e
|
13
|
+
|
14
|
+
# Set hostname
|
12
15
|
scutil --set ComputerName '#{name}'
|
13
16
|
scutil --set HostName '#{name}'
|
14
17
|
|
@@ -35,12 +35,19 @@ module VagrantPlugins
|
|
35
35
|
end
|
36
36
|
|
37
37
|
network_type = network[:type].to_sym
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
case network_type.to_sym
|
39
|
+
when :static
|
40
|
+
command = "networksetup -setmanual \"#{service_name}\" #{network[:ip]} #{network[:netmask]} #{network[:router]}"
|
41
|
+
when :static6
|
42
|
+
command = "networksetup -setv6manual \"#{service_name}\" #{network[:ip]} #{network[:netmask]} #{network[:router]}"
|
43
|
+
when :dhcp
|
41
44
|
command = "networksetup -setdhcp \"#{service_name}\""
|
45
|
+
when :dhcp6
|
46
|
+
# This is not actually possible yet in Vagrant, but when we do
|
47
|
+
# enable IPv6 across the board, Darwin will already have support.
|
48
|
+
command = "networksetup -setv6automatic \"#{service_name}\""
|
42
49
|
else
|
43
|
-
raise
|
50
|
+
raise Vagrant::Errors::NetworkTypeNotSupported, type: network_type
|
44
51
|
end
|
45
52
|
|
46
53
|
machine.communicate.sudo(command)
|
@@ -65,7 +72,7 @@ module VagrantPlugins
|
|
65
72
|
ints = ::IO.read(tmp_ints)
|
66
73
|
ints.split(/\n\n/m).each do |i|
|
67
74
|
if i.match(/Hardware/) && i.match(/Ethernet/)
|
68
|
-
# Ethernet, should be 2 lines,
|
75
|
+
# Ethernet, should be 2 lines,
|
69
76
|
# (3) Thunderbolt Ethernet
|
70
77
|
# (Hardware Port: Thunderbolt Ethernet, Device: en1)
|
71
78
|
|