Skip to content

Instantly share code, notes, and snippets.

@pingali
Created May 5, 2009 23:14
Show Gist options
  • Save pingali/107272 to your computer and use it in GitHub Desktop.
Save pingali/107272 to your computer and use it in GitHub Desktop.
pool :application do
instances 1
keypair "~/.ec2/keypairs/app"
ami 'ami-7cfd1a15'
cloud :pp1 do
roles_config = {
:default => {
:role => 'db'
},
:override => [
{ :index => 0, :primary => true }
]
}
roles roles_config
#has_directory "/var/www"
has_file "/etc/motd", :content => "Hi hi"
has_variable "name", :value => "Ari"
has_file :name => "/var/www/index.html" do
content "<h1>Welcome to your new poolparty instance <%= @node[:poolparty][:name] %>"
mode 0644
end
has_git_repos "paparazzi" do
at "/var/www"
source "git://github.com/auser/paparazzi.git"
owner "www-data"
end
chef do
#include_recipes "#{File.dirname(__FILE__)}/../cookbooks/*"
#include_recipes "#{File.dirname(__FILE__)}/cookbooks/*"
include_recipes "/home/codisc/rails/cookbooks/*"
include_recipes "/home/codisc/rails/chef-repo/cookbooks/*"
templates "/home/codisc/rails/umanage/templates"
recipe "/home/codisc/rails/umanage/chef.rb"
#recipe "/home/codisc/rails/umanage/test-recipe.rb"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment