<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/recipes/active_record.rb</filename>
    </added>
    <added>
      <filename>lib/recipes/centos/merb.rb</filename>
    </added>
    <added>
      <filename>lib/recipes/logrotate/merb.rb</filename>
    </added>
    <added>
      <filename>lib/recipes/monit/merb.rb</filename>
    </added>
    <added>
      <filename>lib/templates/merb/merb.initd.centos.erb</filename>
    </added>
    <added>
      <filename>lib/templates/merb/merb.monitrc.erb</filename>
    </added>
    <added>
      <filename>lib/templates/nginx/nginx_vhost_generic.conf.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,11 @@
+== 0.3.3 2008-04-29
+
+* Adding merb init script (for Centos)
+* Adding merb monit confs
+* Adding merb logrotate
+* Created generic nginx vhost template
+* Deprecated rails:setup for active_record:setup (for merb setup)
+
 == 0.3.2 2008-04-03
 
 * Adding hostname helper (utils.hostname) </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -26,12 +26,14 @@ lib/capitate/recipes.rb
 lib/capitate/task_node.rb
 lib/capitate/version.rb
 lib/deployment/centos-5.1-64-web/install.rb
+lib/recipes/active_record.rb
 lib/recipes/backgroundrb.rb
 lib/recipes/centos/backgroundjob.rb
 lib/recipes/centos/backgroundrb.rb
 lib/recipes/centos/centos.rb
 lib/recipes/centos/imagemagick.rb
 lib/recipes/centos/memcached.rb
+lib/recipes/centos/merb.rb
 lib/recipes/centos/mongrel_cluster.rb
 lib/recipes/centos/monit.rb
 lib/recipes/centos/mysql.rb
@@ -41,6 +43,7 @@ lib/recipes/centos/sphinx.rb
 lib/recipes/docs.rb
 lib/recipes/logrotate/backgroundjob.rb
 lib/recipes/logrotate/backgroundrb.rb
+lib/recipes/logrotate/merb.rb
 lib/recipes/logrotate/mongrel_cluster.rb
 lib/recipes/logrotate/monit.rb
 lib/recipes/logrotate/mysql.rb
@@ -54,6 +57,7 @@ lib/recipes/monit/backgroundjob.rb
 lib/recipes/monit/backgroundrb.rb
 lib/recipes/monit/database.rb
 lib/recipes/monit/memcached.rb
+lib/recipes/monit/merb.rb
 lib/recipes/monit/mongrel_cluster.rb
 lib/recipes/monit/mysql.rb
 lib/recipes/monit/nginx.rb
@@ -75,6 +79,8 @@ lib/templates/logrotated/conf.erb
 lib/templates/memcached/memcached.initd.centos.erb
 lib/templates/memcached/memcached.monitrc.erb
 lib/templates/memcached/memcached.yml.erb
+lib/templates/merb/merb.initd.centos.erb
+lib/templates/merb/merb.monitrc.erb
 lib/templates/mongrel/mongrel_cluster.initd.centos.erb
 lib/templates/mongrel/mongrel_cluster.monitrc.erb
 lib/templates/mongrel/mongrel_cluster.yml.erb
@@ -89,6 +95,7 @@ lib/templates/nginx/nginx.conf.erb
 lib/templates/nginx/nginx.initd.centos.erb
 lib/templates/nginx/nginx.monitrc.erb
 lib/templates/nginx/nginx_vhost.conf.erb
+lib/templates/nginx/nginx_vhost_generic.conf.erb
 lib/templates/rails/database.yml.erb
 lib/templates/ruby/fix_openssl.sh
 lib/templates/sphinx/sphinx.conf.erb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Capitate #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 3
-    TINY  = 2
+    TINY  = 3
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/capitate/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,10 @@ namespace :mongrel do
       Create mongrel cluster.
       
       &lt;dl&gt;
+      &lt;dt&gt;mongrel_application&lt;/dt&gt;
+      &lt;dd&gt;Name of mongrel application&lt;/dd&gt;
+      &lt;dd&gt;@set :mongrel_application, &quot;mongrel_cluster_\#{application}&quot;@&lt;/dd&gt;
+      
       &lt;dt&gt;mongrel_size&lt;/dt&gt;&lt;dd&gt;Number of mongrels&lt;/dd&gt;
       &lt;dd&gt;@set :mongrel_size, 3@&lt;/dd&gt;
       </diff>
      <filename>lib/recipes/centos/mongrel_cluster.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,3 @@
-# Create init script
 namespace :mongrel do
 
   namespace :cluster do
@@ -23,12 +22,13 @@ namespace :mongrel do
         fetch_or_default(:mongrel_bin_path, &quot;/usr/bin/mongrel_rails&quot;)
         fetch_or_default(:mongrel_config_script, nil)
         fetch_or_default(:monit_conf_dir, &quot;/etc/monit&quot;)
+        fetch_or_default(:mongrel_pid_dir, &quot;#{shared_path}/pids&quot;)
     
         processes = []
         ports = (0...mongrel_size).collect { |i| mongrel_port + i }
         ports.each do |port|
       
-          pid_path = &quot;#{shared_path}/pids/#{mongrel_application}.#{port}.pid&quot;
+          pid_path = &quot;#{mongrel_pid_dir}/#{mongrel_application}.#{port}.pid&quot;
       
           default_options = [
             [ &quot;-d&quot; ], </diff>
      <filename>lib/recipes/monit/mongrel_cluster.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,53 @@
 # Nginx recipes
 namespace :nginx do
   
+  namespace :host do
+    
+    desc &lt;&lt;-DESC
+    Generate the nginx vhost include.
+    
+    &lt;dl&gt;
+    &lt;dt&gt;nginx_upstream_name&lt;/dt&gt;
+    &lt;dd&gt;Application name (for upstream definition).&lt;/dd&gt;
+    &lt;dd class=&quot;default&quot;&gt;Defaults to @:application@&lt;/dd&gt;
+    
+    &lt;dt&gt;nginx_upstream_size&lt;/dt&gt;
+    &lt;dd&gt;Number of nodes for upstream.&lt;/dd&gt;
+    &lt;dd&gt;@set :nginx_upstream_size, 3@&lt;/dd&gt;  
+    
+    &lt;dt&gt;nginx_upstream_port&lt;/dt&gt;
+    &lt;dd&gt;Starting port for upstream. If there are 3 nodes with port 9000, then instances will be at 9000, 9001, and 9002&lt;/dd&gt;
+    &lt;dd&gt;@set :nginx_upstream_port, 9000@&lt;/dd&gt;
+    
+    &lt;dt&gt;domain_name&lt;/dt&gt;: Domain name for nginx virtual host, (without www prefix).&lt;/dd&gt;
+    &lt;dd&gt;@set :domain_name, &quot;foo.com&quot;@&lt;/dd&gt;
+    &lt;/dl&gt;
+    
+    &quot;Source&quot;:#{link_to_source(__FILE__)}
+    DESC
+    task :setup do 
+    
+      # Settings
+      fetch_or_default(:nginx_upstream_name, fetch(:application))
+      fetch(:nginx_upstream_size)
+      fetch(:nginx_upstream_port)
+    
+      set :ports, (0...nginx_upstream_size).collect { |i| nginx_upstream_port + i }
+      set :public_path, current_path + &quot;/public&quot;
+    
+      run &quot;mkdir -p #{shared_path}/config&quot;
+      put template.load(&quot;nginx/nginx_vhost_generic.conf.erb&quot;), &quot;/tmp/nginx_#{nginx_upstream_name}.conf&quot;    
+    
+      sudo &quot;install -o root /tmp/nginx_#{nginx_upstream_name}.conf /etc/nginx/vhosts/#{nginx_upstream_name}.conf&quot;        
+    end
+    
+  end
+  
   namespace :mongrel do
     desc &lt;&lt;-DESC
     Generate the nginx vhost include (for a mongrel setup).
+    
+    *THIS IS DEPRECATED*: Use @nginx:host:setup@
   
     &lt;dl&gt;
     &lt;dt&gt;mongrel_application&lt;/dt&gt;</diff>
      <filename>lib/recipes/nginx.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,17 +4,19 @@ namespace :rails do
   desc &lt;&lt;-DESC
   Create database yaml in shared path. Note: If both @:db_host@ and @:db_socket@ are used, @db_socket@ wins.
   
+  *DEPRECATED*: Use @active_record:setup@
+  
   &lt;dl&gt;
   &lt;dt&gt;db_name&lt;/dt&gt;
-  &lt;dd&gt;Database name (rails).&lt;/dd&gt;  
+  &lt;dd&gt;Database name.&lt;/dd&gt;  
   &lt;dd&gt;@set :db_name, &quot;app_db_name&quot;@&lt;/dd&gt;
   
   &lt;dt&gt;db_user&lt;/dt&gt;
-  &lt;dd&gt;Database user (rails).&lt;/dd&gt;
+  &lt;dd&gt;Database user.&lt;/dd&gt;
   &lt;dd&gt;@set :db_user, &quot;app_db_user&quot;@&lt;/dd&gt;    
   
   &lt;dt&gt;db_pass&lt;/dt&gt;
-  &lt;dd&gt;Database password (rails).&lt;/dd&gt;
+  &lt;dd&gt;Database password.&lt;/dd&gt;
   &lt;dd&gt;@set :db_pass, &quot;the_password&quot;@&lt;/dd&gt;   
   
   &lt;dt&gt;db_host&lt;/dt&gt;</diff>
      <filename>lib/recipes/rails.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 #
+# DEPRECATED: USE nginx_vhost_generic.conf.erb (This is here for backwards compatibility)
+#
 # Nginx virtual host conf
 #
 # * Uses cache directory configured for public/cache</diff>
      <filename>lib/templates/nginx/nginx_vhost.conf.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d7572bd50d1099e061bcbdec3d4d985c9acf434a</id>
    </parent>
  </parents>
  <author>
    <name>Gabe</name>
    <email>gabrielh@gmail.com</email>
  </author>
  <url>http://github.com/gabriel/capitate/commit/cca59da1bcc33828625db037c6c5d8c4ff1f0a0a</url>
  <id>cca59da1bcc33828625db037c6c5d8c4ff1f0a0a</id>
  <committed-date>2008-04-29T17:19:43-07:00</committed-date>
  <authored-date>2008-04-29T17:19:43-07:00</authored-date>
  <message>adding merb support</message>
  <tree>444dddb3ec681636048e03909721ee34f07d8fce</tree>
  <committer>
    <name>Gabe</name>
    <email>gabrielh@gmail.com</email>
  </committer>
</commit>
