Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

The Vagrant plugin integrates Packer with HashiCorp Vagrant, allowing you to use Packer to create development boxes.

Installation

To install this plugin add this code into your Packer configuration and run packer init

packer {
  required_plugins {
    vagrant = {
      version = "~> 1"
      source = "github.com/hashicorp/vagrant"
    }
  }
}

Alternatively, you can use packer plugins install to manage installation of this plugin.

packer plugins install github.com/hashicorp/vagrant

Note: Update to Packer Plugin Installation

With the new Packer release starting from version 1.14.0, the packer init command will automatically install official plugins from the HashiCorp release site.

Going forward, to use newer versions of official Packer plugins, you'll need to upgrade to Packer version 1.14.0 or later. If you're using an older version, you can still install plugins, but as a workaround, you'll need to manually install them using the CLI.

There is no change to the syntax or commands for installing plugins.

Components

Builders

  • vagrant - The Vagrant builder is intended for building new boxes from already-existing boxes.

Post-Processor

  • vagrant - The Packer Vagrant post-processor takes a build and converts the artifact into a valid Vagrant box.
  • vagrant-cloud - The Vagrant Cloud post-processor enables the upload of Vagrant boxes to Vagrant Cloud.
  • vagrant-registry - The Vagrant Registry post-processor enables the upload of Vagrant boxes to HCP Vagrant Box Registry.