Disable cfg engines by default when building base boxes

This commit is contained in:
Fabio Rehm 2013-05-02 00:41:13 -03:00
parent 37cf1e4e31
commit 2de9e88190
2 changed files with 11 additions and 6 deletions

View file

@ -72,13 +72,18 @@ can use the [same Vagrant VirtualBox machine I use for development](#using-virtu
*Please note that I'm currently using only the quantal x86_64 on a daily basis, *Please note that I'm currently using only the quantal x86_64 on a daily basis,
and I've only done some basic testing with the others* and I've only done some basic testing with the others*
You can also build a clean box by providing `CHEF=0` and `PUPPET=0` to the available There is a set of [rake tasks](tasks/boxes.rake) that you can use to build base
[rake tasks](tasks/boxes.rake). For example: boxes as needed. By default it won't include any provisioning tool and you can
pick the one you want by providing some environment variables.
For example:
``` ```
CHEF=0 PUPPET=0 rake boxes:ubuntu:build:precise64 CHEF=1 rake boxes:ubuntu:build:precise64
``` ```
Will build a Ubuntu Precise x86_64 box with chef pre-installed.
### Storing container's rootfs on a separate partition ### Storing container's rootfs on a separate partition
Before the 0.3.0 version of this plugin, there used to be a support for specifying Before the 0.3.0 version of this plugin, there used to be a support for specifying

View file

@ -89,9 +89,9 @@ class BuildUbuntuBoxTask < BuildGenericBoxTask
end end
end end
chef = ENV['CHEF'] != '0' chef = ENV['CHEF'] == '1'
puppet = ENV['PUPPET'] != '0' puppet = ENV['PUPPET'] == '1'
babushka = ENV['BABUSKA'] != '0' babushka = ENV['BABUSHKA'] == '1'
namespace :boxes do namespace :boxes do
namespace :ubuntu do namespace :ubuntu do