Add HERO MODE to the Blimpfile for spinning up a number of machines to test manifests on.

Also an effective way to spend money on AWS.
This commit is contained in:
R. Tyler Croy 2013-06-30 20:13:38 -07:00
parent a0e0ba395d
commit e0aa5729a4
1 changed files with 51 additions and 22 deletions

View File

@ -6,6 +6,33 @@ def self.rhel?
end
begin
# Test many things at once in HERO MODE
if ENV['HEROMODE']
Blimpy.fleet do |fleet|
['spinach', 'cabbage', 'cucumber'].each do |machine|
fleet.add(:aws) do |ship|
ship.name = "jenkins-infra-#{machine}"
ship.livery = Blimpy::Livery::Puppet.configure do |p|
p.manifest_path = "./manifests/#{machine}.pp"
end
ship.flavor = 'm1.large'
ship.ports = [22, 80]
ship.region = 'us-west-2'
ship.username = 'ubuntu'
# Kale is a RHEL machine and has special needs
if machine == 'kale'
ship.image_id = 'ami-8a25a9ba' # RHEL 6.3 in US West 2
ship.username = 'root'
end
end
end
end
else
Blimpy.fleet do |fleet|
manifest = ENV['MANIFEST'] || 'vagrant.pp'
@ -37,6 +64,8 @@ begin
end
end
end
end
rescue Exception => e
puts e
raise