Deploy a Vagrant Package Using Matrix Parameters

JFrog Artifactory Documentation

ft:sourceType
Paligo

You can also deploy Vagrant boxes to Artifactory with an explicit URL using Matrix Parameters.

The URL is built similarly to the Target Path format as follows:

Deploying a package using Matrix Parameters

PUT "http://{Artifactory URL}/{vagrantRepoKey}/{vagrantBoxName.box};box_name={name};box_provider={provider};box_version={version}" 

For example, to upload the box precise64-virtualbox-1.0.0.box, and specify that it's name is precise64, with a provider of virtualbox and the version is 1.0.0, you would enter:

Example

PUT "http://localhost:8080/artifactory/vagrant-local/precise64-virtualbox-1.0.0.box;box_name=precise64;box_provider=virtualbox;box_version=1.0.0"
Setting the Target Path for Vagrant

The Target Path can be anywhere in the repository, but it has to contain the 3 mandatory matrix parameters: box_name, box_provider and box_version and the file name must end with .box. The format is as follows:

Target Path Format

PUT "http://{Artifactory URL}/{vagrantRepoKey}/{path/to/vagrantBoxName.box};box_name=[name];box_provider=[provider];box_version=[version]"

Parameter

Description

name

The value to assign to the box_name property used to specify the Vagrant box name.

provider

The value to assign to the box _provider property used to specify the Vagrant box provider (virtualbox/lxc or others).

version

The value to assign to the box_version property used to specify the Vagrant box version (must comply with Vagrant's versioning schema)