Connect Vagrant to Artifactory

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

If your Vagrant repository requires authentication, you need to set environment variables to connect your Vagrant client to Artifactory.

Prerequisite: Before connecting Vagrant to Artifactory, you must have an existing Vagrant repository in Artifactory. For more information, see Create a Vagrant Repository.

Logged in vs. Anonymous User: You can work with Vagrant and Artifactory as a logged-in user or anonymously. To work with Artifactory using Anonymous Access, configure that access under Admin | Security | General. For details, refer to Allow Anonymous Access.Allow Anonymous Access

To connect Vagrant to Artifactory:

Run the following commands to set the ATLAS_TOKEN and VAGRANT_SERVER_URL environment tokens:

export ATLAS_TOKEN=<AUTH>
export VAGRANT_SERVER_URL=https://[JFrogPlatformURL]/artifactory/api/vagrant/<REPO_NAME>

Where:

  • <AUTH>: Your Artifactory identity token

  • [JFrogPlatformURL]: The URL of your JPD

  • <REPO_NAME>: The name of the target repository

For example:

export ATLAS_TOKEN=51HnvD0A1g2q3n4b5F6g7H8j9K0l1m2N3o4P5q6R7s8T9u0V1w2X3y4
export VAGRANT_SERVER_URL=https://company.jfrog.io/artifactory/api/vagrant/vagrant-local

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

Next steps: