Skip to content

Instantly share code, notes, and snippets.

@abhijith
Created November 19, 2012 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhijith/4109428 to your computer and use it in GitHub Desktop.
Save abhijith/4109428 to your computer and use it in GitHub Desktop.
Ironfan.cluster 'test0' do
cloud(:ec2) do
permanent false
availability_zones ['us-east-1d']
flavor 't1.micro'
backing 'ebs'
image_name 'natty'
bootstrap_distro 'ubuntu10.04-ironfan'
chef_client_script 'client.rb'
mount_ephemerals
end
environment :development
role :systemwide
role :chef_client
role :ssh
role :org_base
node_attributes = { :a => 100, :b => 100 }
cluster_overrides = Mash.new(node_attributes)
facet :foobar do
instances 1
facet_role do
override_attributes(node_attributes)
end
end
cluster_role.override_attributes(cluster_overrides)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment