Skip to content
Browse files

Updated burninator example to use 12.04

  • Loading branch information...
1 parent b8c7b7c commit 1ee3174a076bda7878e00d379aca507d3a37f09b @temujin9 temujin9 committed Nov 19, 2012
Showing with 20 additions and 10 deletions.
  1. +20 −10 example_clusters/burninator.rb
View
30 example_clusters/burninator.rb
@@ -6,7 +6,9 @@
# stop it and invoke 'Create Image (EBS AMI)'.
#
Ironfan.cluster 'burninator' do
+
cloud(:ec2) do
+ permanent false
availability_zones ['us-east-1d']
# use a c1.xlarge so the AMI knows about all ephemeral drives
flavor 'c1.xlarge'
@@ -17,11 +19,10 @@
mount_ephemerals
end
- environment :dev
+ environment :_default
role :chef_client
- role :ssh
- cloud(:ec2).security_group(:ssh).authorize_port_range 22..22
+ role :ssh ; 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 also means you can find yourself with a whole ton of stray 8GB
@@ -35,9 +36,13 @@
facet :trogdor do
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 'users::ubuntu'
role :package_set, :last
@@ -46,8 +51,7 @@
recipe 'build-essential'
recipe 'emacs'
recipe 'git'
- recipe 'java::sun'
- recipe 'jpackage'
+ recipe 'java'
recipe 'jruby'
recipe 'jruby::gems'
recipe 'nodejs'
@@ -63,9 +67,15 @@
recipe 'zsh'
facet_role.override_attributes({
- :java => { :install_flavor => 'sun' }, # use sun java typically
- :package_set => { :install => %w[ base dev sysadmin text python emacs ] },
- :apt => { :cloudera => { :force_distro => 'maverick', }, },
+ :java => { # use oracle java
+ :install_flavor => 'oracle',
+ :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
@@ -76,7 +86,7 @@
instances 1
# 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:
- cloud(:ec2).image_name 'ironfan-natty'
+ cloud(:ec2).image_name 'ironfan-precise'
# just so there's something in the runlist.
recipe 'motd'

0 comments on commit 1ee3174

Please sign in to comment.
Something went wrong with that request. Please try again.