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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3399ced63f71497def36fc66752c7ec363d56237
|
4
|
+
data.tar.gz: ad00037be9e832842a11df1442b49dc6e3fbbf57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a9015078be01b016a32aedb81c2f673dfcd8872e6b51960765da7441a850141b0ff7854e71046e5111a12ad60fde5ff41ec4a2d657866e4ed7658d33018f62
|
7
|
+
data.tar.gz: 3850bb5a10928494e7dcd3a5bc727b2d0c67b88e31ea127cde5a53bea5ff13f52422e6225fc6615ae04a49034809170c8106d4536cd3d19b9e89b6e4bc601413
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,55 @@
|
|
1
|
+
## 1.8.5 (July 18, 2016)
|
2
|
+
|
3
|
+
FEATURES:
|
4
|
+
|
5
|
+
- core: Provide a way to globally disable box update checks with the
|
6
|
+
environment variable `VAGRANT_BOX_UPDATE_CHECK_DISABLE`. Setting this
|
7
|
+
to any non-empty value will instruct Vagrant to not look for box updates
|
8
|
+
when running `vagrant up`. Setting this environment variable has no
|
9
|
+
effect on the `vagrant box` commands.
|
10
|
+
|
11
|
+
IMPROVEMENTS:
|
12
|
+
|
13
|
+
- guests/arch: Support installing synced folder clients [GH-7519]
|
14
|
+
- guests/darwin: Allow ipv6 static networks [GH-7491]
|
15
|
+
- providers/virtualbox: Add support for 5.1 [GH-7574]
|
16
|
+
|
17
|
+
BUG FIXES:
|
18
|
+
|
19
|
+
- core: Bump listen gem and Ruby version to improve rsync performance
|
20
|
+
[GH-7453, GH-7441]
|
21
|
+
- core: Check process stdout when detecting if a hyperv admin
|
22
|
+
[GH-7465, GH-7467]
|
23
|
+
- core: Ensure removal of temporary directory when box download fails
|
24
|
+
[GH-7496, GH-7499]
|
25
|
+
- core: Fix regression for installing plugins from path [GH-7505, GH-7493]
|
26
|
+
- core: Skip checking conflicts on disabled ports [GH-7587]
|
27
|
+
- core: Idempotent write-out for state file [GH-7550]
|
28
|
+
- core/guests: Create common BSD guest for shared logic
|
29
|
+
- core/guests: Ignore empty output from `/sbin/ip`
|
30
|
+
[GH-7539, GH-7537, GH-7533, GH-7605]
|
31
|
+
- synced_folders/nfs: Shellescape rsync paths
|
32
|
+
[GH-7540, GH-7605]
|
33
|
+
- synced_folders/nfs: Ensure retries take place [GH-6360, GH-7605]
|
34
|
+
- synced_folders/rsync: Shellescape rsync paths
|
35
|
+
[GH-7580, GH-6690, GH-7579, GH-7605]
|
36
|
+
- synced_folders/rsync: Translate Windows paths
|
37
|
+
[GH-7012, GH-6702, GH-6568, GH-7046]
|
38
|
+
- guests/bsd: Consolidate core logic for mounting NFS folders
|
39
|
+
[GH-7480, GH-7474, GH-7466]
|
40
|
+
- guests/bsd: Consolidate core logic for public key management [GH-7481]
|
41
|
+
- guests/bsd: Consolidate core logic for halting [GH-7484]
|
42
|
+
- guests/centos: Use `ip` instead of `ifconfig` to detect network interfaces
|
43
|
+
[GH-7460]
|
44
|
+
- guests/debian: Ensure newline when inserting public key [GH-7456]
|
45
|
+
- guests/linux: Ensure NFS retries during mounting [GH-7492]
|
46
|
+
- guests/redhat: Use `/sbin/ip` to list and configure networks for
|
47
|
+
compatability with older versions of CentOS [GH-7482]
|
48
|
+
- guests/redhat: Ensure newline when inserting public key [GH-7598, GH-7605]
|
49
|
+
- guests/ubuntu: Use /etc/os-release to detech [GH-7524]
|
50
|
+
- guests/ubuntu: Use short hostname [GH-7488, GH-7605]
|
51
|
+
- providers/hyperv: Fix version check and catch statement [GH-7447, GH-7487]
|
52
|
+
|
1
53
|
## 1.8.4 (June 13, 2016)
|
2
54
|
|
3
55
|
BUG FIXES:
|
data/Gemfile.lock
CHANGED
@@ -10,13 +10,13 @@ PATH
|
|
10
10
|
PATH
|
11
11
|
remote: .
|
12
12
|
specs:
|
13
|
-
vagrant-unbundled (1.8.
|
13
|
+
vagrant-unbundled (1.8.5.1)
|
14
14
|
bundler
|
15
15
|
childprocess (~> 0.5.0)
|
16
16
|
erubis (~> 2.7.0)
|
17
17
|
hashicorp-checkpoint (~> 0.1.1)
|
18
18
|
i18n (>= 0.6.0, <= 0.8.0)
|
19
|
-
listen (~> 3.
|
19
|
+
listen (~> 3.1.5)
|
20
20
|
log4r (~> 1.1.9, < 1.1.11)
|
21
21
|
logging (~> 2.0)
|
22
22
|
mime-types (~> 2.99)
|
@@ -25,7 +25,7 @@ PATH
|
|
25
25
|
net-ssh (~> 3.0.1)
|
26
26
|
nokogiri (~> 1.6.8)
|
27
27
|
rb-kqueue (~> 0.2.0)
|
28
|
-
rest-client (>= 1.6.0, <
|
28
|
+
rest-client (>= 1.6.0, < 3.0)
|
29
29
|
wdm (~> 0.1.0)
|
30
30
|
winrm (~> 1.6)
|
31
31
|
winrm-fs (~> 0.3.0)
|
@@ -55,9 +55,10 @@ GEM
|
|
55
55
|
domain_name (~> 0.5)
|
56
56
|
httpclient (2.8.0)
|
57
57
|
i18n (0.7.0)
|
58
|
-
listen (3.
|
58
|
+
listen (3.1.5)
|
59
59
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
60
60
|
rb-inotify (~> 0.9, >= 0.9.7)
|
61
|
+
ruby_dep (~> 1.2)
|
61
62
|
little-plugger (1.1.4)
|
62
63
|
log4r (1.1.10)
|
63
64
|
logging (2.1.0)
|
@@ -83,10 +84,10 @@ GEM
|
|
83
84
|
ffi (>= 0.5.0)
|
84
85
|
rb-kqueue (0.2.4)
|
85
86
|
ffi (>= 0.5.0)
|
86
|
-
rest-client (
|
87
|
+
rest-client (2.0.0)
|
87
88
|
http-cookie (>= 1.0.2, < 2.0)
|
88
|
-
mime-types (>= 1.16, <
|
89
|
-
netrc (~> 0.
|
89
|
+
mime-types (>= 1.16, < 4.0)
|
90
|
+
netrc (~> 0.8)
|
90
91
|
rspec (2.14.1)
|
91
92
|
rspec-core (~> 2.14.0)
|
92
93
|
rspec-expectations (~> 2.14.0)
|
@@ -95,6 +96,7 @@ GEM
|
|
95
96
|
rspec-expectations (2.14.5)
|
96
97
|
diff-lcs (>= 1.1.3, < 2.0)
|
97
98
|
rspec-mocks (2.14.6)
|
99
|
+
ruby_dep (1.4.0)
|
98
100
|
rubyntlm (0.6.0)
|
99
101
|
rubyzip (1.2.0)
|
100
102
|
safe_yaml (1.0.4)
|
data/RELEASE.md
CHANGED
@@ -4,25 +4,48 @@ This documents how to release Vagrant. Various steps in this document will
|
|
4
4
|
require privileged access to private systems, so this document is only
|
5
5
|
targetted at Vagrant core members who have the ability to cut a release.
|
6
6
|
|
7
|
-
|
7
|
+
1. Update `version.txt` to the version you want to release.
|
8
8
|
|
9
|
-
|
9
|
+
1. Update `CHANGELOG.md` to have a header with the release version and date.
|
10
10
|
|
11
|
-
|
12
|
-
`git tag vX.Y.Z`. Push them.
|
11
|
+
1. Commit those changes and also tag the release with the version:
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
```
|
14
|
+
$ git tag vX.Y.Z
|
15
|
+
$ git push --tags
|
16
|
+
```
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
1. Trigger an installer creation run within the HashiCorp Bamboo installation.
|
19
|
+
This will take around 45 minutes.
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
This will GPG sign and checksum the files.
|
21
|
+
1. Download all the resulting artifacts into the `pkg/dist` folder relative to
|
22
|
+
the Vagrant repository on your local machine.
|
23
23
|
|
24
|
-
|
24
|
+
1. Run `./scripts/sign.sh` with the version that is being created. This must be
|
25
|
+
run from the Vagrant repo root. This will GPG sign and checksum the files.
|
25
26
|
|
26
|
-
|
27
|
+
1. Run the following command to upload the binaries to the releases site:
|
27
28
|
|
28
|
-
|
29
|
+
```
|
30
|
+
$ hc-releases upload pkg/dist
|
31
|
+
```
|
32
|
+
|
33
|
+
1. Publish the new index files to the releases site:
|
34
|
+
|
35
|
+
```
|
36
|
+
$ hc-releases publish
|
37
|
+
```
|
38
|
+
|
39
|
+
1. Update `website/config.rb` to point to the latest version, commit, and push.
|
40
|
+
|
41
|
+
1. Tell HashiBot to deploy in ``#deploys`
|
42
|
+
|
43
|
+
```
|
44
|
+
hashibot deploy vagrant
|
45
|
+
```
|
46
|
+
|
47
|
+
1. Update `version.txt` to append `.dev` and add a new blank entry in the
|
48
|
+
CHANGELOG, commit, and push.
|
49
|
+
|
50
|
+
1. Update [Checkpoint](https://checkpoint.hashicorp.com/control) with the new
|
51
|
+
version.
|
@@ -34,7 +34,7 @@ module Vagrant
|
|
34
34
|
u = u.gsub("\\", "/")
|
35
35
|
if Util::Platform.windows? && u =~ /^[a-z]:/i
|
36
36
|
# On Windows, we need to be careful about drive letters
|
37
|
-
u = "file
|
37
|
+
u = "file:///#{URI.escape(u)}"
|
38
38
|
end
|
39
39
|
|
40
40
|
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
|
@@ -472,6 +472,8 @@ module Vagrant
|
|
472
472
|
if uri.scheme == "file"
|
473
473
|
url = uri.path
|
474
474
|
url ||= uri.opaque
|
475
|
+
#7570 Strip leading slash left in front of drive letter by uri.path
|
476
|
+
Util::Platform.windows? && url.gsub!(/^\/([a-zA-Z]:)/, '\1')
|
475
477
|
|
476
478
|
begin
|
477
479
|
File.open(url, "r") do |f|
|
@@ -93,6 +93,11 @@ module Vagrant
|
|
93
93
|
guest_port = options[:guest]
|
94
94
|
host_port = options[:host]
|
95
95
|
|
96
|
+
if options[:disabled]
|
97
|
+
@logger.debug("Skipping disabled port #{host_port}.")
|
98
|
+
next
|
99
|
+
end
|
100
|
+
|
96
101
|
if options[:protocol] && options[:protocol] != "tcp"
|
97
102
|
@logger.debug("Skipping #{host_port} because UDP protocol.")
|
98
103
|
next
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "digest/sha1"
|
2
|
+
require "fileutils"
|
2
3
|
require "monitor"
|
3
4
|
require "tmpdir"
|
4
5
|
|
@@ -447,7 +448,7 @@ module Vagrant
|
|
447
448
|
|
448
449
|
yield dir
|
449
450
|
ensure
|
450
|
-
|
451
|
+
FileUtils.rm_rf(dir.to_s)
|
451
452
|
end
|
452
453
|
|
453
454
|
# Checks if a box with a given name exists.
|
data/lib/vagrant/bundler.rb
CHANGED
@@ -272,7 +272,11 @@ module Vagrant
|
|
272
272
|
Gem.paths = ENV
|
273
273
|
|
274
274
|
# Reset the all specs override that Bundler does
|
275
|
-
Gem::Specification.
|
275
|
+
old_all = Gem::Specification._all
|
276
|
+
|
277
|
+
# WARNING: Seriously don't touch this without reading the comment attached
|
278
|
+
# to the monkey-patch at the bottom of this file.
|
279
|
+
Gem::Specification.vagrant_reset!
|
276
280
|
|
277
281
|
# /etc/gemrc and so on.
|
278
282
|
old_config = nil
|
@@ -299,6 +303,7 @@ module Vagrant
|
|
299
303
|
|
300
304
|
Gem.configuration = old_config
|
301
305
|
Gem.paths = ENV
|
306
|
+
Gem::Specification.all = old_all
|
302
307
|
end
|
303
308
|
|
304
309
|
# This method returns a proper "tempfile" on disk. Ruby's Tempfile class
|
@@ -330,6 +335,36 @@ module Vagrant
|
|
330
335
|
end
|
331
336
|
end
|
332
337
|
|
338
|
+
# This monkey patches Gem::Specification from RubyGems to add a new method,
|
339
|
+
# `vagrant_reset!`. For some background, Vagrant needs to set the value
|
340
|
+
# of these variables to nil to force new specs to be loaded. Previously,
|
341
|
+
# this was accomplished by setting Gem::Specification.specs = nil. However,
|
342
|
+
# newer versions of Rubygems try to map across that nil using a group_by
|
343
|
+
# clause, breaking things.
|
344
|
+
#
|
345
|
+
# This generally never affected Vagrant users who were using the official
|
346
|
+
# Vagrant installers because we lock to an older version of Rubygems that
|
347
|
+
# does not have this issue. The users of the official debian packages,
|
348
|
+
# however, experienced this issue because they float on Rubygems.
|
349
|
+
#
|
350
|
+
# In GH-7073, a number of Debian users reported this issue, but it was not
|
351
|
+
# reproducible in the official installer for reasons described above. Commit
|
352
|
+
# ba77d4b switched to using Gem::Specification.reset, but this actually
|
353
|
+
# broke the ability to install gems locally (GH-7493) because it resets
|
354
|
+
# the complete local cache, which is already built.
|
355
|
+
#
|
356
|
+
# The only solution that works with both new and old versions of Rubygems
|
357
|
+
# is to provide our own function for JUST resetting all the stubs. Both
|
358
|
+
# @@all and @@stubs must be set to a falsey value, so some of the
|
359
|
+
# originally-suggested solutions of using an empty array do not work. Only
|
360
|
+
# setting these values to nil (without clearing the cache), allows Vagrant
|
361
|
+
# to install and manage plugins.
|
362
|
+
class Gem::Specification < Gem::BasicSpecification
|
363
|
+
def self.vagrant_reset!
|
364
|
+
@@all = @@stubs = nil
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
333
368
|
if ::Bundler::UI.const_defined? :Silent
|
334
369
|
class BundlerUI < ::Bundler::UI::Silent
|
335
370
|
attr_reader :output
|
data/lib/vagrant/errors.rb
CHANGED
@@ -324,10 +324,6 @@ module Vagrant
|
|
324
324
|
error_key(:darwin_mount_failed)
|
325
325
|
end
|
326
326
|
|
327
|
-
class DarwinNFSMountFailed < VagrantError
|
328
|
-
error_key(:darwin_nfs_mount_failed)
|
329
|
-
end
|
330
|
-
|
331
327
|
class DestroyRequiresForce < VagrantError
|
332
328
|
error_key(:destroy_requires_force)
|
333
329
|
end
|
@@ -404,10 +400,6 @@ module Vagrant
|
|
404
400
|
error_key(:linux_mount_failed)
|
405
401
|
end
|
406
402
|
|
407
|
-
class LinuxNFSMountFailed < VagrantError
|
408
|
-
error_key(:linux_nfs_mount_failed)
|
409
|
-
end
|
410
|
-
|
411
403
|
class LinuxRDPClientNotFound < VagrantError
|
412
404
|
error_key(:linux_rdp_client_not_found)
|
413
405
|
end
|
@@ -456,6 +448,10 @@ module Vagrant
|
|
456
448
|
error_key(:not_found, "vagrant.actions.vm.host_only_network")
|
457
449
|
end
|
458
450
|
|
451
|
+
class NetworkTypeNotSupported < VagrantError
|
452
|
+
error_key(:network_type_not_supported)
|
453
|
+
end
|
454
|
+
|
459
455
|
class NFSBadExports < VagrantError
|
460
456
|
error_key(:nfs_bad_exports)
|
461
457
|
end
|
@@ -464,6 +460,10 @@ module Vagrant
|
|
464
460
|
error_key(:nfs_cant_read_exports)
|
465
461
|
end
|
466
462
|
|
463
|
+
class NFSMountFailed < VagrantError
|
464
|
+
error_key(:nfs_mount_failed)
|
465
|
+
end
|
466
|
+
|
467
467
|
class NFSNoGuestIP < VagrantError
|
468
468
|
error_key(:nfs_no_guest_ip)
|
469
469
|
end
|
@@ -780,6 +780,14 @@ module Vagrant
|
|
780
780
|
error_key(:virtualbox_no_name)
|
781
781
|
end
|
782
782
|
|
783
|
+
class VirtualBoxMountFailed < VagrantError
|
784
|
+
error_key(:virtualbox_mount_failed)
|
785
|
+
end
|
786
|
+
|
787
|
+
class VirtualBoxMountNotSupportedBSD < VagrantError
|
788
|
+
error_key(:virtualbox_mount_not_supported_bsd)
|
789
|
+
end
|
790
|
+
|
783
791
|
class VirtualBoxNameExists < VagrantError
|
784
792
|
error_key(:virtualbox_name_exists)
|
785
793
|
end
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require "json"
|
2
|
+
require "fileutils"
|
3
|
+
require "tempfile"
|
2
4
|
|
3
5
|
module Vagrant
|
4
6
|
module Plugin
|
@@ -91,8 +93,13 @@ module Vagrant
|
|
91
93
|
|
92
94
|
# This saves the state back into the state file.
|
93
95
|
def save!
|
94
|
-
@path.
|
96
|
+
Tempfile.open(@path.basename.to_s, @path.dirname.to_s) do |f|
|
97
|
+
f.binmode
|
95
98
|
f.write(JSON.dump(@data))
|
99
|
+
f.fsync
|
100
|
+
f.chmod(0644)
|
101
|
+
f.close
|
102
|
+
FileUtils.mv(f.path, @path)
|
96
103
|
end
|
97
104
|
end
|
98
105
|
|
@@ -82,7 +82,7 @@ module Vagrant
|
|
82
82
|
begin
|
83
83
|
username = ENV["USERNAME"]
|
84
84
|
process = Subprocess.execute("net", "localgroup", "Hyper-V Administrators")
|
85
|
-
return process.include?(username)
|
85
|
+
return process.stdout.include?(username)
|
86
86
|
rescue Errors::CommandUnavailableWindows
|
87
87
|
return false
|
88
88
|
end
|
@@ -5,19 +5,22 @@ module VagrantPlugins
|
|
5
5
|
def self.change_host_name(machine, name)
|
6
6
|
comm = machine.communicate
|
7
7
|
|
8
|
-
if !comm.test("hostname | grep
|
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
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "ipaddr"
|
2
|
+
require "socket"
|
1
3
|
require "tempfile"
|
2
4
|
|
3
5
|
require_relative "../../../../lib/vagrant/util/template_renderer"
|
@@ -11,18 +13,19 @@ module VagrantPlugins
|
|
11
13
|
def self.configure_networks(machine, networks)
|
12
14
|
comm = machine.communicate
|
13
15
|
|
14
|
-
commands = []
|
15
|
-
interfaces =
|
16
|
-
|
17
|
-
# The result will be something like:
|
18
|
-
# eth0\nenp0s8\nenp0s9
|
19
|
-
comm.sudo("ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://'") do |_, stdout|
|
20
|
-
interfaces = stdout.split("\n")
|
21
|
-
end
|
16
|
+
commands = ["set -e"]
|
17
|
+
interfaces = machine.guest.capability(:network_interfaces)
|
22
18
|
|
23
19
|
networks.each.with_index do |network, i|
|
24
20
|
network[:device] = interfaces[network[:interface]]
|
25
21
|
|
22
|
+
# Arch expects netmasks to be in the "24" or "64", but users may
|
23
|
+
# specify IPV4 netmasks like "255.255.255.0". This magic converts
|
24
|
+
# the netmask to the proper value.
|
25
|
+
if network[:netmask] && network[:netmask].to_s.include?(".")
|
26
|
+
network[:netmask] = (32-Math.log2((IPAddr.new(network[:netmask], Socket::AF_INET).to_i^0xffffffff)+1)).to_i
|
27
|
+
end
|
28
|
+
|
26
29
|
entry = TemplateRenderer.render("guests/arch/network_#{network[:type]}",
|
27
30
|
options: network,
|
28
31
|
)
|