Sha256: 1ed127ac01c4adb3c4e98bdc4119ab9947af9a92a8622615b71e1ae2d14d781f

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

namespace :memcached do
  
  desc "Install memcached monit hooks"
  task :install_monit do
    
    # Settings
    fetch_or_default(:memcached_pid_path, "/var/run/memcached.pid")
    fetch_or_default(:memcached_port, 11211)    
    
    put template.load("memcached/memcached.monitrc.erb", binding), "/tmp/memcached.monitrc"    
    sudo "install -o root /tmp/memcached.monitrc /etc/monit/memcached.monitrc"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capitate-0.1.7 lib/recipes/memcached.rb