Sets up a nginx server which hosts vagrant boxes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf.d
html/vagrant
.env
.gitignore
README.md
generate_manifests.sh
init.sh
restart.sh
start.sh
stop.sh

README.md

Hosting vagrant boxes

Sets up an nginx server which hosts vagrant boxes

Requirements

Usage

First time

  • Clone the repo.
  • Put your box file(s) in the appropriate directories (See changeme example).
  • Boxes must be named <box_name>_<version>.box (e.g. foo_1.0.box)
  • Run init.sh

Box changes

  • Put your box file(s) in the appropriate directories (See changeme example).
  • Run generate_manifests.sh

Vagrant box url

  • The vm box should be named the same as the folder you put the box file into
  • The vm box url should be set to the url of the folder

config.vm.box = "changeme"

config.vm.box_url = "http://example.com:1234/vagrant/changeme"

Configuration

  • You may specify an alternate hostname/port in the .env file in the project root.
  • Host defaults to hostname --fqdn
  • Port defaults to 1234

Thanks to https://github.com/hollodotme/Helpers/blob/master/Tutorials/vagrant/self-hosted-vagrant-boxes-with-versioning.md#5-hosting for the walkthrough.