Create private vagrant box repository

For various reasons it may happen that the public Vagrant box repository should not be used. But Vagrant boxes should be available on the internal network. In addition, these boxes are to be versioned. With a few steps, this can be realized by Nginx.

Preparation

  • virtual machine fro Nginx created
  • Vagrant Base-Box created (see this example)

Nginx

Client

On your browser check following URL`s before proceeding: http://<target>/devops/vagrant/centos.json and http://<target>/devops/vagrant/boxes/

Nginx (Part 2)

Attention! I use for this demonstration the same box!

Client (Part 2)

You can add now more boxes with different JSON files!