Sha256: 606e805a41a412ab97614b03c071f69effde873de8c1af5e5a27387e49ca50fb
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
namespace :memcached do namespace :centos do desc <<-DESC Install memcached. "Source":#{link_to_source(__FILE__)} DESC task_arg(:memcached_pid_path, "Path to memcached pid file.", :default => "/var/run/memcached.pid") task_arg(:memcached_port, "Memcached port", :default => 11211) task_arg(:memcached_memory, "Memcached memory (in MB)") task_arg(:memcached_build_options, <<-EOS) Memcached build options <pre> <code class="ruby"> set :memcached_build_options, { :url => "http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz", :configure_options => "--prefix=/usr/local" } </code> </pre> EOS task :install do # Build build.make_install("memcached", memcached_build_options) initscript end desc <<-DESC Install memcached initscript. "Source":#{link_to_source(__FILE__)} DESC task_arg(:memcached_pid_path, "Path to memcached pid file.", :default => "/var/run/memcached.pid") task_arg(:memcached_port, "Memcached port", :default => 11211) task_arg(:memcached_memory, "Memcached memory (in MB)") task :initscript do utils.install_template("memcached/memcached.initd.centos.erb", "/etc/init.d/memcached") run_via "/sbin/chkconfig --level 345 memcached on" end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
calas-capitate-0.3.6 | lib/recipes/centos/memcached.rb |
capitate-0.3.6 | lib/recipes/centos/memcached.rb |