Guest
Public paste!

Untitled

By: a guest | Mar 11th, 2010 | Syntax: None | Size: 0.47 KB | Hits: 59 | Expires: Never
Copy text to clipboard
  1. pool "poolparty" do
  2.   cloud "chef" do
  3.       instances 1
  4.       using :ec2
  5.    
  6.       chef :solo do
  7.         repo File.dirname(__FILE__)+"/chef_cloud/chef_repo"
  8.         recipe "apache2"
  9.         recipe "passenger"
  10.         recipe "rails"
  11.         attributes :apache2 => {:listen_ports => ["80", "8080"]}
  12.       end
  13.      
  14.       security_group do
  15.         authorize :from_port => "22", :to_port => "22"
  16.         authorize :from_port => "80", :to_port => "80"
  17.       end
  18.   end
  19. end