lib/recipes/centos/mongrel_cluster.rb in capitate-0.1.7 vs lib/recipes/centos/mongrel_cluster.rb in capitate-0.1.8
- old
+ new
@@ -1,13 +1,23 @@
-namespace :centos do
+namespace :mongrel_cluster do
- namespace :mongrel_cluster do
+ namespace :centos do
- after "centos:mongrel_cluster:setup", "mongrel_cluster:setup_monit"
+ desc <<-DESC
+ Create mongrel cluster.
- desc "Create mongrel cluster"
- task :setup do
+ mongrel_size: Number of mongrels.
+
+ set :mongrel_size, 3
+
+ mongrel_port: Starting port for mongrels. If there are 3 mongrels with port 9000, then instances will be at
+ 9000, 9001, and 9002
+ set :mongrel_port, 9000
+
+ DESC
+ task :setup do
+
# Settings
fetch(:mongrel_size)
fetch(:mongrel_port)
run "mkdir -p #{shared_path}/config"
\ No newline at end of file