tnargav 1.2.3 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -3
- data/CHANGELOG.md +311 -0
- data/bin/vagrant +12 -0
- data/config/default.rb +2 -4
- data/keys/README.md +0 -7
- data/lib/vagrant.rb +7 -0
- data/lib/vagrant/action.rb +2 -0
- data/lib/vagrant/action/builtin/box_add.rb +12 -1
- data/lib/vagrant/action/builtin/confirm.rb +1 -0
- data/lib/vagrant/action/builtin/graceful_halt.rb +9 -5
- data/lib/vagrant/action/builtin/handle_box_url.rb +16 -7
- data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +1 -1
- data/lib/vagrant/action/builtin/mixin_provisioners.rb +43 -0
- data/lib/vagrant/action/builtin/nfs.rb +18 -8
- data/lib/vagrant/action/builtin/provision.rb +30 -21
- data/lib/vagrant/action/builtin/provisioner_cleanup.rb +35 -0
- data/lib/vagrant/action/builtin/wait_for_communicator.rb +84 -0
- data/lib/vagrant/action/warden.rb +2 -1
- data/lib/vagrant/box_collection.rb +62 -44
- data/lib/vagrant/cli.rb +1 -9
- data/lib/vagrant/config/v2/root.rb +6 -0
- data/lib/vagrant/environment.rb +27 -51
- data/lib/vagrant/errors.rb +33 -1
- data/lib/vagrant/guest.rb +2 -2
- data/lib/vagrant/machine.rb +14 -22
- data/lib/vagrant/plugin/v2/command.rb +4 -1
- data/lib/vagrant/plugin/v2/communicator.rb +21 -0
- data/lib/vagrant/plugin/v2/guest.rb +1 -56
- data/lib/vagrant/plugin/v2/provisioner.rb +6 -0
- data/lib/vagrant/util/downloader.rb +7 -2
- data/lib/vagrant/util/platform.rb +43 -0
- data/lib/vagrant/util/ssh.rb +5 -0
- data/lib/vagrant/util/subprocess.rb +16 -2
- data/lib/vagrant/version.rb +1 -1
- data/plugins/commands/box/command/remove.rb +22 -2
- data/plugins/commands/box/command/repackage.rb +1 -1
- data/plugins/commands/destroy/command.rb +8 -3
- data/plugins/commands/help/command.rb +12 -0
- data/plugins/commands/help/plugin.rb +17 -0
- data/plugins/commands/plugin/action.rb +11 -0
- data/plugins/commands/plugin/action/install_gem.rb +26 -1
- data/plugins/commands/plugin/action/plugin_exists_check.rb +26 -0
- data/plugins/commands/plugin/command/install.rb +4 -21
- data/plugins/commands/plugin/command/mixin_install_opts.rb +30 -0
- data/plugins/commands/plugin/command/root.rb +5 -0
- data/plugins/commands/plugin/command/update.rb +41 -0
- data/plugins/commands/reload/command.rb +4 -0
- data/plugins/commands/status/command.rb +6 -1
- data/plugins/commands/up/command.rb +10 -0
- data/plugins/commands/up/start_mixins.rb +12 -1
- data/plugins/communicators/ssh/communicator.rb +61 -6
- data/plugins/guests/arch/cap/change_host_name.rb +1 -2
- data/plugins/guests/arch/cap/configure_networks.rb +6 -0
- data/plugins/guests/coreos/cap/change_host_name.rb +15 -0
- data/plugins/guests/coreos/cap/configure_networks.rb +72 -0
- data/plugins/guests/coreos/guest.rb +9 -0
- data/plugins/guests/coreos/plugin.rb +25 -0
- data/plugins/guests/darwin/cap/change_host_name.rb +14 -0
- data/plugins/guests/darwin/cap/configure_networks.rb +52 -0
- data/plugins/guests/darwin/cap/halt.rb +16 -0
- data/plugins/guests/darwin/cap/mount_nfs_folder.rb +25 -0
- data/plugins/guests/darwin/cap/mount_vmware_shared_folder.rb +36 -0
- data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +26 -0
- data/plugins/guests/darwin/cap/verify_vmware_hgfs.rb +12 -0
- data/plugins/guests/darwin/guest.rb +15 -0
- data/plugins/guests/darwin/plugin.rb +50 -0
- data/plugins/guests/debian/cap/change_host_name.rb +1 -0
- data/plugins/guests/gentoo/guest.rb +1 -1
- data/plugins/guests/linux/cap/mount_nfs.rb +9 -1
- data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +26 -7
- data/plugins/guests/linux/cap/shell_expand_guest_path.rb +4 -1
- data/plugins/guests/openbsd/cap/change_host_name.rb +14 -0
- data/plugins/guests/openbsd/cap/configure_networks.rb +40 -0
- data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +14 -0
- data/plugins/guests/openbsd/plugin.rb +15 -0
- data/plugins/guests/solaris/cap/halt.rb +2 -1
- data/plugins/guests/solaris/cap/mount_virtualbox_shared_folder.rb +4 -1
- data/plugins/guests/solaris11/cap/change_host_name.rb +25 -0
- data/plugins/guests/solaris11/cap/configure_networks.rb +32 -0
- data/plugins/guests/solaris11/cap/halt.rb +26 -0
- data/plugins/guests/solaris11/cap/mount_virtualbox_shared_folder.rb +35 -0
- data/plugins/guests/solaris11/config.rb +22 -0
- data/plugins/guests/solaris11/guest.rb +15 -0
- data/plugins/guests/solaris11/plugin.rb +44 -0
- data/plugins/guests/suse/cap/configure_networks.rb +60 -0
- data/plugins/guests/suse/plugin.rb +5 -0
- data/plugins/guests/ubuntu/cap/change_host_name.rb +1 -0
- data/plugins/guests/ubuntu/cap/mount_nfs.rb +19 -0
- data/plugins/guests/ubuntu/cap/mount_virtualbox_shared_folder.rb +14 -0
- data/plugins/guests/ubuntu/guest.rb +0 -19
- data/plugins/guests/ubuntu/plugin.rb +10 -0
- data/plugins/hosts/arch/host.rb +5 -28
- data/plugins/hosts/bsd/host.rb +83 -7
- data/plugins/hosts/fedora/host.rb +12 -6
- data/plugins/hosts/gentoo/host.rb +3 -1
- data/plugins/hosts/linux/host.rb +42 -9
- data/plugins/hosts/opensuse/host.rb +3 -1
- data/plugins/hosts/slackware/host.rb +26 -0
- data/plugins/hosts/slackware/plugin.rb +15 -0
- data/plugins/kernel_v1/config/ssh.rb +2 -2
- data/plugins/kernel_v2/config/ssh.rb +8 -16
- data/plugins/kernel_v2/config/vm.rb +68 -11
- data/plugins/providers/virtualbox/action.rb +15 -2
- data/plugins/providers/virtualbox/action/boot.rb +0 -26
- data/plugins/providers/virtualbox/action/clear_network_interfaces.rb +1 -1
- data/plugins/providers/virtualbox/action/customize.rb +10 -3
- data/plugins/providers/virtualbox/action/destroy_unused_network_interfaces.rb +8 -1
- data/plugins/providers/virtualbox/action/forward_ports.rb +1 -0
- data/plugins/providers/virtualbox/action/import.rb +3 -0
- data/plugins/providers/virtualbox/action/network.rb +14 -2
- data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +7 -2
- data/plugins/providers/virtualbox/action/set_name.rb +13 -1
- data/plugins/providers/virtualbox/config.rb +39 -2
- data/plugins/providers/virtualbox/driver/base.rb +5 -0
- data/plugins/providers/virtualbox/driver/meta.rb +7 -1
- data/plugins/providers/virtualbox/driver/version_4_0.rb +2 -2
- data/plugins/providers/virtualbox/driver/version_4_1.rb +2 -2
- data/plugins/providers/virtualbox/driver/version_4_2.rb +17 -0
- data/plugins/providers/virtualbox/model/forwarded_port.rb +7 -1
- data/plugins/providers/virtualbox/util/compile_forwarded_ports.rb +5 -1
- data/plugins/provisioners/ansible/config.rb +40 -23
- data/plugins/provisioners/ansible/provisioner.rb +68 -13
- data/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb +1 -1
- data/plugins/provisioners/cfengine/cap/redhat/cfengine_install.rb +1 -1
- data/plugins/provisioners/cfengine/config.rb +7 -1
- data/plugins/provisioners/cfengine/provisioner.rb +4 -5
- data/plugins/provisioners/chef/config/base.rb +31 -0
- data/plugins/provisioners/chef/config/chef_client.rb +15 -6
- data/plugins/provisioners/chef/config/chef_solo.rb +18 -11
- data/plugins/provisioners/chef/provisioner/base.rb +23 -3
- data/plugins/provisioners/chef/provisioner/chef_client.rb +25 -6
- data/plugins/provisioners/chef/provisioner/chef_solo.rb +16 -13
- data/plugins/provisioners/file/config.rb +29 -0
- data/plugins/provisioners/file/plugin.rb +23 -0
- data/plugins/provisioners/file/provisioner.rb +16 -0
- data/plugins/provisioners/puppet/config/puppet.rb +4 -1
- data/plugins/provisioners/puppet/provisioner/puppet.rb +15 -9
- data/plugins/provisioners/puppet/provisioner/puppet_server.rb +9 -2
- data/plugins/provisioners/salt/bootstrap-salt.sh +6 -0
- data/plugins/provisioners/salt/config.rb +105 -0
- data/plugins/provisioners/salt/errors.rb +11 -0
- data/plugins/provisioners/salt/plugin.rb +22 -0
- data/plugins/provisioners/salt/provisioner.rb +249 -0
- data/plugins/provisioners/shell/config.rb +11 -2
- data/plugins/provisioners/shell/provisioner.rb +15 -3
- data/scripts/website_push_docs.sh +12 -0
- data/scripts/website_push_www.sh +12 -0
- data/templates/commands/init/Vagrantfile.erb +5 -2
- data/templates/commands/ssh_config/config.erb +4 -0
- data/templates/guests/coreos/etcd.service.erb +10 -0
- data/templates/guests/fedora/network_static.erb +2 -3
- data/templates/guests/openbsd/network_dhcp.erb +1 -0
- data/templates/guests/openbsd/network_static.erb +1 -0
- data/templates/guests/suse/network_dhcp.erb +6 -0
- data/templates/guests/suse/network_static.erb +10 -0
- data/templates/locales/en.yml +123 -13
- data/templates/nfs/exports.erb +4 -4
- data/templates/nfs/exports_freebsd.erb +4 -4
- data/templates/nfs/exports_linux.erb +5 -3
- data/templates/provisioners/chef_client/client.erb +9 -0
- data/templates/provisioners/chef_solo/solo.erb +19 -1
- data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +1 -2
- data/test/unit/vagrant/cli_test.rb +1 -0
- data/test/unit/vagrant/config/v2/root_test.rb +18 -0
- data/test/unit/vagrant/environment_test.rb +25 -0
- data/test/unit/vagrant/util/downloader_test.rb +4 -4
- data/test/unit/vagrant_test.rb +18 -0
- data/website/docs/.buildpacks +2 -0
- data/website/docs/Gemfile +13 -0
- data/website/docs/Gemfile.lock +141 -0
- data/website/docs/Procfile +1 -0
- data/website/docs/README.md +26 -0
- data/website/docs/config.rb +78 -0
- data/website/docs/config.ru +44 -0
- data/website/docs/helpers/sidebar_helpers.rb +19 -0
- data/website/docs/lib/redirect_to_latest.rb +25 -0
- data/website/docs/lib/redirect_v1_docs.rb +26 -0
- data/website/docs/source/404.html.erb +7 -0
- data/website/docs/source/images/bullet_1.png +0 -0
- data/website/docs/source/images/bullet_2.png +0 -0
- data/website/docs/source/images/bullet_3.png +0 -0
- data/website/docs/source/images/customers.png +0 -0
- data/website/docs/source/images/customers_small.png +0 -0
- data/website/docs/source/images/footer_background.png +0 -0
- data/website/docs/source/images/footer_hashi_logo.png +0 -0
- data/website/docs/source/images/footer_vagrant_logo.png +0 -0
- data/website/docs/source/images/get_started_background.png +0 -0
- data/website/docs/source/images/icon_caution.png +0 -0
- data/website/docs/source/images/logo_docs.png +0 -0
- data/website/docs/source/images/logo_docs_small.png +0 -0
- data/website/docs/source/images/logo_small.png +0 -0
- data/website/docs/source/images/logo_vagrant.png +0 -0
- data/website/docs/source/images/open_close.png +0 -0
- data/website/docs/source/images/search_icon.png +0 -0
- data/website/docs/source/images/sidebar_background_docs.png +0 -0
- data/website/docs/source/images/sidebar_background_inner.png +0 -0
- data/website/docs/source/images/steps_background.png +0 -0
- data/website/docs/source/images/vagrant_header_background.png +0 -0
- data/website/docs/source/index.html.erb +0 -0
- data/website/docs/source/javascripts/backstretch.js +4 -0
- data/website/docs/source/javascripts/bootstrap.min.js +7 -0
- data/website/docs/source/javascripts/fittext.js +43 -0
- data/website/docs/source/javascripts/grid-overlay.js +161 -0
- data/website/docs/source/javascripts/jquery.js +2 -0
- data/website/docs/source/javascripts/less-1.3.0.min.js +9 -0
- data/website/docs/source/javascripts/modernizr.js +1384 -0
- data/website/docs/source/javascripts/vagrantup.js +15 -0
- data/website/docs/source/layouts/layout.erb +266 -0
- data/website/docs/source/stylesheets/_base.less +317 -0
- data/website/docs/source/stylesheets/_components.less +74 -0
- data/website/docs/source/stylesheets/_footer.less +101 -0
- data/website/docs/source/stylesheets/_media-queries.less +452 -0
- data/website/docs/source/stylesheets/_mixins.less +174 -0
- data/website/docs/source/stylesheets/_nav.less +71 -0
- data/website/docs/source/stylesheets/_pages.less +276 -0
- data/website/docs/source/stylesheets/_sidebar.less +136 -0
- data/website/docs/source/stylesheets/_type.less +36 -0
- data/website/docs/source/stylesheets/_variables.less +39 -0
- data/website/docs/source/stylesheets/bootstrap.css +5946 -0
- data/website/docs/source/stylesheets/vagrantup.less +16 -0
- data/website/docs/source/v2/boxes.html.md +78 -0
- data/website/docs/source/v2/boxes/format.html.md +32 -0
- data/website/docs/source/v2/cli/box.html.md +62 -0
- data/website/docs/source/v2/cli/destroy.html.md +20 -0
- data/website/docs/source/v2/cli/halt.html.md +19 -0
- data/website/docs/source/v2/cli/index.html.md +24 -0
- data/website/docs/source/v2/cli/init.html.md +18 -0
- data/website/docs/source/v2/cli/package.html.md +43 -0
- data/website/docs/source/v2/cli/plugin.html.md +56 -0
- data/website/docs/source/v2/cli/provision.html.md +24 -0
- data/website/docs/source/v2/cli/reload.html.md +27 -0
- data/website/docs/source/v2/cli/resume.html.md +11 -0
- data/website/docs/source/v2/cli/ssh.html.md +24 -0
- data/website/docs/source/v2/cli/ssh_config.html.md +16 -0
- data/website/docs/source/v2/cli/status.html.md +14 -0
- data/website/docs/source/v2/cli/suspend.html.md +19 -0
- data/website/docs/source/v2/cli/up.html.md +34 -0
- data/website/docs/source/v2/debugging.html.md +42 -0
- data/website/docs/source/v2/getting-started/boxes.html.md +56 -0
- data/website/docs/source/v2/getting-started/index.html.md +43 -0
- data/website/docs/source/v2/getting-started/networking.html.md +45 -0
- data/website/docs/source/v2/getting-started/project_setup.html.md +38 -0
- data/website/docs/source/v2/getting-started/providers.html.md +37 -0
- data/website/docs/source/v2/getting-started/provisioning.html.md +75 -0
- data/website/docs/source/v2/getting-started/rebuild.html.md +17 -0
- data/website/docs/source/v2/getting-started/synced_folders.html.md +42 -0
- data/website/docs/source/v2/getting-started/teardown.html.md +41 -0
- data/website/docs/source/v2/getting-started/up.html.md +35 -0
- data/website/docs/source/v2/index.html.md +10 -0
- data/website/docs/source/v2/installation/backwards-compatibility.html.md +35 -0
- data/website/docs/source/v2/installation/index.html.md +28 -0
- data/website/docs/source/v2/installation/uninstallation.html.md +39 -0
- data/website/docs/source/v2/installation/upgrading-from-1-0.html.md +26 -0
- data/website/docs/source/v2/installation/upgrading.html.md +20 -0
- data/website/docs/source/v2/multi-machine/index.html.md +105 -0
- data/website/docs/source/v2/networking/basic_usage.html.md +43 -0
- data/website/docs/source/v2/networking/forwarded_ports.html.md +57 -0
- data/website/docs/source/v2/networking/index.html.md +40 -0
- data/website/docs/source/v2/networking/private_network.html.md +48 -0
- data/website/docs/source/v2/networking/public_network.html.md +53 -0
- data/website/docs/source/v2/plugins/commands.html.md +116 -0
- data/website/docs/source/v2/plugins/configuration.html.md +166 -0
- data/website/docs/source/v2/plugins/development-basics.html.md +139 -0
- data/website/docs/source/v2/plugins/guest-capabilities.html.md +100 -0
- data/website/docs/source/v2/plugins/guests.html.md +99 -0
- data/website/docs/source/v2/plugins/hosts.html.md +46 -0
- data/website/docs/source/v2/plugins/index.html.md +21 -0
- data/website/docs/source/v2/plugins/packaging.html.md +102 -0
- data/website/docs/source/v2/plugins/providers.html.md +234 -0
- data/website/docs/source/v2/plugins/provisioners.html.md +64 -0
- data/website/docs/source/v2/plugins/usage.html.md +58 -0
- data/website/docs/source/v2/providers/basic_usage.html.md +67 -0
- data/website/docs/source/v2/providers/configuration.html.md +89 -0
- data/website/docs/source/v2/providers/custom.html.md +9 -0
- data/website/docs/source/v2/providers/default.html.md +22 -0
- data/website/docs/source/v2/providers/index.html.md +23 -0
- data/website/docs/source/v2/providers/installation.html.md +11 -0
- data/website/docs/source/v2/provisioning/ansible.html.md +144 -0
- data/website/docs/source/v2/provisioning/basic_usage.html.md +67 -0
- data/website/docs/source/v2/provisioning/chef_client.html.md +109 -0
- data/website/docs/source/v2/provisioning/chef_solo.html.md +156 -0
- data/website/docs/source/v2/provisioning/index.html.md +28 -0
- data/website/docs/source/v2/provisioning/puppet_agent.html.md +70 -0
- data/website/docs/source/v2/provisioning/puppet_apply.html.md +114 -0
- data/website/docs/source/v2/provisioning/shell.html.md +88 -0
- data/website/docs/source/v2/synced-folders/basic_usage.html.md +53 -0
- data/website/docs/source/v2/synced-folders/index.html.md +17 -0
- data/website/docs/source/v2/synced-folders/nfs.html.md +53 -0
- data/website/docs/source/v2/vagrantfile/index.html.md +75 -0
- data/website/docs/source/v2/vagrantfile/machine_settings.html.md +84 -0
- data/website/docs/source/v2/vagrantfile/ssh_settings.html.md +61 -0
- data/website/docs/source/v2/vagrantfile/vagrant_settings.html.md +19 -0
- data/website/docs/source/v2/vagrantfile/version.html.md +64 -0
- data/website/docs/source/v2/virtualbox/boxes.html.md +71 -0
- data/website/docs/source/v2/virtualbox/configuration.html.md +63 -0
- data/website/docs/source/v2/virtualbox/index.html.md +21 -0
- data/website/docs/source/v2/virtualbox/usage.html.md +12 -0
- data/website/docs/source/v2/vmware/boxes.html.md +107 -0
- data/website/docs/source/v2/vmware/configuration.html.md +91 -0
- data/website/docs/source/v2/vmware/index.html.md +30 -0
- data/website/docs/source/v2/vmware/installation.html.md +40 -0
- data/website/docs/source/v2/vmware/known-issues.html.md +21 -0
- data/website/docs/source/v2/vmware/usage.html.md +27 -0
- data/website/docs/source/v2/why-vagrant/index.html.md +46 -0
- data/website/www/.buildpacks +2 -0
- data/website/www/Gemfile +15 -0
- data/website/www/Gemfile.lock +123 -0
- data/website/www/Procfile +1 -0
- data/website/www/README.md +26 -0
- data/website/www/config.rb +88 -0
- data/website/www/config.ru +39 -0
- data/website/www/helpers/sidebar_helpers.rb +12 -0
- data/website/www/lib/legacy_redirect.rb +32 -0
- data/website/www/source/404.html.erb +11 -0
- data/website/www/source/_sidebar_about.erb +5 -0
- data/website/www/source/_sidebar_blog.erb +11 -0
- data/website/www/source/_sidebar_support.html.erb +6 -0
- data/website/www/source/about.html.markdown +16 -0
- data/website/www/source/blog.html.erb +34 -0
- data/website/www/source/blog/2013-09-16-test.html.markdown +26 -0
- data/website/www/source/blog_feed.xml.builder +23 -0
- data/website/www/source/images/bullet_1.png +0 -0
- data/website/www/source/images/bullet_2.png +0 -0
- data/website/www/source/images/bullet_3.png +0 -0
- data/website/www/source/images/customers.png +0 -0
- data/website/www/source/images/customers_small.png +0 -0
- data/website/www/source/images/footer_background.png +0 -0
- data/website/www/source/images/footer_hashi_logo.png +0 -0
- data/website/www/source/images/footer_vagrant_logo.png +0 -0
- data/website/www/source/images/get_started_background.png +0 -0
- data/website/www/source/images/icon_caution.png +0 -0
- data/website/www/source/images/logo_docs.png +0 -0
- data/website/www/source/images/logo_docs_small.png +0 -0
- data/website/www/source/images/logo_small.png +0 -0
- data/website/www/source/images/logo_vagrant.png +0 -0
- data/website/www/source/images/open_close.png +0 -0
- data/website/www/source/images/search_icon.png +0 -0
- data/website/www/source/images/sidebar_background_docs.png +0 -0
- data/website/www/source/images/sidebar_background_inner.png +0 -0
- data/website/www/source/images/sponsors/fastly.png +0 -0
- data/website/www/source/images/sponsors/kiip.png +0 -0
- data/website/www/source/images/sponsors/softlayer.jpg +0 -0
- data/website/www/source/images/sponsors/typekit.png +0 -0
- data/website/www/source/images/steps_background.png +0 -0
- data/website/www/source/images/vagrant_header_background.png +0 -0
- data/website/www/source/images/vagrant_vmware_background.png +0 -0
- data/website/www/source/index.html.erb +109 -0
- data/website/www/source/javascripts/backstretch.js +4 -0
- data/website/www/source/javascripts/bootstrap.min.js +7 -0
- data/website/www/source/javascripts/fittext.js +43 -0
- data/website/www/source/javascripts/grid-overlay.js +161 -0
- data/website/www/source/javascripts/jquery.js +2 -0
- data/website/www/source/javascripts/less-1.3.0.min.js +9 -0
- data/website/www/source/javascripts/modernizr.js +1384 -0
- data/website/www/source/javascripts/vagrantup.js +58 -0
- data/website/www/source/layouts/blog_post.erb +42 -0
- data/website/www/source/layouts/inner.erb +34 -0
- data/website/www/source/layouts/layout.erb +107 -0
- data/website/www/source/sponsors.html.erb +23 -0
- data/website/www/source/stylesheets/_base.less +326 -0
- data/website/www/source/stylesheets/_components.less +74 -0
- data/website/www/source/stylesheets/_footer.less +101 -0
- data/website/www/source/stylesheets/_media-queries.less +549 -0
- data/website/www/source/stylesheets/_mixins.less +175 -0
- data/website/www/source/stylesheets/_modules.less +37 -0
- data/website/www/source/stylesheets/_nav.less +74 -0
- data/website/www/source/stylesheets/_pages.less +467 -0
- data/website/www/source/stylesheets/_sidebar.less +137 -0
- data/website/www/source/stylesheets/_type.less +36 -0
- data/website/www/source/stylesheets/_variables.less +39 -0
- data/website/www/source/stylesheets/bootstrap.css +5946 -0
- data/website/www/source/stylesheets/vagrantup.less +17 -0
- data/website/www/source/support.html.erb +25 -0
- data/website/www/source/support/community.html.erb +28 -0
- data/website/www/source/support/professional.html.erb +17 -0
- data/website/www/source/vmware/eula.html.md +21 -0
- data/website/www/source/vmware/index.html.erb +185 -0
- data/website/www/source/vmware/privacy-policy.html.md +71 -0
- data/website/www/source/vmware/terms-of-service.html.md +50 -0
- metadata +436 -186
@@ -11,8 +11,11 @@ module VagrantPlugins
|
|
11
11
|
release_file = Pathname.new("/etc/redhat-release")
|
12
12
|
|
13
13
|
if release_file.exist?
|
14
|
-
release_file.open("r") do |f|
|
15
|
-
|
14
|
+
release_file.open("r:ISO-8859-1:UTF-8") do |f|
|
15
|
+
contents = f.gets
|
16
|
+
return true if contents =~ /^Fedora/
|
17
|
+
return true if contents =~ /^CentOS/
|
18
|
+
return true if contents =~ /^Red Hat Enterprise Linux Server/
|
16
19
|
end
|
17
20
|
end
|
18
21
|
|
@@ -27,24 +30,27 @@ module VagrantPlugins
|
|
27
30
|
def initialize(*args)
|
28
31
|
super
|
29
32
|
|
30
|
-
|
33
|
+
nfs_server_binary = "/etc/init.d/nfs"
|
31
34
|
|
32
35
|
# On Fedora 16+, systemd replaced init.d, so we have to use the
|
33
36
|
# proper NFS binary. This checks to see if we need to do that.
|
34
37
|
release_file = Pathname.new("/etc/redhat-release")
|
35
38
|
begin
|
36
|
-
release_file.open("r") do |f|
|
37
|
-
version_number = /Fedora.*release ([0-9]+)/.match(f.gets)[
|
39
|
+
release_file.open("r:ISO-8859-1:UTF-8") do |f|
|
40
|
+
version_number = /(CentOS|Fedora|Red Hat Enterprise Linux Server).*release ([0-9]+)/.match(f.gets)[2].to_i
|
38
41
|
if version_number >= 16
|
39
42
|
# "service nfs-server" will redirect properly to systemctl
|
40
43
|
# when "service nfs-server restart" is called.
|
41
|
-
|
44
|
+
nfs_server_binary = "/usr/sbin/service nfs-server"
|
42
45
|
end
|
43
46
|
end
|
44
47
|
rescue Errno::ENOENT
|
45
48
|
# File doesn't exist, not a big deal, assume we're on a
|
46
49
|
# lower version.
|
47
50
|
end
|
51
|
+
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
52
|
+
@nfs_check_command = "#{nfs_server_binary} status"
|
53
|
+
@nfs_start_command = "#{nfs_server_binary} start"
|
48
54
|
end
|
49
55
|
end
|
50
56
|
end
|
@@ -17,7 +17,9 @@ module VagrantPlugins
|
|
17
17
|
def initialize(*args)
|
18
18
|
super
|
19
19
|
|
20
|
-
@
|
20
|
+
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
21
|
+
@nfs_check_command = "service nfs status"
|
22
|
+
@nfs_start_command = "service nfs start"
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
data/plugins/hosts/linux/host.rb
CHANGED
@@ -24,7 +24,9 @@ module VagrantPlugins
|
|
24
24
|
super
|
25
25
|
|
26
26
|
@logger = Log4r::Logger.new("vagrant::hosts::linux")
|
27
|
-
@
|
27
|
+
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
28
|
+
@nfs_check_command = "/etc/init.d/nfs-kernel-server status"
|
29
|
+
@nfs_start_command = "/etc/init.d/nfs-kernel-server start"
|
28
30
|
end
|
29
31
|
|
30
32
|
def nfs?
|
@@ -34,11 +36,34 @@ module VagrantPlugins
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
37
|
-
def
|
39
|
+
def nfs_opts_setup(folders)
|
40
|
+
folders.each do |k, opts|
|
41
|
+
if !opts[:linux__nfs_options]
|
42
|
+
opts[:linux__nfs_options] ||= ["rw", "no_subtree_check", "all_squash"]
|
43
|
+
end
|
44
|
+
|
45
|
+
# Only automatically set anonuid/anongid if they weren't
|
46
|
+
# explicitly set by the user.
|
47
|
+
hasgid = false
|
48
|
+
hasuid = false
|
49
|
+
opts[:linux__nfs_options].each do |opt|
|
50
|
+
hasgid = !!(opt =~ /^anongid=/) if !hasgid
|
51
|
+
hasuid = !!(opt =~ /^anonuid=/) if !hasuid
|
52
|
+
end
|
53
|
+
|
54
|
+
opts[:linux__nfs_options] << "anonuid=#{opts[:map_uid]}" if !hasuid
|
55
|
+
opts[:linux__nfs_options] << "anongid=#{opts[:map_gid]}" if !hasgid
|
56
|
+
opts[:linux__nfs_options] << "fsid=#{opts[:uuid]}"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def nfs_export(id, ips, folders)
|
61
|
+
nfs_opts_setup(folders)
|
38
62
|
output = TemplateRenderer.render('nfs/exports_linux',
|
39
63
|
:uuid => id,
|
40
|
-
:
|
41
|
-
:folders => folders
|
64
|
+
:ips => ips,
|
65
|
+
:folders => folders,
|
66
|
+
:user => Process.uid)
|
42
67
|
|
43
68
|
@ui.info I18n.t("vagrant.hosts.linux.nfs_export")
|
44
69
|
sleep 0.5
|
@@ -51,9 +76,11 @@ module VagrantPlugins
|
|
51
76
|
system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"])
|
52
77
|
end
|
53
78
|
|
54
|
-
|
55
|
-
|
56
|
-
|
79
|
+
if nfs_running?
|
80
|
+
system("sudo #{@nfs_apply_command}")
|
81
|
+
else
|
82
|
+
system("sudo #{@nfs_start_command}")
|
83
|
+
end
|
57
84
|
end
|
58
85
|
|
59
86
|
def nfs_prune(valid_ids)
|
@@ -62,9 +89,10 @@ module VagrantPlugins
|
|
62
89
|
@logger.info("Pruning invalid NFS entries...")
|
63
90
|
|
64
91
|
output = false
|
92
|
+
user = Process.uid
|
65
93
|
|
66
94
|
File.read("/etc/exports").lines.each do |line|
|
67
|
-
if id = line[/^# VAGRANT-BEGIN: (
|
95
|
+
if id = line[/^# VAGRANT-BEGIN:( #{user})? ([A-Za-z0-9-]+?)$/, 2]
|
68
96
|
if valid_ids.include?(id)
|
69
97
|
@logger.debug("Valid ID: #{id}")
|
70
98
|
else
|
@@ -83,12 +111,17 @@ module VagrantPlugins
|
|
83
111
|
|
84
112
|
protected
|
85
113
|
|
114
|
+
def nfs_running?
|
115
|
+
system("#{@nfs_check_command}")
|
116
|
+
end
|
117
|
+
|
86
118
|
def nfs_cleanup(id)
|
87
119
|
return if !File.exist?("/etc/exports")
|
88
120
|
|
121
|
+
user = Process.uid
|
89
122
|
# Use sed to just strip out the block of code which was inserted
|
90
123
|
# by Vagrant
|
91
|
-
system("sudo sed -e '/^# VAGRANT-BEGIN: #{id}/,/^# VAGRANT-END: #{id}/ d' -ibak /etc/exports")
|
124
|
+
system("sudo sed -r -e '/^# VAGRANT-BEGIN:( #{user})? #{id}/,/^# VAGRANT-END:( #{user})? #{id}/ d' -ibak /etc/exports")
|
92
125
|
end
|
93
126
|
end
|
94
127
|
end
|
@@ -27,7 +27,9 @@ module VagrantPlugins
|
|
27
27
|
def initialize(*args)
|
28
28
|
super
|
29
29
|
|
30
|
-
@
|
30
|
+
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
31
|
+
@nfs_check_command = "service nfsserver status"
|
32
|
+
@nfs_start_command = "service nfsserver start"
|
31
33
|
end
|
32
34
|
end
|
33
35
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
require Vagrant.source_root.join("plugins/hosts/linux/host")
|
4
|
+
|
5
|
+
module VagrantPlugins
|
6
|
+
module HostSlackware
|
7
|
+
class Host < VagrantPlugins::HostLinux::Host
|
8
|
+
def self.match?
|
9
|
+
return File.exists?("/etc/slackware-release") || Dir.glob("/usr/lib/setup/Plamo-*").length > 0
|
10
|
+
end
|
11
|
+
|
12
|
+
# Normal, mid-range precedence.
|
13
|
+
def self.precedence
|
14
|
+
5
|
15
|
+
end
|
16
|
+
|
17
|
+
def initialize(*args)
|
18
|
+
super
|
19
|
+
|
20
|
+
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
21
|
+
@nfs_check_command = "pidof nfsd > /dev/null"
|
22
|
+
@nfs_start_command = "/etc/rc.d/rc.nfsd start"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module HostSlackware
|
5
|
+
class Plugin < Vagrant.plugin("2")
|
6
|
+
name "Slackware host"
|
7
|
+
description "Slackware and derivertives host support."
|
8
|
+
|
9
|
+
host("slackware") do
|
10
|
+
require File.expand_path("../host", __FILE__)
|
11
|
+
Host
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -34,12 +34,12 @@ module VagrantPlugins
|
|
34
34
|
new.ssh.host = @host if @host != UNSET_VALUE
|
35
35
|
new.ssh.port = @port if @port != UNSET_VALUE
|
36
36
|
new.ssh.guest_port = @guest_port if @guest_port != UNSET_VALUE
|
37
|
-
new.ssh.max_tries = @max_tries if @max_tries != UNSET_VALUE
|
38
|
-
new.ssh.timeout = @timeout if @timeout != UNSET_VALUE
|
39
37
|
new.ssh.private_key_path = @private_key_path if @private_key_path != UNSET_VALUE
|
40
38
|
new.ssh.forward_agent = @forward_agent if @forward_agent != UNSET_VALUE
|
41
39
|
new.ssh.forward_x11 = @forward_x11 if @forward_x11 != UNSET_VALUE
|
42
40
|
new.ssh.shell = @shell if @shell != UNSET_VALUE
|
41
|
+
|
42
|
+
# TODO: Warn that max_tries and timeout are gone
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -9,22 +9,20 @@ module VagrantPlugins
|
|
9
9
|
attr_accessor :forward_x11
|
10
10
|
attr_accessor :guest_port
|
11
11
|
attr_accessor :keep_alive
|
12
|
-
attr_accessor :max_tries
|
13
12
|
attr_accessor :shell
|
14
|
-
attr_accessor :
|
13
|
+
attr_accessor :proxy_command
|
15
14
|
|
16
15
|
attr_reader :default
|
17
16
|
|
18
17
|
def initialize
|
19
18
|
super
|
20
19
|
|
21
|
-
@forward_agent
|
22
|
-
@forward_x11
|
23
|
-
@guest_port
|
24
|
-
@keep_alive
|
25
|
-
@
|
26
|
-
@shell
|
27
|
-
@timeout = UNSET_VALUE
|
20
|
+
@forward_agent = UNSET_VALUE
|
21
|
+
@forward_x11 = UNSET_VALUE
|
22
|
+
@guest_port = UNSET_VALUE
|
23
|
+
@keep_alive = UNSET_VALUE
|
24
|
+
@proxy_command = UNSET_VALUE
|
25
|
+
@shell = UNSET_VALUE
|
28
26
|
|
29
27
|
@default = SSHConnectConfig.new
|
30
28
|
end
|
@@ -43,9 +41,8 @@ module VagrantPlugins
|
|
43
41
|
@forward_x11 = false if @forward_x11 == UNSET_VALUE
|
44
42
|
@guest_port = nil if @guest_port == UNSET_VALUE
|
45
43
|
@keep_alive = false if @keep_alive == UNSET_VALUE
|
46
|
-
@
|
44
|
+
@proxy_command = nil if @proxy_command == UNSET_VALUE
|
47
45
|
@shell = nil if @shell == UNSET_VALUE
|
48
|
-
@timeout = nil if @timeout == UNSET_VALUE
|
49
46
|
|
50
47
|
@default.finalize!
|
51
48
|
end
|
@@ -57,11 +54,6 @@ module VagrantPlugins
|
|
57
54
|
def validate(machine)
|
58
55
|
errors = super
|
59
56
|
|
60
|
-
[:max_tries, :timeout].each do |field|
|
61
|
-
value = instance_variable_get("@#{field}".to_sym)
|
62
|
-
errors << I18n.t("vagrant.config.common.error_empty", :field => field) if !value
|
63
|
-
end
|
64
|
-
|
65
57
|
# Return the errors
|
66
58
|
result = { to_s => errors }
|
67
59
|
|
@@ -4,6 +4,7 @@ require "set"
|
|
4
4
|
|
5
5
|
require "vagrant"
|
6
6
|
require "vagrant/config/v2/util"
|
7
|
+
require "vagrant/util/platform"
|
7
8
|
|
8
9
|
require File.expand_path("../vm_provisioner", __FILE__)
|
9
10
|
require File.expand_path("../vm_subvm", __FILE__)
|
@@ -14,18 +15,20 @@ module VagrantPlugins
|
|
14
15
|
DEFAULT_VM_NAME = :default
|
15
16
|
|
16
17
|
attr_accessor :base_mac
|
18
|
+
attr_accessor :boot_timeout
|
17
19
|
attr_accessor :box
|
18
20
|
attr_accessor :box_url
|
19
|
-
attr_accessor :
|
20
|
-
attr_accessor :
|
21
|
+
attr_accessor :box_download_insecure
|
22
|
+
attr_accessor :graceful_halt_timeout
|
21
23
|
attr_accessor :guest
|
22
24
|
attr_accessor :hostname
|
23
25
|
attr_accessor :usable_port_range
|
24
26
|
attr_reader :provisioners
|
25
27
|
|
26
28
|
def initialize
|
27
|
-
@
|
28
|
-
@
|
29
|
+
@boot_timeout = UNSET_VALUE
|
30
|
+
@box_download_insecure = UNSET_VALUE
|
31
|
+
@graceful_halt_timeout = UNSET_VALUE
|
29
32
|
@guest = UNSET_VALUE
|
30
33
|
@hostname = UNSET_VALUE
|
31
34
|
@provisioners = []
|
@@ -41,6 +44,12 @@ module VagrantPlugins
|
|
41
44
|
@__synced_folders = {}
|
42
45
|
end
|
43
46
|
|
47
|
+
# This was from V1, but we just kept it here as an alias for hostname
|
48
|
+
# because too many people mess this up.
|
49
|
+
def host_name=(value)
|
50
|
+
@hostname = value
|
51
|
+
end
|
52
|
+
|
44
53
|
# Custom merge method since some keys here are merged differently.
|
45
54
|
def merge(other)
|
46
55
|
super.tap do |result|
|
@@ -91,7 +100,11 @@ module VagrantPlugins
|
|
91
100
|
|
92
101
|
# Merge synced folders.
|
93
102
|
other_folders = other.instance_variable_get(:@__synced_folders)
|
94
|
-
new_folders =
|
103
|
+
new_folders = {}
|
104
|
+
@__synced_folders.each do |key, value|
|
105
|
+
new_folders[key] = value.dup
|
106
|
+
end
|
107
|
+
|
95
108
|
other_folders.each do |id, options|
|
96
109
|
new_folders[id] ||= {}
|
97
110
|
new_folders[id].merge!(options)
|
@@ -118,7 +131,14 @@ module VagrantPlugins
|
|
118
131
|
# folder.
|
119
132
|
# @param [Hash] options Additional options.
|
120
133
|
def synced_folder(hostpath, guestpath, options=nil)
|
134
|
+
if Vagrant::Util::Platform.windows?
|
135
|
+
# On Windows, Ruby just uses normal '/' for path seps, so
|
136
|
+
# just replace normal Windows style seps with Unix ones.
|
137
|
+
hostpath = hostpath.to_s.gsub("\\", "/")
|
138
|
+
end
|
139
|
+
|
121
140
|
options ||= {}
|
141
|
+
options = options.dup
|
122
142
|
options[:guestpath] = guestpath.to_s.gsub(/\/$/, '')
|
123
143
|
options[:hostpath] = hostpath
|
124
144
|
|
@@ -143,6 +163,8 @@ module VagrantPlugins
|
|
143
163
|
# @param [Hash] options Options for the network.
|
144
164
|
def network(type, options=nil)
|
145
165
|
options ||= {}
|
166
|
+
options = options.dup
|
167
|
+
options[:protocol] ||= "tcp"
|
146
168
|
|
147
169
|
if !options[:id]
|
148
170
|
default_id = nil
|
@@ -150,7 +172,7 @@ module VagrantPlugins
|
|
150
172
|
if type == :forwarded_port
|
151
173
|
# For forwarded ports, set the default ID to the
|
152
174
|
# host port so that host ports overwrite each other.
|
153
|
-
default_id = options[:host]
|
175
|
+
default_id = "#{options[:protocol]}#{options[:host]}"
|
154
176
|
end
|
155
177
|
|
156
178
|
options[:id] = default_id || SecureRandom.uuid
|
@@ -205,6 +227,7 @@ module VagrantPlugins
|
|
205
227
|
def define(name, options=nil, &block)
|
206
228
|
name = name.to_sym
|
207
229
|
options ||= {}
|
230
|
+
options = options.dup
|
208
231
|
options[:config_version] ||= "2"
|
209
232
|
|
210
233
|
# Add the name to the array of VM keys. This array is used to
|
@@ -226,8 +249,12 @@ module VagrantPlugins
|
|
226
249
|
|
227
250
|
def finalize!
|
228
251
|
# Defaults
|
252
|
+
@boot_timeout = 300 if @boot_timeout == UNSET_VALUE
|
253
|
+
@box_download_insecure = false if @box_download_insecure == UNSET_VALUE
|
254
|
+
@graceful_halt_timeout = 300 if @graceful_halt_timeout == UNSET_VALUE
|
229
255
|
@guest = nil if @guest == UNSET_VALUE
|
230
256
|
@hostname = nil if @hostname == UNSET_VALUE
|
257
|
+
@hostname = @hostname.to_s if @hostname
|
231
258
|
|
232
259
|
# Set the guest properly
|
233
260
|
@guest = @guest.to_sym if @guest
|
@@ -236,6 +263,14 @@ module VagrantPlugins
|
|
236
263
|
# default VM which just inherits the rest of the configuration.
|
237
264
|
define(DEFAULT_VM_NAME) if defined_vm_keys.empty?
|
238
265
|
|
266
|
+
# Clean up some network configurations
|
267
|
+
@__networks.each do |type, opts|
|
268
|
+
if type == :forwarded_port
|
269
|
+
opts[:guest] = opts[:guest].to_i if opts[:guest]
|
270
|
+
opts[:host] = opts[:host].to_i if opts[:host]
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
239
274
|
# Compile all the provider configurations
|
240
275
|
@__providers.each do |name, blocks|
|
241
276
|
# If we don't have any configuration blocks, then ignore it
|
@@ -258,6 +293,13 @@ module VagrantPlugins
|
|
258
293
|
@__compiled_provider_configs[name] = config
|
259
294
|
end
|
260
295
|
|
296
|
+
@__synced_folders.each do |id, options|
|
297
|
+
# Ignore NFS on Windows
|
298
|
+
if options[:nfs] && Vagrant::Util::Platform.windows?
|
299
|
+
options[:nfs] = false
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
261
303
|
# Flag that we finalized
|
262
304
|
@__finalized = true
|
263
305
|
end
|
@@ -322,7 +364,7 @@ module VagrantPlugins
|
|
322
364
|
guestpath = Pathname.new(options[:guestpath])
|
323
365
|
hostpath = Pathname.new(options[:hostpath]).expand_path(machine.env.root_path)
|
324
366
|
|
325
|
-
if guestpath.relative?
|
367
|
+
if guestpath.relative? && guestpath.to_s !~ /^\w+:/
|
326
368
|
errors << I18n.t("vagrant.config.vm.shared_folder_guestpath_relative",
|
327
369
|
:path => options[:guestpath])
|
328
370
|
else
|
@@ -348,6 +390,15 @@ module VagrantPlugins
|
|
348
390
|
:path => options[:hostpath])
|
349
391
|
end
|
350
392
|
end
|
393
|
+
|
394
|
+
if options[:mount_options] && !options[:mount_options].is_a?(Array)
|
395
|
+
errors << I18n.t("vagrant.config.vm.shared_folder_mount_options_array")
|
396
|
+
end
|
397
|
+
|
398
|
+
# One day remove this probably.
|
399
|
+
if options[:extra]
|
400
|
+
errors << "The 'extra' flag on synced folders is now 'mount_options'"
|
401
|
+
end
|
351
402
|
end
|
352
403
|
|
353
404
|
if has_nfs
|
@@ -361,7 +412,7 @@ module VagrantPlugins
|
|
361
412
|
|
362
413
|
# Validate networks
|
363
414
|
has_fp_port_error = false
|
364
|
-
|
415
|
+
fp_used = Set.new
|
365
416
|
valid_network_types = [:forwarded_port, :private_network, :public_network]
|
366
417
|
|
367
418
|
networks.each do |type, options|
|
@@ -377,12 +428,14 @@ module VagrantPlugins
|
|
377
428
|
end
|
378
429
|
|
379
430
|
if options[:host]
|
380
|
-
|
431
|
+
key = "#{options[:protocol]}#{options[:host]}"
|
432
|
+
if fp_used.include?(key)
|
381
433
|
errors << I18n.t("vagrant.config.vm.network_fp_host_not_unique",
|
382
|
-
:host => options[:host].to_s
|
434
|
+
:host => options[:host].to_s,
|
435
|
+
:protocol => options[:protocol].to_s)
|
383
436
|
end
|
384
437
|
|
385
|
-
|
438
|
+
fp_used.add(key)
|
386
439
|
end
|
387
440
|
end
|
388
441
|
|
@@ -392,6 +445,10 @@ module VagrantPlugins
|
|
392
445
|
errors << I18n.t("vagrant.config.vm.network_ip_required")
|
393
446
|
end
|
394
447
|
end
|
448
|
+
|
449
|
+
if options[:ip] && options[:ip].end_with?(".1")
|
450
|
+
errors << I18n.t("vagrant.config.vm.network_ip_ends_in_one")
|
451
|
+
end
|
395
452
|
end
|
396
453
|
end
|
397
454
|
|