lib/recipes/centos/memcached.rb in capitate-0.1.7 vs lib/recipes/centos/memcached.rb in capitate-0.1.8
- old
+ new
@@ -1,9 +1,24 @@
-namespace :centos do
+namespace :memcached do
- namespace :memcached do
+ namespace :centos do
- desc "Install memcached"
+ desc <<-DESC
+ Install memcached.
+
+ memcached_memory: Memcached memory (in MB).
+
+ set :memcached_memory, 64
+
+ memcached_pid_path: Path to memcached pid file. Defaults to /var/run/memcached.pid
+
+ set :memcached_pid_path, "/var/run/memcached.pid"
+
+ memcached_port: Memcached port. Defaults to 11211.
+
+ set :memcached_port, 11211
+
+ DESC
task :install do
# Settings
fetch_or_default(:memcached_pid_path, "/var/run/memcached.pid")
fetch_or_default(:memcached_port, 11211)
\ No newline at end of file