Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tknerr/vagrant-baseboxes
Veewee Definitions and Rakefile for building Vagrant Baseboxes
https://github.com/tknerr/vagrant-baseboxes
Last synced: about 1 month ago
JSON representation
Veewee Definitions and Rakefile for building Vagrant Baseboxes
- Host: GitHub
- URL: https://github.com/tknerr/vagrant-baseboxes
- Owner: tknerr
- Created: 2012-05-18T07:37:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-29T23:10:49.000Z (over 11 years ago)
- Last Synced: 2023-03-23T00:22:28.316Z (almost 2 years ago)
- Language: Ruby
- Size: 129 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Veewee Basebox Definitions
Some Veewee based basebox definitions for building 'Vagrant' baseboxes and 'Bare OS' baseboxes.
* 'Vagrant' baseboxes already contain Ruby, Gems, Chef, Puppet and VirtualBox Guest Additions and are for development on your local machine when using Vagrant.
* 'Bare OS' baseboxes contain nothing but the bare operating system and can be used for bootstrapping with `knife bootrap`The two kinds of baseboxes are built from the same Veewee definition. This is achieved by templating the `definitions//postinstall.sh.erb` file and conditionally including either `common/custom-install-commands-bare-os.sh.erb` or `custom-install-commands-vagrant.sh.erb`.
See also:
* https://github.com/jedi4ever/veewee
* http://vagrantup.com/docs/base_boxes.html# Usage
Install dependencies using bundler, then build all definitions with the `:build` task (this might take a while):
```
bundle install
rake build
```
# Adding Veewee DefinitionsTake a look at the pre-defined templates that come with Veewee:
```
veewee vbox templates
```Pick one of the pre-defined templates and add it to the definitions directory, e.g.:
```
veewee vbox define 'my-ubuntu-12.04' 'ubuntu-12.04-server-amd64'
```Then rename `definitions/my-ubuntu-12.04/postinstall.sh` to `postinstall.sh.erb` and replace the code which installs gems, ruby, chef and puppet with this:
```
# custom install commands for either bare-os or vagrant basebox installation
# --- begin custom install commands<%= custom_install_commands %>
# --- end custom install commands
```When you `rake build` now it will build two baseboxes: `my-ubuntu-12.04-bare-os.box` and `my-ubuntu-12.04-vagrant.box`