Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Starbuck: HashiCorp Vagrant 2.2.0 release!

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

OCT 17 2018 BRIAN CAIN

We are 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 is the introduction of Vagrant Cloud command line tool.

DOWNLOAD NOW

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

Vagrant Cloud integration with new cloud commandCore Vagrant trigger improvements supporting non-standard exit codes anda new abort option to halt a Vagrant runVagrant upload command for easily transferring files to guestsMany Hyper-V and Docker provider improvements and bug fixesVagrant Cloud CLI

This release introduces a brand new Vagrant command, cloud, which can be 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 will only cover a few highlights. If you'd like to know more about this feature, check out the documentation for more information!

Vagrant cloud search hashicorp-- limit 5 | NAME | VERSION | DOWNLOADS | PROVIDERS | +-- + | hashicorp/ Precise64 | 1.1.0 | 6689515 | virtualbox Vmware_fusion,hyperv | | hashicorp/precise32 | 1.0.0 | 2264067 | virtualbox | | hashicorp/boot2docker | 1.7.8 | 59376 | vmware_desktop,virtualbox | | hashicorp/connect-vm | 0.1 | 6912 | vmware_desktop,virtualbox | | hashicorp/vagrant-share | 0.1.0 | 3676 | vmware_desktop Virtualbox | +-- +

If you just want box names and are not interested in a formatted table, you can reduce the result with the-- short flag:

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

There are 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, you've built a new Vagrant box with Packer and want to share it with the world on Vagrant Cloud, but you're not sure how 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 will confirm the new box details before publishing to Vagrant Cloud.

Note that the Progress bar will get removed after the box has finished uploading to Vagrant Cloud, but was left in 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" You are 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 more polygonsBox Short Description: Really shortVersion Description: A cool versionDo you wish to continue? Cloud: Creating a box entry...== > cloud: Creating a version entry...== > cloud: Creating a provider entry...== > 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.388Zshort_description: More bitsdescription_markdown: Now with more bitsThe currentproof version: 1.0.0providers: Virtualboxold_versions:...

There are a lot more features that 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 are required for a Vagrantfile. Vagrant will require these plugins be installed and available for the project. If the plugins are not available, it will 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 are required, they can be provided as an array:

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

Plugins can also be defined as a Hash, which supports setting extra options for the plugins. When a Hash is 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 be found on the documentation for Vagrantfiles!

Vagrant Upload

Vagrant now includes a new upload command. This command allows for easy 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 files 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 decompression on the guest. This can be very useful when uploading large directories as it not only compresses the content to be uploaded but also reduces the number of uploaded items to one. For more information about 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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report