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
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
page_title: "vagrant ssh - Command-Line Interface"
|
3
|
+
sidebar_current: "cli-ssh"
|
4
|
+
---
|
5
|
+
|
6
|
+
# SSH
|
7
|
+
|
8
|
+
**Command: `vagrant ssh`**
|
9
|
+
|
10
|
+
This will SSH into a running Vagrant machine and give you access to a shell.
|
11
|
+
|
12
|
+
If a `--` (two hyphens) are found on the command line, any arguments after
|
13
|
+
this are passed directly into the `ssh` executable. This allows you to pass
|
14
|
+
any abitrary commands to do things such as reverse tunneling down into the
|
15
|
+
`ssh` program.
|
16
|
+
|
17
|
+
## Options
|
18
|
+
|
19
|
+
* `-c COMMAND` or `--command COMMAND` - This executes a single SSH command, prints
|
20
|
+
out the stdout and stderr, and exits. stdin will not be functional on this
|
21
|
+
executed command.
|
22
|
+
|
23
|
+
* `-p` or `--plain` - This does an SSH without authentication, leaving
|
24
|
+
authentication up to the user.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
page_title: "vagrant ssh-config - Command-Line Interface"
|
3
|
+
sidebar_current: "cli-ssh_config"
|
4
|
+
---
|
5
|
+
|
6
|
+
# SSH Config
|
7
|
+
|
8
|
+
**Command: `vagrant ssh-config`**
|
9
|
+
|
10
|
+
This will output valid configuration for an SSH config file to SSH
|
11
|
+
into the running Vagrant machine from `ssh` directly (instead of
|
12
|
+
using `vagrant ssh`).
|
13
|
+
|
14
|
+
## Options
|
15
|
+
|
16
|
+
* `--host NAME` - Name of the host for the outputted configuration.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
page_title: "vagrant status - Command-Line Interface"
|
3
|
+
sidebar_current: "cli-status"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Status
|
7
|
+
|
8
|
+
**Command: `vagrant status`**
|
9
|
+
|
10
|
+
This will tell you the state of the machines Vagrant is managing.
|
11
|
+
|
12
|
+
It is quite easy, especially once you get comfortable with Vagrant, to
|
13
|
+
forget whether your Vagrant machine is running, suspended, not created, etc.
|
14
|
+
This command tells you the state of the underlying guest machine.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
page_title: "vagrant suspend - Command-Line Interface"
|
3
|
+
sidebar_current: "cli-suspend"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Suspend
|
7
|
+
|
8
|
+
**Command: `vagrant suspend`**
|
9
|
+
|
10
|
+
This suspends the guest machine Vagrant is managing, rather than fully
|
11
|
+
[shutting it down](/v2/cli/halt.html) or [destroying it](/v2/cli/destroy.html).
|
12
|
+
|
13
|
+
A suspend effectively saves the _exact point-in-time state_ of the machine,
|
14
|
+
so that when you [resume](/v2/cli/resume.html) it later, it begins running
|
15
|
+
immediately from that point, rather than doing a full boot.
|
16
|
+
|
17
|
+
This generally requires extra disk space to store all the contents of the
|
18
|
+
RAM within your guest machine, but the machine no longer consumes the
|
19
|
+
RAM of your host machine or CPU cycles while it is suspended.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
page_title: "vagrant up - Command-Line Interface"
|
3
|
+
sidebar_current: "cli-up"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Up
|
7
|
+
|
8
|
+
**Command: `vagrant up`**
|
9
|
+
|
10
|
+
This command creates and configures guest machines according to your
|
11
|
+
[Vagrantfile](/v2/vagrantfile/index.html).
|
12
|
+
|
13
|
+
This is the single most important command in Vagrant, since it is how
|
14
|
+
any Vagrant machine is created. Anyone using Vagrant must use this command
|
15
|
+
on a day-to-day basis.
|
16
|
+
|
17
|
+
# Options
|
18
|
+
|
19
|
+
* `--[no-]destroy-on-error` - Destroy the newly created machine if a fatal,
|
20
|
+
unexpected error occurs. This will only happen on the first `vagrant up`.
|
21
|
+
By default this is set.
|
22
|
+
|
23
|
+
* `--[no-]parallel` - Bring multiple machines up in parallel if the provider
|
24
|
+
supports it.
|
25
|
+
|
26
|
+
* `--provider x` - Bring the machine up with the given
|
27
|
+
[provider](/v2/providers/index.html). By default this is "virtualbox".
|
28
|
+
|
29
|
+
* `--provision` - Force the provisioners to run.
|
30
|
+
|
31
|
+
* `--provision-with x,y,z` - This will only run the given provisioners. For
|
32
|
+
example, if you have a `:shell` and `:chef_solo` provisioner and run
|
33
|
+
`vagrant provision --provision-with shell`, only the shell provisioner will
|
34
|
+
be run.
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Debugging and Troubleshooting"
|
3
|
+
sidebar_current: "debugging"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Debugging
|
7
|
+
|
8
|
+
As much as we try to keep Vagrant stable and bug free, it is inevitable
|
9
|
+
that issues will arise and Vagrant will behave in unexpected ways. In
|
10
|
+
these cases, Vagrant has amazing [support](http://www.vagrantup.com/support.html)
|
11
|
+
channels available to assist you.
|
12
|
+
|
13
|
+
When using these support channels, it is generally helpful to include
|
14
|
+
debugging logs along with any error reports. These logs can often help you
|
15
|
+
troubleshoot any problems you may be having.
|
16
|
+
|
17
|
+
To enable detailed logging, set the `VAGRANT_LOG` environmental variable
|
18
|
+
to the desired log level name, which is one of `debug` (loud), `info` (normal),
|
19
|
+
`warn` (quiet), and `error` (very quiet). When asking for support, please
|
20
|
+
set this to `debug`. When troubleshooting your own issues, you should start
|
21
|
+
with `info`, which is much quieter, but contains important information
|
22
|
+
about the behavior of Vagrant.
|
23
|
+
|
24
|
+
On Linux and Mac systems, this can be done by prepending the `vagrant`
|
25
|
+
command with an environmental variable declaration:
|
26
|
+
|
27
|
+
```
|
28
|
+
$ VAGRANT_LOG=info vagrant up
|
29
|
+
...
|
30
|
+
```
|
31
|
+
|
32
|
+
On Windows, multiple steps are required:
|
33
|
+
|
34
|
+
```
|
35
|
+
$ set VAGRANT_LOG=info
|
36
|
+
$ vagrant up
|
37
|
+
...
|
38
|
+
```
|
39
|
+
|
40
|
+
If you plan on submitting a bug report, please submit debug-level logs
|
41
|
+
along with the report using [gist](https://gist.github.com/) or
|
42
|
+
some other paste service.
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Boxes - Getting Started"
|
3
|
+
sidebar_current: "gettingstarted-boxes"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Boxes
|
7
|
+
|
8
|
+
Instead of building a virtual machine from scratch, which would be a
|
9
|
+
slow and tedious process, Vagrant uses a base image to quickly clone
|
10
|
+
a virtual machine. These base images are known as _boxes_ in Vagrant,
|
11
|
+
and specifying the box to use for your Vagrant environment is always
|
12
|
+
the first step after creating a new Vagrantfile.
|
13
|
+
|
14
|
+
## Installing a Box
|
15
|
+
|
16
|
+
If you ran the commands on the [getting started overview page](/v2/getting-started/index.html),
|
17
|
+
then you've already installed a box before, and you don't need to run
|
18
|
+
the commands below again. However, it is still worth reading this section
|
19
|
+
to learn more about how boxes are managed.
|
20
|
+
|
21
|
+
Boxes are added to Vagrant with `vagrant box add`. This stores the box
|
22
|
+
under a specific name so that multiple Vagrant environments can re-use it.
|
23
|
+
If you haven't added a box yet, you can do so now:
|
24
|
+
|
25
|
+
```
|
26
|
+
$ vagrant box add precise32 \
|
27
|
+
http://files.vagrantup.com/precise32.box
|
28
|
+
```
|
29
|
+
|
30
|
+
This will download the box from an HTTP source and save it as "precise32"
|
31
|
+
in a directory that Vagrant manages (away from your project). You can also
|
32
|
+
add boxes from a local file path.
|
33
|
+
|
34
|
+
Added boxes can be re-used by multiple projects. Each project uses a box
|
35
|
+
as an initial image to clone from, and never modifies the actual base
|
36
|
+
image. This means that if you have two projects both using the `precise32`
|
37
|
+
box we just added, adding files in one guest machine will have no effect
|
38
|
+
on the other machine.
|
39
|
+
|
40
|
+
## Using a Box
|
41
|
+
|
42
|
+
Now that the box has been added to Vagrant, we need to configure our
|
43
|
+
project to use it as a base. Open the `Vagrantfile` and change the
|
44
|
+
contents to the following:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
Vagrant.configure("2") do |config|
|
48
|
+
config.vm.box = "precise32"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
The "precise32" in this case must match the name you used to add
|
53
|
+
the box above. This is how Vagrant knows what box to use.
|
54
|
+
|
55
|
+
In the next section, we'll bring up the guest machine and interact
|
56
|
+
with it a little bit.
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Getting Started"
|
3
|
+
sidebar_current: "gettingstarted"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Getting Started
|
7
|
+
|
8
|
+
The Vagrant getting started guide will walk you through your first
|
9
|
+
Vagrant project, and show off the basics of the major features Vagrant
|
10
|
+
has to offer.
|
11
|
+
|
12
|
+
Before diving into your first project, please [install Vagrant](/v2/installation/index.html).
|
13
|
+
And if you're curious what benefits Vagrant has to offer, you
|
14
|
+
should also read the ["Why Vagrant?"](/v2/why-vagrant/index.html) page.
|
15
|
+
|
16
|
+
The getting started guide will use Vagrant with [VirtualBox](http://www.virtualbox.org),
|
17
|
+
since it is free, available on every major platform, and built-in to
|
18
|
+
Vagrant. After reading the guide though, don't forget that Vagrant
|
19
|
+
can work with [many other providers](/v2/getting-started/providers.html).
|
20
|
+
|
21
|
+
## Up and Running
|
22
|
+
|
23
|
+
```
|
24
|
+
$ vagrant init precise32 http://files.vagrantup.com/precise32.box
|
25
|
+
$ vagrant up
|
26
|
+
```
|
27
|
+
|
28
|
+
After running the above two commands, you'll have a fully running
|
29
|
+
virtual machine in [VirtualBox](http://virtualbox.org) running
|
30
|
+
Ubuntu 12.04 LTS 32-bit. You can SSH into this machine with
|
31
|
+
`vagrant ssh`, and when you're done playing around, you can remove
|
32
|
+
all traces of it with `vagrant destroy`.
|
33
|
+
|
34
|
+
Now imagine every project you've ever worked on being this easy to
|
35
|
+
set up.
|
36
|
+
|
37
|
+
With Vagrant, `vagrant up` is all you need to work on any project,
|
38
|
+
to install every dependency that project needs, and to setup any
|
39
|
+
networking and synced folders so you can continue working from the
|
40
|
+
comfort of your own machine.
|
41
|
+
|
42
|
+
The rest of this guide will walk you through setting up a more
|
43
|
+
complete project, covering more features of Vagrant.
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Networking - Getting Started"
|
3
|
+
sidebar_current: "gettingstarted-networking"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Networking
|
7
|
+
|
8
|
+
At this point we have a web server up and running with the ability to
|
9
|
+
modify files from our host and have them automatically synced to the guest.
|
10
|
+
However, accessing the web pages simply from the terminal from inside
|
11
|
+
the machine is not very satisfying. In this step, we'll use Vagrant's
|
12
|
+
_networking_ features to give us additional options for accessing the
|
13
|
+
machine from our host machine.
|
14
|
+
|
15
|
+
## Port Forwarding
|
16
|
+
|
17
|
+
One option is to use _port forwarding_. Port forwarding allows you to
|
18
|
+
specify ports on the guest machine to share via a port on the host machine.
|
19
|
+
This allows you to access a port on your own machine, but actually have
|
20
|
+
all the network traffic forwarded to a specific port on the guest machine.
|
21
|
+
|
22
|
+
Let's setup a forwarded port so we can access Apache in our guest. Doing so
|
23
|
+
is a simple edit to the Vagrantfile, which now looks like this:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
Vagrant.configure("2") do |config|
|
27
|
+
config.vm.box = "precise32"
|
28
|
+
config.vm.provision :shell, :path => "bootstrap.sh"
|
29
|
+
config.vm.network :forwarded_port, host: 4567, guest: 80
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
Run a `vagrant reload` or `vagrant up` (depending on if the machine
|
34
|
+
is already running) so that these changes can take effect.
|
35
|
+
|
36
|
+
Once the machine is running again, load `http://127.0.0.1:4567` in
|
37
|
+
your browser. You should see a web page that is being served from
|
38
|
+
the virtual machine that was automatically setup by Vagrant.
|
39
|
+
|
40
|
+
## Other Networking
|
41
|
+
|
42
|
+
Vagrant also has other forms of networking, allowing you to assign
|
43
|
+
a static IP address to the guest machine, or to bridge the guest
|
44
|
+
machine onto an existing network. If you're interested in other options,
|
45
|
+
read the [networking](/v2/networking/index.html) page.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Project Setup - Getting Started"
|
3
|
+
sidebar_current: "gettingstarted-projectsetup"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Project Setup
|
7
|
+
|
8
|
+
The first step for any project to use Vagrant is to configure Vagrant
|
9
|
+
using a [Vagrantfile](/v2/vagrantfile/index.html). The purpose of the
|
10
|
+
Vagrantfile is twofold:
|
11
|
+
|
12
|
+
1. Mark the root directory of your project. A lot of the configuration
|
13
|
+
of Vagrant is relative to this root directory.
|
14
|
+
|
15
|
+
2. Describe the kind of machine and resources you need to run your project,
|
16
|
+
as well as what software to install and how you want to access it.
|
17
|
+
|
18
|
+
Vagrant has a built-in command for initializing a directory for usage
|
19
|
+
with Vagrant: `vagrant init`. For the purpose of this getting started guide,
|
20
|
+
please follow along in your terminal:
|
21
|
+
|
22
|
+
```
|
23
|
+
$ mkdir vagrant_getting_started
|
24
|
+
$ cd vagrant_getting_started
|
25
|
+
$ vagrant init
|
26
|
+
```
|
27
|
+
|
28
|
+
This will place a `Vagrantfile` in your current directory. You can
|
29
|
+
take a look at the Vagrantfile if you want, it is filled with comments
|
30
|
+
and examples. Don't be afraid if it looks intimidating, we'll modify it
|
31
|
+
soon enough.
|
32
|
+
|
33
|
+
You can also run `vagrant init` in a pre-existing directory to
|
34
|
+
setup Vagrant for an existing project.
|
35
|
+
|
36
|
+
The Vagrantfile is meant to be committed to version control with
|
37
|
+
your project, if you use version control. This way, every person working
|
38
|
+
with that project can benefit from Vagrant without any upfront work.
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Providers - Getting Started"
|
3
|
+
sidebar_current: "gettingstarted-providers"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Providers
|
7
|
+
|
8
|
+
In this getting started guide, your project was always backed with
|
9
|
+
[VirtualBox](http://www.virtualbox.org). But Vagrant can work with
|
10
|
+
a wide variety of backend providers, such as [VMware Fusion](/v2/vmware-fusion/index.html),
|
11
|
+
[AWS](http://github.com/mitchellh/vagrant-aws), and more. Read the page
|
12
|
+
of each provider for more information on how to set them up.
|
13
|
+
|
14
|
+
Once you have a provider installed, you don't need to make any modifications
|
15
|
+
to your Vagrantfile, just `vagrant up` with the proper provider and
|
16
|
+
Vagrant will do the rest:
|
17
|
+
|
18
|
+
```
|
19
|
+
$ vagrant up --provider=vmware_fusion
|
20
|
+
...
|
21
|
+
```
|
22
|
+
|
23
|
+
Ready to move that to the cloud? Take it to AWS:
|
24
|
+
|
25
|
+
```
|
26
|
+
$ vagrant up --provider=aws
|
27
|
+
...
|
28
|
+
```
|
29
|
+
|
30
|
+
Once you run `vagrant up` with another provider, every other Vagrant
|
31
|
+
command doesn't need to be told what provider to use. Vagrant can automatically
|
32
|
+
figure it out. So when you're ready to SSH or destroy or anything else,
|
33
|
+
just run the commands like normal, such as `vagrant destroy`. No extra
|
34
|
+
flags necessary.
|
35
|
+
|
36
|
+
For more information on providers, read the full documentation on
|
37
|
+
[providers](/v2/providers/index.html).
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Provisioning - Getting Started"
|
3
|
+
sidebar_current: "gettingstarted-provisioning"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Provisioning
|
7
|
+
|
8
|
+
Alright, so we have a virtual machine running a basic copy of Ubuntu and
|
9
|
+
we can edit files from our machine and have them synced into the virtual machine.
|
10
|
+
Let's now serve those files using a webserver.
|
11
|
+
|
12
|
+
We could just SSH in and install a webserver and be on our way, but then
|
13
|
+
every person who used Vagrant would have to do the same thing. Instead,
|
14
|
+
Vagrant has built-in support for _automated provisioning_. Using this
|
15
|
+
feature, Vagrant will automatically install software when you `vagrant up`
|
16
|
+
so that the guest machine can be repeatably created and ready-to-use.
|
17
|
+
|
18
|
+
## Installing Apache
|
19
|
+
|
20
|
+
We'll just setup [Apache](http://httpd.apache.org/) for our basic project,
|
21
|
+
and we'll do so using a shell script. Create the following shell script
|
22
|
+
and save it as `bootstrap.sh` in the same directory as your Vagrantfile:
|
23
|
+
|
24
|
+
```bash
|
25
|
+
#!/usr/bin/env bash
|
26
|
+
|
27
|
+
apt-get update
|
28
|
+
apt-get install -y apache2
|
29
|
+
rm -rf /var/www
|
30
|
+
ln -fs /vagrant /var/www
|
31
|
+
```
|
32
|
+
|
33
|
+
Next, we configure Vagrant to run this shell script when setting up
|
34
|
+
our machine. We do this by editing the Vagrantfile, which should now
|
35
|
+
look like this:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
Vagrant.configure("2") do |config|
|
39
|
+
config.vm.box = "precise32"
|
40
|
+
config.vm.provision :shell, :path => "bootstrap.sh"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
The "provision" line is new, and tells Vagrant to use the `shell` provisioner
|
45
|
+
to setup the machine, with the `bootstrap.sh` file. The file path is relative
|
46
|
+
to the location of the project root (where the Vagrantfile is).
|
47
|
+
|
48
|
+
## Provision!
|
49
|
+
|
50
|
+
After everything is configured, just run `vagrant up` to create your
|
51
|
+
machine and Vagrant will automatically provision it. You should see
|
52
|
+
the output from the shell script appear in your terminal. If the guest
|
53
|
+
machine is already running from a previous step, run `vagrant reload --provision`,
|
54
|
+
which will quickly restart your virtual machine, skipping the initial
|
55
|
+
import step. The provision flag on the reload command instructs Vagrant to
|
56
|
+
run the provisioners, since usually Vagrant will only do this on the first
|
57
|
+
`vagrant up`.
|
58
|
+
|
59
|
+
After Vagrant completes running, the web server will be up and running.
|
60
|
+
You can't see the website from your own browser (yet), but you can verify
|
61
|
+
that the provisioning works by loading a file from SSH within the machine:
|
62
|
+
|
63
|
+
```
|
64
|
+
$ vagrant ssh
|
65
|
+
...
|
66
|
+
vagrant@precise32:~$ wget -qO- 127.0.0.1
|
67
|
+
```
|
68
|
+
|
69
|
+
This works because in the shell script above we installed Apache and
|
70
|
+
setup the default `DocumentRoot` of Apache to point to our `/vagrant`
|
71
|
+
directory, which is the default synced folder setup by Vagrant.
|
72
|
+
|
73
|
+
You can play around some more by creating some more files and viewing
|
74
|
+
them from the terminal, but in the next step we'll cover networking
|
75
|
+
options so that you can use your own browser to access the guest machine.
|