Skip to content

Commit

Permalink
Updated burninator example to use 12.04
Browse files Browse the repository at this point in the history
  • Loading branch information
temujin9 committed Nov 20, 2012
1 parent b8c7b7c commit 1ee3174
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions example_clusters/burninator.rb
Expand Up @@ -6,7 +6,9 @@
# stop it and invoke 'Create Image (EBS AMI)'. # stop it and invoke 'Create Image (EBS AMI)'.
# #
Ironfan.cluster 'burninator' do Ironfan.cluster 'burninator' do

cloud(:ec2) do cloud(:ec2) do
permanent false
availability_zones ['us-east-1d'] availability_zones ['us-east-1d']
# use a c1.xlarge so the AMI knows about all ephemeral drives # use a c1.xlarge so the AMI knows about all ephemeral drives
flavor 'c1.xlarge' flavor 'c1.xlarge'
Expand All @@ -17,11 +19,10 @@
mount_ephemerals mount_ephemerals
end end


environment :dev environment :_default


role :chef_client role :chef_client
role :ssh role :ssh ; cloud(:ec2).security_group(:ssh).authorize_port_range 22..22
cloud(:ec2).security_group(:ssh).authorize_port_range 22..22


# It's handy to have the root volumes not go away with the machine. # It's handy to have the root volumes not go away with the machine.
# It also means you can find yourself with a whole ton of stray 8GB # It also means you can find yourself with a whole ton of stray 8GB
Expand All @@ -35,9 +36,13 @@
facet :trogdor do facet :trogdor do
instances 1 instances 1


cloud(:ec2).image_name 'natty' # Leave set at vanilla natty cloud(:ec2) do
image_name 'precise' # Leave set at vanilla precise
bootstrap_distro 'ubuntu12.04-ironfan'
end


recipe 'cloud_utils::burn_ami_prep' recipe 'cloud_utils::burn_ami_prep'
recipe 'users::ubuntu'


role :package_set, :last role :package_set, :last


Expand All @@ -46,8 +51,7 @@
recipe 'build-essential' recipe 'build-essential'
recipe 'emacs' recipe 'emacs'
recipe 'git' recipe 'git'
recipe 'java::sun' recipe 'java'
recipe 'jpackage'
recipe 'jruby' recipe 'jruby'
recipe 'jruby::gems' recipe 'jruby::gems'
recipe 'nodejs' recipe 'nodejs'
Expand All @@ -63,9 +67,15 @@
recipe 'zsh' recipe 'zsh'


facet_role.override_attributes({ facet_role.override_attributes({
:java => { :install_flavor => 'sun' }, # use sun java typically :java => { # use oracle java
:package_set => { :install => %w[ base dev sysadmin text python emacs ] }, :install_flavor => 'oracle',
:apt => { :cloudera => { :force_distro => 'maverick', }, }, :jdk => { 6 => { :x86_64 => {
:url => 'http://artifacts.chimpy.us.s3.amazonaws.com/tarballs/jdk-6u32-linux-x64.bin',
:checksum => '269d05b8d88e583e4e66141514d8294e636f537f55eb50962233c9e33d8f8f49'
} } }
},
:package_set => { :install => %w[ base dev sysadmin text python emacs ] },
:apt => { :cloudera => { :force_distro => 'maverick', }, },
}) })
end end


Expand All @@ -76,7 +86,7 @@
instances 1 instances 1
# Once the AMI is burned, add a new entry in your knife configuration -- see # Once the AMI is burned, add a new entry in your knife configuration -- see
# knife/example-credentials/knife-org.rb. Fill in its name here: # knife/example-credentials/knife-org.rb. Fill in its name here:
cloud(:ec2).image_name 'ironfan-natty' cloud(:ec2).image_name 'ironfan-precise'


# just so there's something in the runlist. # just so there's something in the runlist.
recipe 'motd' recipe 'motd'
Expand Down

0 comments on commit 1ee3174

Please sign in to comment.