Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.1 KB

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.