Created
May 5, 2009 23:14
-
-
Save pingali/107272 to your computer and use it in GitHub Desktop.
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
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