Sha256: 3b10e4343b04dee3d5d72eb32068b79ab92d343e9f2399ddd278448b464dc5f9

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

namespace :mysql do
  
  namespace :monit do
  
    desc <<-DESC
    Install mysql monit hooks. 
    
    "Source":#{link_to_source(__FILE__)}  
    DESC
    task_arg(:mysql_pid_path, "Path to mysql pid file", :default => "/var/run/mysqld/mysqld.pid")
    task_arg(:mysql_port, "Mysql port", :default => 3306)   
    task_arg(:monit_conf_dir, "Monitrd directory", :default => "/etc/monit")
    task :install do
      put template.load("mysql/mysql.monitrc.erb", binding), "/tmp/mysql.monitrc"    
      run_via "install -o root /tmp/mysql.monitrc #{monit_conf_dir}/mysql.monitrc"
    end      
        
  end
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
calas-capitate-0.3.6 lib/recipes/monit/mysql.rb
capitate-0.3.6 lib/recipes/monit/mysql.rb