Это возможно, имитируя то, что Vagrant ожидает от HashiCorp Atlas API. Создайте файл JSON, включая соответствующие метаданные блока, как указано в их документации по API (здесь на VagrantUp и здесь на Atlas):
{
"description": "A long description of your box.",
"short_description":"Short description",
"name": "yourname/boxname",
"versions": [
{
"version": "1.0.0",
"status":"revoked",
"description_html":null,
"description_markdown":null,
"created_at" : "2015-08-13T07:39:00.000Z",
"updated_at" : "2015-08-13T07:39:00.000Z",
"providers": [
{
"checksum": "foo",
"checksum_type": "md5",
"name": "virtualbox",
"url": "file:////192.168.1.1/Vagrant/ubuntu-14-04-x64-virtualbox-1.0.0.box"
}
]
},
{
"version": "1.1.0",
"status":"active",
"description_html":null,
"description_markdown":null,
"created_at" : "2015-08-15T19:05:00.000Z",
"updated_at" : "2015-08-15T19:05:00.000Z",
"providers": [
{
"checksum": "bar",
"checksum_type": "md5",
"name": "virtualbox",
"url": "file:////192.168.1.1/Vagrant/ubuntu-14-04-x64-virtualbox-1.1.0.box"
}
]
}
]
}
Сохраните его как boxname.json
(я не думаю, что это обязательно, но я считаю, что это соглашение Атласа). Затем просто назовите его от себя Vagrantfile
как таковой
# Enable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
config.vm.box_check_update = true
# The path to the box metadata file
config.vm.box = "yourname/boxname"
config.vm.box_url = "file://./boxname.json"
person
Joel B
schedule
16.08.2015