Add support for disabling puppet and / or chef installation when building base boxes
This commit is contained in:
parent
399ac72376
commit
f46af90ec3
1 changed files with 10 additions and 6 deletions
|
@ -61,14 +61,18 @@ end
|
||||||
namespace :boxes do
|
namespace :boxes do
|
||||||
namespace :ubuntu do
|
namespace :ubuntu do
|
||||||
namespace :build do
|
namespace :build do
|
||||||
desc 'Build an Ubuntu Precise 64 bits box with puppet and chef installed'
|
chef = ENV['CHEF'] != '0'
|
||||||
BuildUbuntuBoxTask.new(:precise64, :precise, 'amd64')
|
puppet = ENV['PUPPET'] != '0'
|
||||||
|
|
||||||
desc 'Build an Ubuntu Quantal 64 bits box with puppet and chef installed'
|
desc 'Build an Ubuntu Precise 64 bits box'
|
||||||
BuildUbuntuBoxTask.new(:quantal64, :quantal, 'amd64')
|
BuildUbuntuBoxTask.new(:precise64, :precise, 'amd64', chef: chef, puppet: puppet)
|
||||||
|
|
||||||
desc 'Build an Ubuntu Raring 64 bits box with puppet installed'
|
desc 'Build an Ubuntu Quantal 64 bits box'
|
||||||
BuildUbuntuBoxTask.new(:raring64, :raring, 'amd64', chef: false)
|
BuildUbuntuBoxTask.new(:quantal64, :quantal, 'amd64', chef: chef, puppet: puppet)
|
||||||
|
|
||||||
|
# FIXME: Find out how to install chef on raring
|
||||||
|
desc 'Build an Ubuntu Raring 64 bits box'
|
||||||
|
BuildUbuntuBoxTask.new(:raring64, :raring, 'amd64', chef: false, puppet: puppet)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue