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,22 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module Salt
|
5
|
+
class Plugin < Vagrant.plugin("2")
|
6
|
+
name "salt"
|
7
|
+
description <<-DESC
|
8
|
+
Provisions virtual machines using SaltStack
|
9
|
+
DESC
|
10
|
+
|
11
|
+
config(:salt, :provisioner) do
|
12
|
+
require File.expand_path("../config", __FILE__)
|
13
|
+
Config
|
14
|
+
end
|
15
|
+
|
16
|
+
provisioner(:salt) do
|
17
|
+
require File.expand_path("../provisioner", __FILE__)
|
18
|
+
Provisioner
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,249 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module Salt
|
5
|
+
class Provisioner < Vagrant.plugin("2", :provisioner)
|
6
|
+
def provision
|
7
|
+
upload_configs
|
8
|
+
upload_keys
|
9
|
+
run_bootstrap_script
|
10
|
+
call_highstate
|
11
|
+
end
|
12
|
+
|
13
|
+
# Return a list of accepted keys
|
14
|
+
def keys(group='minions')
|
15
|
+
out = @machine.communicate.sudo("salt-key --out json") do |type, output|
|
16
|
+
begin
|
17
|
+
if type == :stdout
|
18
|
+
out = JSON::load(output)
|
19
|
+
break out[group]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
return out
|
24
|
+
end
|
25
|
+
|
26
|
+
## Utilities
|
27
|
+
def expanded_path(rel_path)
|
28
|
+
Pathname.new(rel_path).expand_path(@machine.env.root_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
def binaries_found
|
32
|
+
## Determine States, ie: install vs configure
|
33
|
+
desired_binaries = []
|
34
|
+
if !@config.no_minion
|
35
|
+
desired_binaries.push('salt-minion')
|
36
|
+
desired_binaries.push('salt-call')
|
37
|
+
end
|
38
|
+
|
39
|
+
if @config.install_master
|
40
|
+
desired_binaries.push('salt-master')
|
41
|
+
end
|
42
|
+
|
43
|
+
if @config.install_syndic
|
44
|
+
desired_binaries.push('salt-syndic')
|
45
|
+
end
|
46
|
+
|
47
|
+
found = true
|
48
|
+
for binary in desired_binaries
|
49
|
+
@machine.env.ui.info "Checking if %s is installed" % binary
|
50
|
+
if !@machine.communicate.test("which %s" % binary)
|
51
|
+
@machine.env.ui.info "%s was not found." % binary
|
52
|
+
found = false
|
53
|
+
else
|
54
|
+
@machine.env.ui.info "%s found" % binary
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
return found
|
59
|
+
end
|
60
|
+
|
61
|
+
def need_configure
|
62
|
+
@config.minion_config or @config.minion_key or @config.master_config or @config.master_key
|
63
|
+
end
|
64
|
+
|
65
|
+
def need_install
|
66
|
+
if @config.always_install
|
67
|
+
return true
|
68
|
+
else
|
69
|
+
return !binaries_found()
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def temp_config_dir
|
74
|
+
return @config.temp_config_dir || "/tmp"
|
75
|
+
end
|
76
|
+
|
77
|
+
# Generates option string for bootstrap script
|
78
|
+
def bootstrap_options(install, configure, config_dir)
|
79
|
+
options = ""
|
80
|
+
|
81
|
+
## Any extra options passed to bootstrap
|
82
|
+
if @config.bootstrap_options
|
83
|
+
options = "%s %s" % [options, @config.bootstrap_options]
|
84
|
+
end
|
85
|
+
|
86
|
+
if configure
|
87
|
+
options = "%s -c %s" % [options, config_dir]
|
88
|
+
end
|
89
|
+
|
90
|
+
if @config.seed_master and @config.install_master
|
91
|
+
seed_dir = "/tmp/minion-seed-keys"
|
92
|
+
@machine.communicate.sudo("mkdir -p -m777 #{seed_dir}")
|
93
|
+
@config.seed_master.each do |name, keyfile|
|
94
|
+
sourcepath = expanded_path(keyfile).to_s
|
95
|
+
dest = "#{seed_dir}/seed-#{name}.pub"
|
96
|
+
@machine.communicate.upload(sourcepath, dest)
|
97
|
+
end
|
98
|
+
options = "#{options} -k #{seed_dir}"
|
99
|
+
end
|
100
|
+
|
101
|
+
if configure and !install
|
102
|
+
options = "%s -C" % options
|
103
|
+
else
|
104
|
+
|
105
|
+
if @config.install_master
|
106
|
+
options = "%s -M" % options
|
107
|
+
end
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
if @config.install_syndic
|
112
|
+
options = "%s -S" % options
|
113
|
+
end
|
114
|
+
|
115
|
+
if @config.no_minion
|
116
|
+
options = "%s -N" % options
|
117
|
+
end
|
118
|
+
|
119
|
+
if @config.install_type
|
120
|
+
options = "%s %s" % [options, @config.install_type]
|
121
|
+
end
|
122
|
+
|
123
|
+
if @config.install_args
|
124
|
+
options = "%s %s" % [options, @config.install_args]
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
if @config.verbose
|
129
|
+
@machine.env.ui.info "Using Bootstrap Options: %s" % options
|
130
|
+
end
|
131
|
+
|
132
|
+
return options
|
133
|
+
end
|
134
|
+
|
135
|
+
## Actions
|
136
|
+
# Get pillar string to pass with the salt command
|
137
|
+
def get_pillar
|
138
|
+
" pillar='#{@config.pillar_data.to_json}'" if !@config.pillar_data.empty?
|
139
|
+
end
|
140
|
+
|
141
|
+
# Copy master and minion configs to VM
|
142
|
+
def upload_configs
|
143
|
+
if @config.minion_config
|
144
|
+
@machine.env.ui.info "Copying salt minion config to vm."
|
145
|
+
@machine.communicate.upload(expanded_path(@config.minion_config).to_s, temp_config_dir + "/minion")
|
146
|
+
end
|
147
|
+
|
148
|
+
if @config.master_config
|
149
|
+
@machine.env.ui.info "Copying salt master config to vm."
|
150
|
+
@machine.communicate.upload(expanded_path(@config.master_config).to_s, temp_config_dir + "/master")
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# Copy master and minion keys to VM
|
155
|
+
def upload_keys
|
156
|
+
if @config.minion_key and @config.minion_pub
|
157
|
+
@machine.env.ui.info "Uploading minion keys."
|
158
|
+
@machine.communicate.upload(expanded_path(@config.minion_key).to_s, temp_config_dir + "/minion.pem")
|
159
|
+
@machine.communicate.upload(expanded_path(@config.minion_pub).to_s, temp_config_dir + "/minion.pub")
|
160
|
+
end
|
161
|
+
|
162
|
+
if @config.master_key and @config.master_pub
|
163
|
+
@machine.env.ui.info "Uploading master keys."
|
164
|
+
@machine.communicate.upload(expanded_path(@config.master_key).to_s, temp_config_dir + "/master.pem")
|
165
|
+
@machine.communicate.upload(expanded_path(@config.master_pub).to_s, temp_config_dir + "/master.pub")
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Get bootstrap file location, bundled or custom
|
170
|
+
def get_bootstrap
|
171
|
+
if @config.bootstrap_script
|
172
|
+
bootstrap_abs_path = expanded_path(@config.bootstrap_script)
|
173
|
+
else
|
174
|
+
bootstrap_abs_path = Pathname.new("../bootstrap-salt.sh").expand_path(__FILE__)
|
175
|
+
end
|
176
|
+
|
177
|
+
return bootstrap_abs_path
|
178
|
+
end
|
179
|
+
|
180
|
+
# Determine if we are configure and/or installing, then do either
|
181
|
+
def run_bootstrap_script
|
182
|
+
install = need_install()
|
183
|
+
configure = need_configure()
|
184
|
+
config_dir = temp_config_dir()
|
185
|
+
options = bootstrap_options(install, configure, config_dir)
|
186
|
+
|
187
|
+
if configure or install
|
188
|
+
if configure and !install
|
189
|
+
@machine.env.ui.info "Salt binaries found. Configuring only."
|
190
|
+
else
|
191
|
+
@machine.env.ui.info "Bootstrapping Salt... (this may take a while)"
|
192
|
+
end
|
193
|
+
|
194
|
+
bootstrap_path = get_bootstrap
|
195
|
+
bootstrap_destination = File.join(config_dir, "bootstrap_salt.sh")
|
196
|
+
@machine.communicate.upload(bootstrap_path.to_s, bootstrap_destination)
|
197
|
+
@machine.communicate.sudo("chmod +x %s" % bootstrap_destination)
|
198
|
+
bootstrap = @machine.communicate.sudo("%s %s" % [bootstrap_destination, options]) do |type, data|
|
199
|
+
if data[0] == "\n"
|
200
|
+
# Remove any leading newline but not whitespace. If we wanted to
|
201
|
+
# remove newlines and whitespace we would have used data.lstrip
|
202
|
+
data = data[1..-1]
|
203
|
+
end
|
204
|
+
if @config.verbose
|
205
|
+
@machine.env.ui.info(data.rstrip)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if !bootstrap
|
210
|
+
raise Salt::Errors::SaltError, :bootstrap_failed
|
211
|
+
end
|
212
|
+
|
213
|
+
if configure and !install
|
214
|
+
@machine.env.ui.info "Salt successfully configured!"
|
215
|
+
elsif configure and install
|
216
|
+
@machine.env.ui.info "Salt successfully configured and installed!"
|
217
|
+
elsif !configure and install
|
218
|
+
@machine.env.ui.info "Salt successfully installed!"
|
219
|
+
end
|
220
|
+
else
|
221
|
+
@machine.env.ui.info "Salt did not need installing or configuring."
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
def call_highstate
|
226
|
+
if @config.run_highstate
|
227
|
+
@machine.env.ui.info "Calling state.highstate... (this may take a while)"
|
228
|
+
if @config.install_master
|
229
|
+
@machine.communicate.sudo("salt '*' saltutil.sync_all")
|
230
|
+
@machine.communicate.sudo("salt '*' state.highstate --verbose#{get_pillar}") do |type, data|
|
231
|
+
if @config.verbose
|
232
|
+
@machine.env.ui.info(data)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
else
|
236
|
+
@machine.communicate.sudo("salt-call saltutil.sync_all")
|
237
|
+
@machine.communicate.sudo("salt-call state.highstate -l debug#{get_pillar}") do |type, data|
|
238
|
+
if @config.verbose
|
239
|
+
@machine.env.ui.info(data)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
else
|
244
|
+
@machine.env.ui.info "run_highstate set to false. Not running state.highstate."
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module Shell
|
3
5
|
class Config < Vagrant.plugin("2", :config)
|
@@ -5,12 +7,14 @@ module VagrantPlugins
|
|
5
7
|
attr_accessor :path
|
6
8
|
attr_accessor :upload_path
|
7
9
|
attr_accessor :args
|
10
|
+
attr_accessor :privileged
|
8
11
|
|
9
12
|
def initialize
|
10
13
|
@args = UNSET_VALUE
|
11
14
|
@inline = UNSET_VALUE
|
12
15
|
@path = UNSET_VALUE
|
13
16
|
@upload_path = UNSET_VALUE
|
17
|
+
@privileged = UNSET_VALUE
|
14
18
|
end
|
15
19
|
|
16
20
|
def finalize!
|
@@ -18,6 +22,7 @@ module VagrantPlugins
|
|
18
22
|
@inline = nil if @inline == UNSET_VALUE
|
19
23
|
@path = nil if @path == UNSET_VALUE
|
20
24
|
@upload_path = "/tmp/vagrant-shell" if @upload_path == UNSET_VALUE
|
25
|
+
@privileged = true if @privileged == UNSET_VALUE
|
21
26
|
end
|
22
27
|
|
23
28
|
def validate(machine)
|
@@ -30,8 +35,8 @@ module VagrantPlugins
|
|
30
35
|
errors << I18n.t("vagrant.provisioners.shell.no_path_or_inline")
|
31
36
|
end
|
32
37
|
|
33
|
-
#
|
34
|
-
if path
|
38
|
+
# If it is not an URL, we validate the existence of a script to upload
|
39
|
+
if path && ! remote?
|
35
40
|
expanded_path = Pathname.new(path).expand_path(machine.env.root_path)
|
36
41
|
if !expanded_path.file?
|
37
42
|
errors << I18n.t("vagrant.provisioners.shell.path_invalid",
|
@@ -51,6 +56,10 @@ module VagrantPlugins
|
|
51
56
|
|
52
57
|
{ "shell provisioner" => errors }
|
53
58
|
end
|
59
|
+
|
60
|
+
def remote?
|
61
|
+
path =~ URI.regexp(["ftp", "http", "https"])
|
62
|
+
end
|
54
63
|
end
|
55
64
|
end
|
56
65
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require "pathname"
|
2
2
|
require "tempfile"
|
3
3
|
|
4
|
+
require "vagrant/util/downloader"
|
5
|
+
|
4
6
|
module VagrantPlugins
|
5
7
|
module Shell
|
6
8
|
class Provisioner < Vagrant.plugin("2", :provisioner)
|
@@ -28,14 +30,16 @@ module VagrantPlugins
|
|
28
30
|
end
|
29
31
|
|
30
32
|
# Execute it with sudo
|
31
|
-
comm.
|
33
|
+
comm.execute(command, sudo: config.privileged) do |type, data|
|
32
34
|
if [:stderr, :stdout].include?(type)
|
33
35
|
# Output the data with the proper color based on the stream.
|
34
36
|
color = type == :stdout ? :green : :red
|
35
37
|
|
36
38
|
# Note: Be sure to chomp the data to avoid the newlines that the
|
37
39
|
# Chef outputs.
|
38
|
-
@machine.env.ui.info(
|
40
|
+
@machine.env.ui.info(
|
41
|
+
data,
|
42
|
+
:color => color, :new_line => false, :prefix => false)
|
39
43
|
end
|
40
44
|
end
|
41
45
|
end
|
@@ -50,7 +54,15 @@ module VagrantPlugins
|
|
50
54
|
def with_script_file
|
51
55
|
script = nil
|
52
56
|
|
53
|
-
if config.
|
57
|
+
if config.remote?
|
58
|
+
download_path = @machine.env.tmp_path.join("#{@machine.id}-remote-script")
|
59
|
+
download_path.delete if download_path.file?
|
60
|
+
|
61
|
+
Vagrant::Util::Downloader.new(config.path, download_path).download!
|
62
|
+
script = download_path.read
|
63
|
+
|
64
|
+
download_path.delete
|
65
|
+
elsif config.path
|
54
66
|
# Just yield the path to that file...
|
55
67
|
root_path = @machine.env.root_path
|
56
68
|
script = Pathname.new(config.path).expand_path(root_path).read
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Get the parent directory of where this script is.
|
4
|
+
SOURCE="${BASH_SOURCE[0]}"
|
5
|
+
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
6
|
+
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
7
|
+
|
8
|
+
# Change into that directory
|
9
|
+
cd $DIR
|
10
|
+
|
11
|
+
# Push the subtree (force)
|
12
|
+
git push heroku-docs `git subtree split --prefix website/docs master`:master --force
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Get the parent directory of where this script is.
|
4
|
+
SOURCE="${BASH_SOURCE[0]}"
|
5
|
+
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
6
|
+
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
7
|
+
|
8
|
+
# Change into that directory
|
9
|
+
cd $DIR
|
10
|
+
|
11
|
+
# Push the subtree (force)
|
12
|
+
git push heroku-www `git subtree split --prefix website/www master`:master --force
|
@@ -1,7 +1,10 @@
|
|
1
1
|
# -*- mode: ruby -*-
|
2
2
|
# vi: set ft=ruby :
|
3
3
|
|
4
|
-
|
4
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
+
VAGRANTFILE_API_VERSION = "2"
|
6
|
+
|
7
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
5
8
|
# All Vagrant configuration is done here. The most common configuration
|
6
9
|
# options are documented and commented below. For a complete reference,
|
7
10
|
# please see the online documentation at vagrantup.com.
|
@@ -72,7 +75,7 @@ Vagrant.configure("2") do |config|
|
|
72
75
|
#
|
73
76
|
# config.vm.provision :puppet do |puppet|
|
74
77
|
# puppet.manifests_path = "manifests"
|
75
|
-
# puppet.manifest_file = "
|
78
|
+
# puppet.manifest_file = "site.pp"
|
76
79
|
# end
|
77
80
|
|
78
81
|
# Enable provisioning with chef solo, specifying a cookbooks path, roles
|
@@ -5,7 +5,11 @@ Host <%= host_key %>
|
|
5
5
|
UserKnownHostsFile /dev/null
|
6
6
|
StrictHostKeyChecking no
|
7
7
|
PasswordAuthentication no
|
8
|
+
<% if private_key_path.include?(" ") -%>
|
8
9
|
IdentityFile "<%= private_key_path %>"
|
10
|
+
<% else -%>
|
11
|
+
IdentityFile <%= private_key_path %>
|
12
|
+
<% end -%>
|
9
13
|
IdentitiesOnly yes
|
10
14
|
LogLevel FATAL
|
11
15
|
<% if forward_agent -%>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=Clustered etcd
|
3
|
+
#After=docker.service
|
4
|
+
|
5
|
+
[Service]
|
6
|
+
Restart=always
|
7
|
+
ExecStart=/usr/bin/etcd -c 4001 -s 7001 -h <%= options[:my_ip] %> <% if options[:connection_string] %>-C <%= options[:connection_string] %><% end %> -d /home/core/etcd
|
8
|
+
|
9
|
+
[Install]
|
10
|
+
WantedBy=local.target
|