Ask Your Question
0

Where are the links to download puppetlabs vagrant box

asked 2015-08-12 07:56:40 -0500

dfroger gravatar image

Hello,

There is a list of vagrant box here: https://atlas.hashicorp.com/puppetlabs

That points for example here: https://atlas.hashicorp.com/puppetlab...

But where are the links to download the boxes?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-08-12 08:58:42 -0500

csharpsteen gravatar image

If the box name, puppetlabs/centos-5.11-64-nocm, is used in a Vagrantfile, then vagrant will automatically fetch the box when bringing a VM up that uses it.

To get a URL for manual box download, you will need to use the Atlas API:

curl -s https://atlas.hashicorp.com/api/v1/box/puppetlabs/centos-5.11-64-nocm/version/1.0.2 | python -m json.tool
{
    "created_at": "2015-07-29T15:32:18.312Z",
    "description_html": "<ul>\n<li>version 1.0.2, see the <a href=\"https://github.com/puppetlabs/puppetlabs-packer/tree/master/templates/centos-5.11/CHANGELOG\">changelog</a> for details</li>\n</ul>\n",
    "description_markdown": "\n* version 1.0.2, see the [changelog](https://github.com/puppetlabs/puppetlabs-packer/tree/master/templates/centos-5.11/CHANGELOG) for details\n ",
    "number": "1.0.2",
    "providers": [
        {
            "created_at": "2015-07-29T15:32:19.356Z",
            "download_url": "https://atlas.hashicorp.com/puppetlabs/boxes/centos-5.11-64-nocm/versions/1.0.2/providers/vmware_fusion.box",
            "hosted": false,
            "hosted_token": null,
            "name": "vmware_fusion",
            "original_url": "https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-5.11-x86_64-vmware-nocm-1.0.2.box",
            "updated_at": "2015-08-12T04:45:51.188Z"
        },
        {
            "created_at": "2015-07-29T15:32:18.971Z",
            "download_url": "https://atlas.hashicorp.com/puppetlabs/boxes/centos-5.11-64-nocm/versions/1.0.2/providers/vmware_desktop.box",
            "hosted": false,
            "hosted_token": null,
            "name": "vmware_desktop",
            "original_url": "https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-5.11-x86_64-vmware-nocm-1.0.2.box",
            "updated_at": "2015-08-12T04:45:51.219Z"
        },
        {
            "created_at": "2015-07-29T15:32:18.616Z",
            "download_url": "https://atlas.hashicorp.com/puppetlabs/boxes/centos-5.11-64-nocm/versions/1.0.2/providers/virtualbox.box",
            "hosted": false,
            "hosted_token": null,
            "name": "virtualbox",
            "original_url": "https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-5.11-x86_64-virtualbox-nocm-1.0.2.box",
            "updated_at": "2015-08-12T04:45:51.184Z"
        }
    ],
    "release_url": "https://atlas.hashicorp.com/api/v1/box/puppetlabs/centos-5.11-64-nocm/version/1.0.2/release",
    "revoke_url": "https://atlas.hashicorp.com/api/v1/box/puppetlabs/centos-5.11-64-nocm/version/1.0.2/revoke",
    "status": "active",
    "updated_at": "2015-08-12T04:45:51.227Z",
    "version": "1.0.2"
}
edit flag offensive delete link more

Comments

Thanks. With the last vagrant version (1.7.4), it works. With vagrant provided by Ubuntu 14.04 (1.4.3-1), vagrant can't fetch the box. (The box 'puppetlabs/centos-5.11-64-nocm' could not be found.)

dfroger gravatar imagedfroger ( 2015-08-12 09:56:15 -0500 )edit

Ahh, yes. The ability to automatically download boxes from Atlas was added in Vagrant 1.5.0.

csharpsteen gravatar imagecsharpsteen ( 2015-08-12 12:17:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-08-12 07:56:40 -0500

Seen: 1,117 times

Last updated: Aug 12 '15