Skip to content

rszabolcs/local_vagrant_box_hosting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sets up a nginx server which hosts vagrant boxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%