push boxes to local web server instead of Atlas

56 views
Skip to first unread message

Edward Evans

unread,
Aug 15, 2016, 6:13:31 PM8/15/16
to Vagrant
I'm not sure correct place to post this is here or Packer but what we are wanting to do is create boxes and then push to local http server along with json metadata file then be able to vagrant init with the json file to get version support, etc.  Can this be done or has anyone done something similar?
Thanks

Alvaro Miranda Aguilera

unread,
Aug 16, 2016, 6:16:27 PM8/16/16
to vagra...@googlegroups.com
Hello,

Either mailing list fine since we can help.

Packer will build boxes either locally or atlas, and the boxes hosted in atlas will have version.
using packer push you will upload the template + scriopts to atlas, will build this for you. 
If you build locally, but use atlas post-provisioner, it will create the base box, provider, new version, and upload.

you can see a sample json here:

Note on this, you don't need atlas to do version, if you host that json file in a server on your network, and try to add that url, it will read the info from there.

Now, once you have the box, inside the box the metadata doesn't have version information, so you can:
- Create manually a box in atlas ( box -> provider -> version)
- Create a local hosted json like the one in https://atlas.hashicorp.com/hashicorp/boxes/precise64.json

So neither atlas, packer push, atlas build, etc is a hard requirement for versions.

Please let me know if you would like me to explain further in some areas, or if I leave anything unanswered.

Note on vagrant. There is a Vagrant push command, this wont do anything on boxes, it will create an artifact in hosted in atlas, that will be versioned, that you later can:

- Injest into packer build in atlas
- Download from atlas using curl + atlas_token for auth

Alvaro.

On Tue, Aug 16, 2016 at 12:13 AM, Edward Evans <ed.e...@gmail.com> wrote:
I'm not sure correct place to post this is here or Packer but what we are wanting to do is create boxes and then push to local http server along with json metadata file then be able to vagrant init with the json file to get version support, etc.  Can this be done or has anyone done something similar?
Thanks

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5a951e1c-60d0-49da-bcf9-3e62c4e90b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Edward Evans

unread,
Aug 17, 2016, 5:09:16 PM8/17/16
to Vagrant
I'm feeling extremely dense.  I have tried to follow the instructions at the following two locations and can't figure out what I'm doing wrong:

I get them setup as per instructions but can't browse to them from any other machine.  The issue might be I'm using HyperV.  I haven't been able to find a good tutorial on setting up webserver on ubuntu guest using HyperV.  I have several windows guests on the HyperV server that work without any issues.

I'm currently trying with the second link from ebmeierj and only issue is that the metadata files it produces assume virtualbox.  I'm trying to setup a system that will serve up boxes with both virtualbox and hyperv providers.


Reply all
Reply to author
Forward
0 new messages