Sha256: 7a0d29aae22c582fe88f8a86a776c5b74e9b6a886378a82a545a69711ba55ba3
Contents?: true
Size: 868 Bytes
Versions: 3
Compression:
Stored size: 868 Bytes
Contents
namespace :memcached do desc <<-DESC Generate and install memcached monitrc. *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@ *monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_ @set :monit_conf_dir, "/etc/monit"@ DESC task :install_monit 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.2.1 | lib/recipes/memcached.rb |
capitate-0.2.2 | lib/recipes/memcached.rb |
capitate-0.2.3 | lib/recipes/memcached.rb |