Hi-Pupen: Hashicorp Vagrant 2.2.0 released!

Source: Internet
Author: User

OCT 17 2018? BRIAN CAIN

We is pleased to announce the release of Vagrant 2.2.0. Vagrant is a tool for building and distributing development environments. The highlight of this release are the introduction of Vagrant Cloud command line tool.

DOWNLOAD now

This release of Vagrant includes a handful of bugs fixes and improvements. Notable updates in this release include:

    • Vagrant Cloud integration with new? cloud ? Command
    • Core Vagrant trigger improvements supporting non-standard exit codes and a new? abort ? Option to halt a Vagrant run
    • Vagrant? upload ? command for easily transferring files to guests
    • Many Hyper-V and Docker provider improvements and bug fixes
Vagrant Cloud CLI

This release introduces a brand new Vagrant command,? cloud , which can is used to interact with? Vagrant cloudthrough the command line instead of a browser or HTTP. It comes with a variety of? cloud ? Subcommands, however this post would only cover a few highlights. If you ' d like to know more on this feature, check out the?documentation?for more information!

vagrant cloud search hashicorp --limit 5| NAME                    | VERSION | DOWNLOADS | PROVIDERS                       |+-------------------------+---------+-----------+---------------------------------+| hashicorp/precise64     | 1.1.0   | 6,689,515 | virtualbox,vmware_fusion,hyperv || hashicorp/precise32     | 1.0.0   | 2,264,067 | virtualbox                      || hashicorp/boot2docker   | 1.7.8   |    59,376 | vmware_desktop,virtualbox       || hashicorp/connect-vm    | 0.1.0   |     6,912 | vmware_desktop,virtualbox       || hashicorp/vagrant-share | 0.1.0   |     3,676 | vmware_desktop,virtualbox       |+-------------------------+---------+-----------+---------------------------------+

If You just want box names and is not interested in a formatted table, can I reduce the result with the? --short ? Flag

vagrant cloud search hashicorp --limit 5 --shorthashicorp/precise64hashicorp/precise32hashicorp/boot2dockerhashicorp/connect-vmhashicorp/vagrant-share

There is lots of ways to use the? search ? command with various filters to find the right box to use. Give it a try today!

Publish

So, have you ' ve built a new Vagrant box with? Packer?and want to share it with the world on Vagrant Cloud, but do you ' re not sure what to go about sharing the box file? The? publish ? Subcommand helps you through the process of creating and uploading a new box entry on Vagrant Cloud with a single command. Once invoked, it'll confirm the new box details before publishing to Vagrant Cloud.

Note that the? Progress ? Bar'll get removed after the box have finished uploading to Vagrant Cloud, but is left on for example sake for this blog Post.

Vagrant Cloud Publish Briancain/supertest 1.0.0 VirtualBox boxes/ubuntu-16.04.virtualbox.box--description "now with  More bits! "--version-description" a cool version "--release--short-description" more bits "what is about to publish a box     On Vagrant Cloud with the following options:briancain/supertest: (v1.0.0) for provider ' VirtualBox ' Automatic Release: Truebox Description:now with + polygonsbox short description:really shortversion description:a cool Versi Ondo wish to continue? [y/n] y==> cloud:creating a box entry...==> cloud:creating a version entry...==> cloud:creating a provider ent Ry ... ==> cloud:uploading provider with file/users/brian/code/vagrant_cloud/boxes/ubuntu-16.04.virtualbox.boxprogress : 14% (rate:6172k/s, estimated time remaining:0:01:10) ==> cloud:releasing box...complete!                 Published Briancain/supertesttag:briancain/supertestusername:briancainname:           Supertestprivate:   falsedownloads:0created_at:2018-09-26t21:03:15.737zupdated_at:2018-09-26t21:05:07.388            Zshort_description:more Bitsdescription_markdown:now with more bits!current_version:1.0.0providers: Virtualboxold_versions: ...

There is a lot more features this come along with the new? cloud ? command, so check it out today!

Vagrant Plugins

Vagrant now gives users the ability to define project specific plugins, that is required for a vagrantfile. Vagrant would require these plugins be installed and available for the project. If The plugins is not available, it'll attempt to automatically install them into the local project. When requiring a single plugin, a string can be provided:

config.vagrant.plugins = "vagrant-plugin"

If multiple plugins is required, they can be provided as an array:

config.vagrant.plugins = ["vagrant-plugin", "vagrant-other-plugin"]

Plugins can also is defined as a Hash, which supports setting extra options for the Plugins. When a Hash was used, the key is the name of the plugin, and the value is an options Hash for the plugin. For example, to set an explicit version of a plugin to install:

config.vagrant.plugins = {"vagrant-scp" => {"version" => "1.0.0"}}

More information about configuring your vagrantfile to install local plugins can is found on the?documentation?for Vagrant files!

Vagrant Upload

Vagrant now includes a new? upload ? Command. This command allows in the uploading of one-off files or directories from the host to a running guest. The upload command utilizes the underlying communicator configured for the target guest to provide support for uploading F Iles and directories.

vagrant upload test.rbUploading test.rb to test.rbUpload has completed successfully!  Source: test.rb  Destination: test.rb

The upload command also includes support for performing compression on the host prior to upload and automatic Decompressio N on the guest. This can is very useful when uploading large directories as it isn't only compresses the content to being uploaded but also red UCEs the number of uploaded items to one. For more information on the new Upload command, please refer to the?documentation.

Other improvements

The Vagrant 2.2.0 release also includes a number of other improvements and bug fixes. For a detailed list of all the changes in this release, see the? CHANGELOG.

Hi-Pupen: Hashicorp Vagrant 2.2.0 released!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.