Created
December 26, 2012 11:10
-
-
Save abhijith/4379680 to your computer and use it in GitHub Desktop.
ironfan cluster definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ironfan.cluster 'test0' do | |
cloud(:ec2) do | |
availability_zones ['us-east-1d'] | |
ssh_user "ubuntu" | |
permanent false | |
flavor 'm1.large' | |
backing 'ebs' | |
image_name 'natty' | |
bootstrap_distro 'ubuntu12.04-ironfan' | |
chef_client_script 'client.rb' | |
mount_ephemerals | |
end | |
environment :development | |
role :chef_client | |
node_attributes = { :a => 1, :b => 2 } | |
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