Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created March 6, 2009 20:18
Show Gist options
  • Select an option

  • Save fairchild/75051 to your computer and use it in GitHub Desktop.

Select an option

Save fairchild/75051 to your computer and use it in GitHub Desktop.
# Basic poolparty template
pool :clouds do
base_keypair_path ENV["EC2_CONFIG_DIR"]
keypair "poolparty_oncourse_atti"
instances 1..2
port 80
# Alestic's base ubuntu AMI
ami "ami-1cd73375"
cloud :blaber do
has_file :name=>'/etc/motd', :content=>"hi"
#set_master_ip_to "75.101.155.166"
#mount_ebs_volume_at "vol-10ed0a79", "/vol"
# mysql do
# install_on_volume("/vol")
# has_database(:name => "test_database", :user => "readable", :password => "readable")
# end
apache do
installed_as_worker
has_virtualhost do |vh|
name "poolpartyrb.com"
listen("8080")
# virtual_host_entry ::File.join(File.dirname(__FILE__), "templates", "virtual_host.conf.erb")
#
# # We are going to have a repository that is updated across the servers
# has_git({:name => "poolpartyrepos",
# :source => "git://github.com/auser/poolparty-website.git",
# :at => "/var/www/poolpartyrb.com"}) do |g|
# notify get_service("apache2")
# # We don't keep the site in the top level of the repos, so let's create
# # a symlink so that the public directory is a symlink of the root level
# # site directory
# # Requires is a temporary fix
# has_symlink({:name => "/var/www/poolpartyrb.com/public", :source => "/var/www/poolpartyrb.com/poolparty-website/site"})
#
# end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment