If you need to access a secured Artifactory server that requires a username and password, you need to specify 2 environment variables:
ATLAS_TOKEN
This token is a Base64 encoded string of the user credentials (formatted
username:password
).From Artifactory 7.25.7, you will need to create an Access Token via the JFrog Platform UI and use that token to authorize Vagrant access.
VAGRANT_SERVER_URL - The base URL for the Artifactory server.
Setting ATLAS_TOKEN and VAGRANT_SERVER_URL
export ATLAS_TOKEN={token} export VAGRANT_SERVER_URL=http://{Artifactory URL}/api/vagrant/{vagrantRepoKey} For example: export ATLAS_TOKEN=YWRtaW46QVAzWGhzWmlDU29NVmtaQ2dCZEY3XXXXXXXX export VAGRANT_SERVER_URL=http://localhost:8081/api/vagrant/vagrant-local
Both environment variables are required
When using Artifactory with authenticated access (i.e. anonymous access is disabled), both of these environment variables are required. If either of them is not set, the Vagrant client will not be able to access Artifactory and a 401 error message will be generated.