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
@@ -42,20 +42,36 @@ module VagrantPlugins
|
|
42
42
|
def chown_provisioning_folder
|
43
43
|
@machine.communicate.tap do |comm|
|
44
44
|
comm.sudo("mkdir -p #{@config.provisioning_path}")
|
45
|
-
comm.sudo("chown
|
45
|
+
comm.sudo("chown #{@machine.ssh_info[:username]} #{@config.provisioning_path}")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
def setup_config(template, filename, template_vars)
|
50
|
+
# If we have custom configuration, upload it
|
51
|
+
remote_custom_config_path = nil
|
52
|
+
if @config.custom_config_path
|
53
|
+
expanded = File.expand_path(
|
54
|
+
@config.custom_config_path, @machine.env.root_path)
|
55
|
+
remote_custom_config_path = File.join(
|
56
|
+
config.provisioning_path, "custom-config.rb")
|
57
|
+
|
58
|
+
@machine.communicate.upload(expanded, remote_custom_config_path)
|
59
|
+
end
|
60
|
+
|
50
61
|
config_file = Vagrant::Util::TemplateRenderer.render(template, {
|
62
|
+
:custom_configuration => remote_custom_config_path,
|
63
|
+
:file_cache_path => @config.file_cache_path,
|
64
|
+
:file_backup_path => @config.file_backup_path,
|
51
65
|
:log_level => @config.log_level.to_sym,
|
66
|
+
:verbose_logging => @config.verbose_logging,
|
52
67
|
:http_proxy => @config.http_proxy,
|
53
68
|
:http_proxy_user => @config.http_proxy_user,
|
54
69
|
:http_proxy_pass => @config.http_proxy_pass,
|
55
70
|
:https_proxy => @config.https_proxy,
|
56
71
|
:https_proxy_user => @config.https_proxy_user,
|
57
72
|
:https_proxy_pass => @config.https_proxy_pass,
|
58
|
-
:no_proxy => @config.no_proxy
|
73
|
+
:no_proxy => @config.no_proxy,
|
74
|
+
:formatter => @config.formatter
|
59
75
|
}.merge(template_vars))
|
60
76
|
|
61
77
|
# Create a temporary file to store the data so we
|
@@ -85,7 +101,11 @@ module VagrantPlugins
|
|
85
101
|
temp.write(json)
|
86
102
|
temp.close
|
87
103
|
|
88
|
-
|
104
|
+
remote_file = File.join(@config.provisioning_path, "dna.json")
|
105
|
+
@machine.communicate.tap do |comm|
|
106
|
+
comm.sudo("rm #{remote_file}", :error_check => false)
|
107
|
+
comm.upload(temp.path, remote_file)
|
108
|
+
end
|
89
109
|
end
|
90
110
|
end
|
91
111
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require 'vagrant/util/subprocess'
|
2
3
|
|
3
4
|
require File.expand_path("../base", __FILE__)
|
4
5
|
|
@@ -25,6 +26,11 @@ module VagrantPlugins
|
|
25
26
|
run_chef_client
|
26
27
|
end
|
27
28
|
|
29
|
+
def cleanup
|
30
|
+
delete_from_chef_server('client') if config.delete_client
|
31
|
+
delete_from_chef_server('node') if config.delete_node
|
32
|
+
end
|
33
|
+
|
28
34
|
def create_client_key_folder
|
29
35
|
@machine.env.ui.info I18n.t("vagrant.provisioners.chef.client_key_folder")
|
30
36
|
path = Pathname.new(@config.client_key_path)
|
@@ -50,8 +56,6 @@ module VagrantPlugins
|
|
50
56
|
:validation_client_name => @config.validation_client_name,
|
51
57
|
:validation_key => guest_validation_key_path,
|
52
58
|
:client_key => @config.client_key_path,
|
53
|
-
:file_cache_path => @config.file_cache_path,
|
54
|
-
:file_backup_path => @config.file_backup_path,
|
55
59
|
:environment => @config.environment,
|
56
60
|
:encrypted_data_bag_secret => @config.encrypted_data_bag_secret
|
57
61
|
})
|
@@ -76,10 +80,8 @@ module VagrantPlugins
|
|
76
80
|
exit_status = @machine.communicate.sudo(command, :error_check => false) do |type, data|
|
77
81
|
# Output the data with the proper color based on the stream.
|
78
82
|
color = type == :stdout ? :green : :red
|
79
|
-
|
80
|
-
|
81
|
-
# Chef outputs.
|
82
|
-
@machine.env.ui.info(data.chomp, :color => color, :prefix => false)
|
83
|
+
@machine.env.ui.info(
|
84
|
+
data, :color => color, :new_line => false, :prefix => false)
|
83
85
|
end
|
84
86
|
|
85
87
|
# There is no need to run Chef again if it converges
|
@@ -101,6 +103,23 @@ module VagrantPlugins
|
|
101
103
|
def guest_validation_key_path
|
102
104
|
File.join(@config.provisioning_path, "validation.pem")
|
103
105
|
end
|
106
|
+
|
107
|
+
def delete_from_chef_server(deletable)
|
108
|
+
node_name = config.node_name || env[:vm].config.vm.host_name
|
109
|
+
env[:ui].info(I18n.t(
|
110
|
+
"vagrant.provisioners.chef.deleting_from_server",
|
111
|
+
deletable: deletable, name: node_name))
|
112
|
+
|
113
|
+
command = ["knife", deletable, "delete", "--yes", node_name]
|
114
|
+
r = Vagrant::Util::Subprocess.execute(*command)
|
115
|
+
if r.exit_code != 0
|
116
|
+
env[:ui].error(I18n.t(
|
117
|
+
"vagrant.chef_client_cleanup_failed",
|
118
|
+
deletable: deletable,
|
119
|
+
stdout: r.stdout,
|
120
|
+
stderr: r.stderr))
|
121
|
+
end
|
122
|
+
end
|
104
123
|
end
|
105
124
|
end
|
106
125
|
end
|
@@ -11,7 +11,7 @@ module VagrantPlugins
|
|
11
11
|
class ChefSolo < Base
|
12
12
|
extend Vagrant::Util::Counter
|
13
13
|
include Vagrant::Util::Counter
|
14
|
-
|
14
|
+
attr_reader :environments_folders
|
15
15
|
attr_reader :cookbook_folders
|
16
16
|
attr_reader :role_folders
|
17
17
|
attr_reader :data_bags_folders
|
@@ -25,16 +25,18 @@ module VagrantPlugins
|
|
25
25
|
@cookbook_folders = expanded_folders(@config.cookbooks_path, "cookbooks")
|
26
26
|
@role_folders = expanded_folders(@config.roles_path, "roles")
|
27
27
|
@data_bags_folders = expanded_folders(@config.data_bags_path, "data_bags")
|
28
|
+
@environments_folders = expanded_folders(@config.environments_path, "environments")
|
28
29
|
|
29
30
|
share_folders(root_config, "csc", @cookbook_folders)
|
30
31
|
share_folders(root_config, "csr", @role_folders)
|
31
32
|
share_folders(root_config, "csdb", @data_bags_folders)
|
33
|
+
share_folders(root_config, "cse", @environments_folders)
|
32
34
|
end
|
33
35
|
|
34
36
|
def provision
|
35
37
|
# Verify that the proper shared folders exist.
|
36
38
|
check = []
|
37
|
-
[@cookbook_folders, @role_folders, @data_bags_folders].each do |folders|
|
39
|
+
[@cookbook_folders, @role_folders, @data_bags_folders, @environments_folders].each do |folders|
|
38
40
|
folders.each do |type, local_path, remote_path|
|
39
41
|
# We only care about checking folders that have a local path, meaning
|
40
42
|
# they were shared from the local machine, rather than assumed to
|
@@ -43,10 +45,9 @@ module VagrantPlugins
|
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
48
|
+
chown_provisioning_folder
|
46
49
|
verify_shared_folders(check)
|
47
|
-
|
48
50
|
verify_binary(chef_binary_path("chef-solo"))
|
49
|
-
chown_provisioning_folder
|
50
51
|
upload_encrypted_data_bag_secret if @config.encrypted_data_bag_secret_key_path
|
51
52
|
setup_json
|
52
53
|
setup_solo_config
|
@@ -114,23 +115,27 @@ module VagrantPlugins
|
|
114
115
|
|
115
116
|
def upload_encrypted_data_bag_secret
|
116
117
|
@machine.env.ui.info I18n.t("vagrant.provisioners.chef.upload_encrypted_data_bag_secret_key")
|
117
|
-
@machine.communicate.
|
118
|
-
|
118
|
+
@machine.communicate.tap do |comm|
|
119
|
+
comm.sudo("rm #{@config.encrypted_data_bag_secret}", :error_check => false)
|
120
|
+
comm.upload(encrypted_data_bag_secret_key_path,
|
121
|
+
@config.encrypted_data_bag_secret)
|
122
|
+
end
|
119
123
|
end
|
120
124
|
|
121
125
|
def setup_solo_config
|
122
126
|
cookbooks_path = guest_paths(@cookbook_folders)
|
123
127
|
roles_path = guest_paths(@role_folders).first
|
124
128
|
data_bags_path = guest_paths(@data_bags_folders).first
|
125
|
-
|
129
|
+
environments_path = guest_paths(@environments_folders).first
|
126
130
|
setup_config("provisioners/chef_solo/solo", "solo.rb", {
|
127
131
|
:node_name => @config.node_name,
|
128
|
-
:provisioning_path => @config.provisioning_path,
|
129
132
|
:cookbooks_path => cookbooks_path,
|
130
133
|
:recipe_url => @config.recipe_url,
|
131
134
|
:roles_path => roles_path,
|
132
135
|
:data_bags_path => data_bags_path,
|
133
136
|
:encrypted_data_bag_secret => @config.encrypted_data_bag_secret,
|
137
|
+
:environments_path => environments_path,
|
138
|
+
:environment => @config.environment,
|
134
139
|
})
|
135
140
|
end
|
136
141
|
|
@@ -153,10 +158,8 @@ module VagrantPlugins
|
|
153
158
|
exit_status = @machine.communicate.sudo(command, :error_check => false) do |type, data|
|
154
159
|
# Output the data with the proper color based on the stream.
|
155
160
|
color = type == :stdout ? :green : :red
|
156
|
-
|
157
|
-
|
158
|
-
# Chef outputs.
|
159
|
-
@machine.env.ui.info(data.chomp, :color => color, :prefix => false)
|
161
|
+
@machine.env.ui.info(
|
162
|
+
data, :color => color, :new_line => false, :prefix => false)
|
160
163
|
end
|
161
164
|
|
162
165
|
# There is no need to run Chef again if it converges
|
@@ -170,7 +173,7 @@ module VagrantPlugins
|
|
170
173
|
def verify_shared_folders(folders)
|
171
174
|
folders.each do |folder|
|
172
175
|
@logger.debug("Checking for shared folder: #{folder}")
|
173
|
-
if !@machine.communicate.test("test -d #{folder}")
|
176
|
+
if !@machine.communicate.test("test -d #{folder}", sudo: true)
|
174
177
|
raise ChefError, :missing_shared_folders
|
175
178
|
end
|
176
179
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module FileUpload
|
5
|
+
class Config < Vagrant.plugin("2", :config)
|
6
|
+
attr_accessor :source
|
7
|
+
attr_accessor :destination
|
8
|
+
|
9
|
+
def validate(machine)
|
10
|
+
errors = _detected_errors
|
11
|
+
if !source
|
12
|
+
errors << I18n.t("vagrant.provisioners.file.no_source_file")
|
13
|
+
end
|
14
|
+
if !destination
|
15
|
+
errors << I18n.t("vagrant.provisioners.file.no_dest_file")
|
16
|
+
end
|
17
|
+
if source
|
18
|
+
s = File.expand_path(source)
|
19
|
+
if ! File.exist?(s)
|
20
|
+
errors << I18n.t("vagrant.provisioners.file.path_invalid",
|
21
|
+
:path => s)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
{ "File provisioner" => errors }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "vagrant"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module FileUpload
|
5
|
+
class Plugin < Vagrant.plugin("2")
|
6
|
+
name "file"
|
7
|
+
description <<-DESC
|
8
|
+
Provides support for provisioning your virtual machines with
|
9
|
+
uploaded files.
|
10
|
+
DESC
|
11
|
+
|
12
|
+
config(:file, :provisioner) do
|
13
|
+
require File.expand_path("../config", __FILE__)
|
14
|
+
Config
|
15
|
+
end
|
16
|
+
|
17
|
+
provisioner(:file) do
|
18
|
+
require File.expand_path("../provisioner", __FILE__)
|
19
|
+
Provisioner
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module FileUpload
|
3
|
+
class Provisioner < Vagrant.plugin("2", :provisioner)
|
4
|
+
def provision
|
5
|
+
@machine.communicate.tap do |comm|
|
6
|
+
# Make sure the remote path exists
|
7
|
+
command = "mkdir -p %s" % File.dirname(config.destination)
|
8
|
+
comm.execute(command)
|
9
|
+
|
10
|
+
# now upload the file
|
11
|
+
comm.upload(File.expand_path(config.source), config.destination)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -10,6 +10,7 @@ module VagrantPlugins
|
|
10
10
|
attr_accessor :options
|
11
11
|
attr_accessor :temp_dir
|
12
12
|
attr_accessor :working_directory
|
13
|
+
attr_accessor :nfs
|
13
14
|
|
14
15
|
def initialize
|
15
16
|
super
|
@@ -22,6 +23,7 @@ module VagrantPlugins
|
|
22
23
|
@facter = {}
|
23
24
|
@temp_dir = UNSET_VALUE
|
24
25
|
@working_directory = UNSET_VALUE
|
26
|
+
@nfs = UNSET_VALUE
|
25
27
|
end
|
26
28
|
|
27
29
|
def finalize!
|
@@ -33,6 +35,7 @@ module VagrantPlugins
|
|
33
35
|
@module_path = nil if @module_path == UNSET_VALUE
|
34
36
|
@temp_dir = "/tmp/vagrant-puppet" if @temp_dir == UNSET_VALUE
|
35
37
|
@working_directory = nil if @working_directory == UNSET_VALUE
|
38
|
+
@nfs = false if @nfs == UNSET_VALUE
|
36
39
|
end
|
37
40
|
|
38
41
|
# Returns the manifests path expanded relative to the root path of the
|
@@ -56,7 +59,7 @@ module VagrantPlugins
|
|
56
59
|
end
|
57
60
|
|
58
61
|
def validate(machine)
|
59
|
-
errors =
|
62
|
+
errors = _detected_errors
|
60
63
|
|
61
64
|
# Calculate the manifests and module paths based on env
|
62
65
|
this_expanded_manifests_path = expanded_manifests_path(machine.env.root_path)
|
@@ -27,17 +27,17 @@ module VagrantPlugins
|
|
27
27
|
@module_paths << [path, File.join(config.temp_dir, "modules-#{i}")]
|
28
28
|
end
|
29
29
|
|
30
|
+
folder_opts = {}
|
31
|
+
folder_opts[:nfs] = true if @config.nfs
|
32
|
+
folder_opts[:owner] = "root" if !folder_opts[:nfs]
|
33
|
+
|
30
34
|
# Share the manifests directory with the guest
|
31
35
|
root_config.vm.synced_folder(
|
32
|
-
@expanded_manifests_path, manifests_guest_path)
|
36
|
+
@expanded_manifests_path, manifests_guest_path, folder_opts)
|
33
37
|
|
34
38
|
# Share the module paths
|
35
|
-
count = 0
|
36
39
|
@module_paths.each do |from, to|
|
37
|
-
|
38
|
-
# maximum size for it and its something small (around 10)
|
39
|
-
root_config.vm.synced_folder(from, to)
|
40
|
-
count += 1
|
40
|
+
root_config.vm.synced_folder(from, to, folder_opts)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -97,6 +97,11 @@ module VagrantPlugins
|
|
97
97
|
options << "--hiera_config=#{@hiera_config_path}"
|
98
98
|
end
|
99
99
|
|
100
|
+
if !@machine.env.ui.is_a?(Vagrant::UI::Colored)
|
101
|
+
options << "--color=false"
|
102
|
+
end
|
103
|
+
|
104
|
+
options << "--manifestdir #{manifests_guest_path}"
|
100
105
|
options << "--detailed-exitcodes"
|
101
106
|
options << @manifest_file
|
102
107
|
options = options.join(" ")
|
@@ -121,15 +126,16 @@ module VagrantPlugins
|
|
121
126
|
:manifest => config.manifest_file)
|
122
127
|
|
123
128
|
@machine.communicate.sudo(command) do |type, data|
|
124
|
-
data.
|
125
|
-
|
129
|
+
if !data.empty?
|
130
|
+
@machine.env.ui.info(data, :new_line => false, :prefix => false)
|
131
|
+
end
|
126
132
|
end
|
127
133
|
end
|
128
134
|
|
129
135
|
def verify_shared_folders(folders)
|
130
136
|
folders.each do |folder|
|
131
137
|
@logger.debug("Checking for shared folder: #{folder}")
|
132
|
-
if !@machine.communicate.test("test -d #{folder}")
|
138
|
+
if !@machine.communicate.test("test -d #{folder}", sudo: true)
|
133
139
|
raise PuppetError, :missing_shared_folders
|
134
140
|
end
|
135
141
|
end
|
@@ -40,6 +40,12 @@ module VagrantPlugins
|
|
40
40
|
|
41
41
|
# Add the certname option if there is one
|
42
42
|
options += ["--certname", cn] if cn
|
43
|
+
|
44
|
+
# Disable colors if we must
|
45
|
+
if !@machine.env.ui.is_a?(Vagrant::UI::Colored)
|
46
|
+
options << "--color=false"
|
47
|
+
end
|
48
|
+
|
43
49
|
options = options.join(" ")
|
44
50
|
|
45
51
|
# Build up the custom facts if we have any
|
@@ -57,8 +63,9 @@ module VagrantPlugins
|
|
57
63
|
|
58
64
|
@machine.env.ui.info I18n.t("vagrant.provisioners.puppet_server.running_puppetd")
|
59
65
|
@machine.communicate.sudo(command) do |type, data|
|
60
|
-
data.
|
61
|
-
|
66
|
+
if !data.empty?
|
67
|
+
@machine.env.ui.info(data, :new_line => false, :prefix => false)
|
68
|
+
end
|
62
69
|
end
|
63
70
|
end
|
64
71
|
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
require "i18n"
|
2
|
+
require "vagrant"
|
3
|
+
|
4
|
+
module VagrantPlugins
|
5
|
+
module Salt
|
6
|
+
class Config < Vagrant.plugin("2", :config)
|
7
|
+
|
8
|
+
## salty-vagrant options
|
9
|
+
attr_accessor :minion_config
|
10
|
+
attr_accessor :minion_key
|
11
|
+
attr_accessor :minion_pub
|
12
|
+
attr_accessor :master_config
|
13
|
+
attr_accessor :master_key
|
14
|
+
attr_accessor :master_pub
|
15
|
+
attr_accessor :run_highstate
|
16
|
+
attr_accessor :always_install
|
17
|
+
attr_accessor :bootstrap_script
|
18
|
+
attr_accessor :verbose
|
19
|
+
attr_accessor :seed_master
|
20
|
+
attr_reader :pillar_data
|
21
|
+
|
22
|
+
## bootstrap options
|
23
|
+
attr_accessor :temp_config_dir
|
24
|
+
attr_accessor :install_type
|
25
|
+
attr_accessor :install_args
|
26
|
+
attr_accessor :install_master
|
27
|
+
attr_accessor :install_syndic
|
28
|
+
attr_accessor :no_minion
|
29
|
+
attr_accessor :bootstrap_options
|
30
|
+
|
31
|
+
def initialize
|
32
|
+
@minion_config = UNSET_VALUE
|
33
|
+
@minion_key = UNSET_VALUE
|
34
|
+
@minion_pub = UNSET_VALUE
|
35
|
+
@master_config = UNSET_VALUE
|
36
|
+
@master_key = UNSET_VALUE
|
37
|
+
@master_pub = UNSET_VALUE
|
38
|
+
@run_highstate = UNSET_VALUE
|
39
|
+
@always_install = UNSET_VALUE
|
40
|
+
@bootstrap_script = UNSET_VALUE
|
41
|
+
@verbose = UNSET_VALUE
|
42
|
+
@seed_master = UNSET_VALUE
|
43
|
+
@pillar_data = UNSET_VALUE
|
44
|
+
@temp_config_dir = UNSET_VALUE
|
45
|
+
@install_type = UNSET_VALUE
|
46
|
+
@install_args = UNSET_VALUE
|
47
|
+
@install_master = UNSET_VALUE
|
48
|
+
@install_syndic = UNSET_VALUE
|
49
|
+
@no_minion = UNSET_VALUE
|
50
|
+
@bootstrap_options = UNSET_VALUE
|
51
|
+
end
|
52
|
+
|
53
|
+
def finalize!
|
54
|
+
@minion_config = nil if @minion_config == UNSET_VALUE
|
55
|
+
@minion_key = nil if @minion_key == UNSET_VALUE
|
56
|
+
@minion_pub = nil if @minion_pub == UNSET_VALUE
|
57
|
+
@master_config = nil if @master_config == UNSET_VALUE
|
58
|
+
@master_key = nil if @master_key == UNSET_VALUE
|
59
|
+
@master_pub = nil if @master_pub == UNSET_VALUE
|
60
|
+
@run_highstate = nil if @run_highstate == UNSET_VALUE
|
61
|
+
@always_install = nil if @always_install == UNSET_VALUE
|
62
|
+
@bootstrap_script = nil if @bootstrap_script == UNSET_VALUE
|
63
|
+
@verbose = nil if @verbose == UNSET_VALUE
|
64
|
+
@seed_master = nil if @seed_master == UNSET_VALUE
|
65
|
+
@pillar_data = {} if @pillar_data == UNSET_VALUE
|
66
|
+
@temp_config_dir = nil if @temp_config_dir == UNSET_VALUE
|
67
|
+
@install_type = nil if @install_type == UNSET_VALUE
|
68
|
+
@install_args = nil if @install_args == UNSET_VALUE
|
69
|
+
@install_master = nil if @install_master == UNSET_VALUE
|
70
|
+
@install_syndic = nil if @install_syndic == UNSET_VALUE
|
71
|
+
@no_minion = nil if @no_minion == UNSET_VALUE
|
72
|
+
@bootstrap_options = nil if @bootstrap_options == UNSET_VALUE
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
def pillar(data)
|
77
|
+
@pillar_data = {} if @pillar_data == UNSET_VALUE
|
78
|
+
@pillar_data.deep_merge!(data)
|
79
|
+
end
|
80
|
+
|
81
|
+
def validate(machine)
|
82
|
+
errors = _detected_errors
|
83
|
+
if @minion_key || @minion_pub
|
84
|
+
if !@minion_key || !@minion_pub
|
85
|
+
errors << @minion_pub
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
if @master_key && @master_pub
|
90
|
+
if !@minion_key && !@minion_pub
|
91
|
+
errors << I18n.t("salt.missing_key")
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
if @install_master && !@no_minion && !@seed_master && @run_highstate
|
96
|
+
errors << I18n.t("salt.must_accept_keys")
|
97
|
+
end
|
98
|
+
|
99
|
+
return {"salt" => errors}
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|