Sha256: e8e8fb471c85c20e99467690fc242b441d280678f14144130a13f470ef562f09

Contents?: true

Size: 591 Bytes

Versions: 10

Compression:

Stored size: 591 Bytes

Contents

namespace :memcached do
  
  namespace :monit do
  
    desc <<-DESC
    Generate and install memcached monitrc.
    "Source":#{link_to_source(__FILE__)}
    DESC
    task :install do
    
      # Settings
      fetch_or_default(:memcached_pid_path, "/var/run/memcached.pid")
      fetch_or_default(:memcached_port, 11211)    
      fetch_or_default(:monit_conf_dir, "/etc/monit")
    
      put template.load("memcached/memcached.monitrc.erb"), "/tmp/memcached.monitrc"    
      run_via "install -o root /tmp/memcached.monitrc #{monit_conf_dir}/memcached.monitrc"
    end
    
  end
  
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
calas-capitate-0.3.6 lib/recipes/monit/memcached.rb
capitate-0.2.14 lib/recipes/monit/memcached.rb
capitate-0.2.13 lib/recipes/monit/memcached.rb
capitate-0.2.15 lib/recipes/monit/memcached.rb
capitate-0.3.5 lib/recipes/monit/memcached.rb
capitate-0.3.6 lib/recipes/monit/memcached.rb
capitate-0.3.4 lib/recipes/monit/memcached.rb
capitate-0.3.1 lib/recipes/monit/memcached.rb
capitate-0.3.2 lib/recipes/monit/memcached.rb
capitate-0.3.3 lib/recipes/monit/memcached.rb