Created
September 4, 2008 19:22
-
-
Save auser/8853 to your computer and use it in GitHub Desktop.
This file contains 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
## Basic.rb | |
# Basic pool spec | |
# Shows global settings for the clouds | |
# Notice, the clouds take the options set by the cloud | |
pool :app do | |
instances 3..5 | |
cloud :app do | |
minimum_instances 2 | |
ami "ami-abc123" | |
# Defined by a plugin | |
apache do | |
virtual_host({:name => "poolpartyrb.com"}) do | |
relative_root_dir "poolpartyrb" | |
port "8080" | |
end | |
end | |
end | |
cloud :db do | |
end | |
end | |
## Console print | |
# If the options aren't passed on the cloud, it uses the default options | |
# set by poolparty | |
>> reload!; load_pool "spec/examples/basic.rb"; pool_print | |
Pool: app | |
minimum_instances => '3' | |
maximum_instances => '5' | |
plugin_directory => 'plugins' | |
Cloud: app | |
access_key => '' | |
ami => 'ami-abc123' | |
secret_access_key => '' | |
keypair => 'pool' | |
polling_time => '30.seconds' | |
minimum_instances => '2' | |
maximum_instances => '5' | |
ec2_dir => '/Users/auser/.ec2' | |
Cloud: db | |
access_key => '' | |
ami => 'ami-44bd592d' | |
secret_access_key => '' | |
keypair => 'pool' | |
polling_time => '30.seconds' | |
minimum_instances => '3' | |
maximum_instances => '5' | |
ec2_dir => '/Users/auser/.ec2' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment