Sha256: 14b452274243ed518c037510e2464c8bd4492ff6053f625e9fca3f8c887cd3d9
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
namespace :memcached do namespace :centos do 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) fetch(:memcached_memory) # Build options memcached_options = { :url => "http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz", :configure_options => "--prefix=/usr/local" } # Build script.make_install("memcached", memcached_options) # Install initscript, service put template.load("memcached/memcached.initd.centos.erb"), "/tmp/memcached.initd" sudo "install -o root /tmp/memcached.initd /etc/init.d/memcached && rm -f /tmp/memcached.initd" sudo "/sbin/chkconfig --level 345 memcached on" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.1.8 | lib/recipes/centos/memcached.rb |
capitate-0.1.9 | lib/recipes/centos/memcached.rb |