Bento is a project that encapsulates Packer templates for building Vagrant base boxes and AWS AMIs
This is a fork, of the Chef Bento project, and will incorporate some elements from the automation/packrats repo as appropriate.
-[ ] build boxes and place on Artifactory
The following boxes are built from this repository's templates and available from Artifactory
VirtualBox (5.0+) | |
---|---|
ubuntu-12.04 | todo |
ubuntu-14.04 | todo |
TODO: fill me in
In the bin
directory of this repo is the bento
utility which wraps packer
as well as allowing other related functionality.
This is an opinionated tool that the project uses for building the hosted boxes listed above.
Usage: bento [SUBCOMMAND [options]]
build : build one or more templates
help : prints this help message
list : list all templates in project
normalize : normalize one or more templates
To build multiple templates for all providers (VirtualBox, Fusion, Parallels, etc):
$ bin/bento build debian-8.1-amd64 debian-8.1-i386
To build a box for a single provider:
$ bin/bento build --only=virtualbox-iso debian-8.1-amd64
Templates can still be built directly by packer
To build a template for all providers (VirtualBox, Fusion, Parallels):
$ packer build debian-8.2-amd64.json
To build a template only for a list of specific providers:
$ packer build -only=virtualbox-iso debian-8.2-amd64.json
To build a template for all providers except a list of specific providers:
$ packer build -except=parallels-iso,vmware-iso debian-8.2-amd64.json
If you want to use a another mirror site, use the mirror
user variable.
$ packer build -var 'mirror=http://ftp.jaist.ac.jp/pub/Linux/debian-cdimage/release' debian-8.2-amd64.json
Congratulations! You now have box(es) in the ../builds directory that you can then add to Vagrant and start testing cookbooks.
Notes:
- The box_basename can be overridden like other Packer vars with
-var 'box_basename=debian-8.2'
Please use GitHub issues to report bugs, features, or other problems.
Project forked from Chef Bento
These basebox templates were converted from veewee definitions originally based on work done by Tim Dysinger to make "Don't Repeat Yourself" (DRY) modular baseboxes. Thanks Tim!
Chef-zero provisioning copied from Threat Stack packer templates